mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 02:38:07 +02:00
The ASTC extension specs state that a vector of UNORM8 values are returned when decoding sRGB ASTC textures. For the alpha channel however, they don't seem to specify how to get there from the UNORM16 produced after interpolation (or returned from a void-extent block). The ASTC decoder in the VK-GL-CTS project treats the alpha channel like the RGB channels and simply uses the top 8 bits of the UNORM16. For better performance, we choose to do the same. In a texture upload microbenchmark, this decreases the upload time for textures in the sRGB color space by about 13%. Ref: https://gitlab.khronos.org/egl/DataFormat/-/merge_requests/32 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17195> |
||
|---|---|---|
| .. | ||
| amd | ||
| android_stub | ||
| asahi | ||
| broadcom | ||
| c11 | ||
| compiler | ||
| drm-shim | ||
| egl | ||
| etnaviv | ||
| freedreno | ||
| gallium | ||
| gbm | ||
| getopt | ||
| glx | ||
| gtest | ||
| hgl | ||
| imagination | ||
| imgui | ||
| intel | ||
| loader | ||
| mapi | ||
| mesa | ||
| microsoft | ||
| nouveau | ||
| panfrost | ||
| tool | ||
| util | ||
| virtio | ||
| vulkan | ||
| meson.build | ||