Don't mangle safe bit patterns in copy_image sRGB RB cases.
authorJarkko Pöyry <jpoyry@google.com>
Sat, 20 Jun 2015 03:06:47 +0000 (20:06 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Mon, 22 Jun 2015 17:58:40 +0000 (10:58 -0700)
commit7e62c4dc9cebd17f3eca7673b71944a0c467346b
treefffb899204a47b03151c09085b0329a2ad5c5775
parentc4338891551d50d959847748bb185ee9ff4e926d
Don't mangle safe bit patterns in copy_image sRGB RB cases.

Clearing a sRGB framebuffer takes in the clear color in linear space and
then transforms it to sRGB space. This process destroys the carefully
selected clear color bit pattern. Avoid bit mangling by doing first an
inverse tranformation to the supplied clear color which restores the bit
pattern when the color is coverted to sRGB internal format.

Bug: 20698928
Bug: 21951463
Change-Id: I2155e8a977cc524401b5f98c7dde4502f62e35a7
modules/gles31/functional/es31fCopyImageTests.cpp