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 20:16:54 +0000 (13:16 -0700)
commit102cfe8b1147c7bada5ed5bcb0430743fc1a1a63
treece17f3e4d04b5607373df5ce6c5b100be3edb47e
parent148890e79faa5c5dda04f73c0162553b640f04d0
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
(cherry picked from commit c8efb45eadba4a910ab5770b2207582cf1bb7ca0)
modules/gles31/functional/es31fSRGBDecodeTests.cpp