From 0dd8aa44b3d08e33574bbc528188d9bb4ea8f7d3 Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Wed, 10 May 2017 13:22:10 +0200 Subject: radeonsi: reduce the number of generics for shader IO unique indices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/drivers/radeonsi/si_shader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 { -- cgit v1.2.3