dri/i965: extend GLES3 sRGB workaround to cover all formats
authorHaixia Shi <hshi@chromium.org>
Thu, 7 Apr 2016 18:05:08 +0000 (11:05 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Apr 2016 09:06:12 +0000 (02:06 -0700)
commitb0e3ba61b5f8bb285472d5acda5ff233b05aeef4
treeddc6e6ed56a948b41ad83d198efe5f733801ebff
parentea8a65f503f05404d923a2a076064c3ffe6660aa
dri/i965: extend GLES3 sRGB workaround to cover all formats

It is incorrect to assume BGRA byte order for the GLES3 sRGB workaround.

v2: use _mesa_get_srgb_format_linear to handle all formats

Signed-off-by: Haixia Shi <hshi@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c