summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/radeonsi_shader.h
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2012-09-27 20:01:33 +0200
committerMichel Dänzer <[email protected]>2012-10-02 17:50:58 +0200
commitc3db19efba8ccdf8df94ab357cf675ba8728f81c (patch)
tree302b930492643818f66a109f98fd0c3b287b90b1 /src/gallium/drivers/radeonsi/radeonsi_shader.h
parentdbb4a7f9502c886885bfd8cc635eb5e52f3d1d39 (diff)
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 <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_shader.h')
-rw-r--r--src/gallium/drivers/radeonsi/radeonsi_shader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.h b/src/gallium/drivers/radeonsi/radeonsi_shader.h
index 688db57cca1..4583e62b9c4 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.h
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.h
@@ -71,6 +71,7 @@ struct si_shader {
unsigned noutput;
struct si_shader_io output[32];
+ unsigned ninterp;
bool uses_kill;
bool fs_write_all;
unsigned nr_cbufs;