Apply sRGB conversion to reference in sRGB framebuffer fetch test
authorjames.glanville <james.glanville@imgtec.com>
Thu, 18 May 2017 10:24:06 +0000 (11:24 +0100)
committerPyry Haulos <phaulos@google.com>
Mon, 12 Jun 2017 17:22:36 +0000 (17:22 +0000)
commit497d640930282f26c865d151d6f6f59b773d7577
treef0f53522e79ad033b138382c64bf3629add5ddc0
parent5059ad0c7557666cbf0697e9b57348042dff749f
Apply sRGB conversion to reference in sRGB framebuffer fetch test

Framebuffer fetch returns linear values when the framebuffer format
is sRGB and GL_FRAMEBUFFER_SRGB is enabled (default). This conversion
was not applied when generating reference textures for framebuffer
fetch tests. glReadPixels() does not apply any conversion, so the
final reference value must also be converted back to sRGB.

Affects: dEQP-GLES31.functional.shaders.framebuffer_fetch.
framebuffer_format.srgb8_alpha8

Components: AOSP
modules/gles31/functional/es31fShaderFramebufferFetchTests.cpp