Fix texture/sampler mapping in sRGB tests
authorAlexander Galazin <alexander.galazin@arm.com>
Thu, 11 May 2017 12:27:20 +0000 (14:27 +0200)
committerPyry Haulos <phaulos@google.com>
Mon, 15 May 2017 18:06:22 +0000 (18:06 +0000)
commitc8efb45eadba4a910ab5770b2207582cf1bb7ca0
tree7e0044e375471c40d40dd22a918a203243aafede
parent633ab6f3c84dba812f0beedc6a31884008ad9d6d
Fix texture/sampler mapping in sRGB tests

sRGB decode tests assume that an API side texture with index i
is connected with a shader sampler variable uTexture with index i.

This relation was however incorrectly established, e.g.
the tests were mapping texture0 to a sampler with location 0, while
such sampler was not necessarily uTexture0.

This change fixes the mapping and makes the relation more obvious.

Components: AOSP
Affects:
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.*.toggled
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.*.conversion_gpu

Google bug: 38257749

Change-Id: I16508f6033b31583b1c5973b70a610dd59e78e8f
modules/gles31/functional/es31fSRGBDecodeTests.cpp