tornavis/source/blender/imbuf
Aras Pranckevicius b3ea1e75dc Cleanup: comment why DDS DXT/S3TC needs power of two sizes, and clearer log message
It is not immediately clear why DDS compressed (DXT/S3TC) textures need
to be power of two in size (since nothing in DXT/S3TC intrinsically
requires that). It is only needed due to the "flip the texture upside
down" dance that we do for DDS at load time.

While at it, when logging DXT related messages, tell which texture
was it for, and dimensions. This changes logs like:
```
Unable to load non-power-of-two DXT image resolution, falling back to uncompressed.
Unable to load non-power-of-two DXT image resolution, falling back to uncompressed.
Unable to find a suitable DXT compression, falling back to uncompressed.
```
Into:
```
Unable to load non-power-of-two DXT image resolution, falling back to uncompressed (281splash-dxt1-mips.dds, 890x501).
Unable to load non-power-of-two DXT image resolution, falling back to uncompressed (281splash-dxt5-mips.dds, 890x501).
Unable to find a suitable DXT compression, falling back to uncompressed (281splash-rgba8-mips.dds, 890x501).
```

Pull Request: https://projects.blender.org/blender/blender/pulls/120210
2024-04-03 17:12:46 +02:00
..
intern Cleanup: comment why DDS DXT/S3TC needs power of two sizes, and clearer log message 2024-04-03 17:12:46 +02:00
CMakeLists.txt Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
IMB_colormanagement.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
IMB_imbuf.hh Compositor: Unify sRGB to Linear between CPU and GPU 2024-03-25 14:09:54 +01:00
IMB_imbuf_enums.h Cleanup: reduce C-isms in imbuf headers 2024-01-19 20:29:43 +01:00
IMB_imbuf_types.hh Compositor: Unify sRGB to Linear between CPU and GPU 2024-03-25 14:09:54 +01:00
IMB_interp.hh BLI: Add nearest interpolation with clamped boundary 2024-03-21 13:22:10 +01:00
IMB_metadata.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
IMB_moviecache.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
IMB_openexr.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00
IMB_thumbs.hh Revert changes from main commits that were merged into blender-v4.1-release 2024-03-18 15:04:12 +01:00