summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-07-03 19:05:19 -0400
committerMarek Olšák <[email protected]>2019-07-09 17:24:16 -0400
commit1c99a13f89b743cbe4328a1c2cfc854dca05184d (patch)
treef7851c8fc01f203217bdfe8f0c873825a96f5470
parent6335cc6a5807d41cfbe543237d3c679c127d2c98 (diff)
radeonsi: decrease maximum supported GENERIC varying index from 42 to 31
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 <[email protected]> Acked-by: Dave Airlie <[email protected]>
-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 8fb4b563b78..1eacef63e72 100644
--- a/src/gallium/drivers/radeonsi/si_shader.h
+++ b/src/gallium/drivers/radeonsi/si_shader.h
@@ -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 {