radeonsi: Better indexing of parameters in the pixel shader.
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 27 Sep 2012 18:01:33 +0000 (20:01 +0200)
committerMichel Dänzer <michel@daenzer.net>
Tue, 2 Oct 2012 15:50:58 +0000 (17:50 +0200)
commitc3db19efba8ccdf8df94ab357cf675ba8728f81c
tree302b930492643818f66a109f98fd0c3b287b90b1
parentdbb4a7f9502c886885bfd8cc635eb5e52f3d1d39
radeonsi: Better indexing of parameters in the pixel shader.

We were previously using the TGSI input index, which can exceed the number of
parameters passed from the vertex shader via the parameter cache. Now we use
a separate index which only counts those parameters.

Prevents piglit regressions with the following fix.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c
src/gallium/drivers/radeonsi/radeonsi_shader.h
src/gallium/drivers/radeonsi/si_state_draw.c