From: Nicolai Hähnle Date: Wed, 10 May 2017 11:22:10 +0000 (+0200) Subject: radeonsi: reduce the number of generics for shader IO unique indices X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0dd8aa44b3d08e33574bbc528188d9bb4ea8f7d3;p=mesa.git 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 Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index cf97a719f2d..307590024f5 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 {