summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/radeonsi/si_shader.h
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-05-10 13:22:10 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2017-05-12 10:46:06 +0200
commit0dd8aa44b3d08e33574bbc528188d9bb4ea8f7d3 (patch)
tree2e2ef7629f4286cb7c587dfadea0893ed81fb9f6 /src/gallium/drivers/radeonsi/si_shader.h
parent90339fabd7845c09aa73ea8516ad756103b2548a (diff)
radeonsi: reduce the number of generics for shader IO unique indices
This is a high as possible while still allowing to merge the bitfields with the next commit. For OpenGL, 32 would be sufficient. Nine apparently uses (much!) higher indices than. Indices that are out of bound don't hurt for VS-PS pipelines, except that the VS output kill optimization is not applied. Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h
index cf97a719f2..307590024f 100644
--- a/src/gallium/drivers/radeonsi/si_shader.h
+++ b/src/gallium/drivers/radeonsi/si_shader.h
@@ -148,7 +148,7 @@ struct ac_shader_binary;
/* Shader IO unique indices are supported for TGSI_SEMANTIC_GENERIC with an
* index smaller than this.
*/
-#define SI_MAX_IO_GENERIC 60
+#define SI_MAX_IO_GENERIC 46
/* SGPR user data indices */
enum {