radeonsi: reduce the number of generics for shader IO unique indices
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 10 May 2017 11:22:10 +0000 (13:22 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 12 May 2017 08:46:06 +0000 (10:46 +0200)
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>
src/gallium/drivers/radeonsi/si_shader.h

index cf97a719f2d0b6f5b2c3fb3aa1d25da477e45426..307590024f527ba3b3dea651e2cde273844a5157 100644 (file)
@@ -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 {