radeonsi: decrease maximum supported GENERIC varying index from 42 to 31
authorMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 23:05:19 +0000 (19:05 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 9 Jul 2019 21:24:16 +0000 (17:24 -0400)
This can decrease LDS and/or memory usage for shader outputs when geometry
shaders or tessellation is used.

Only PS inputs support higher indices and those aren't eliminated by
kill_outputs.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Acked-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/radeonsi/si_shader.h

index 8fb4b563b785d871df7ef3b1099cf9c7eab3363a..1eacef63e7223872fec581f30e29499f967fb55a 100644 (file)
@@ -157,7 +157,7 @@ struct si_context;
 /* Shader IO unique indices are supported for TGSI_SEMANTIC_GENERIC with an
  * index smaller than this.
  */
-#define SI_MAX_IO_GENERIC       43
+#define SI_MAX_IO_GENERIC       32
 
 /* SGPR user data indices */
 enum {