i965: expose MESA_FORMAT_B8G8R8X8_SRGB visual
authorTapani Pälli <tapani.palli@intel.com>
Fri, 15 Nov 2019 07:18:10 +0000 (09:18 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Dec 2019 09:28:25 +0000 (09:28 +0000)
commit75caae2268f5c70b1f3005df8618876341ac14fd
tree5816d7bae4e1d7779345743043f76bb1802042fd
parent8b6b5ce6691c80f3254964b746499d5ca75b59b1
i965: expose MESA_FORMAT_B8G8R8X8_SRGB visual

Patch adds BGRX sRGB visuals, required format translation information
to the __DRI_IMAGE_FOURCC_SXRGB8888 format and makes all BGRX visuals
sRGB capable just like is done with BGRA.

squashed patches from Yevhenii Kolesnikov:
  dri: Add __DRI_IMAGE_FOURCC_SXRGB8888 conversion
  i965: force visuals without alpha bits to use sRGB

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1501
Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: Yevhenii Kolesnikov <yevhenii.kolesnikov@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3077>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3077>
src/mesa/drivers/dri/i965/intel_screen.c