i965: Add support for and expose EXT_texture_sRGB_R8

Graphics / Mesa 3D Graphics Library / Mesa - Gert Wollny [collabora.com] - 19 November 2018 07:05 EST

Emulate MESA_FORMAT_R_SRGB8 by using L8_UNORM_SRGB. This is possible because component swizzling is handled based on the mesa format and, hence, the a r001 swizzling can be used to correct the components.

Enables and makes pass (tested on Kabylake)

dEQP-GLES31.functional.srgb_texture_decode.skip_decode.sr8.* dEQP-GLES31.functional.texture.filtering.cube_array.formats.sr8*

78fdc507a3 i965: Add support for and expose EXT_texture_sRGB_R8
src/mesa/drivers/dri/i965/brw_surface_formats.c | 1 +
src/mesa/drivers/dri/i965/intel_extensions.c | 1 +
2 files changed, 2 insertions(+)

Upstream: cgit.freedesktop.org


  • Share