[Mesa-dev] [PATCH 3/6] radeonsi: remove unused cases from si_shader_io_get_unique_index
Marek Olšák
maraeo at gmail.com
Sun May 24 02:52:21 PDT 2015
From: Marek Olšák <marek.olsak at amd.com>
These can't occur between VS and GS, because GS is only supported
in the core profile.
---
src/gallium/drivers/radeonsi/si_shader.c | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 5c22252..47e5f96 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -128,21 +128,10 @@ unsigned si_shader_io_get_unique_index(unsigned semantic_name, unsigned index)
case TGSI_SEMANTIC_CLIPDIST:
assert(index <= 1);
return 2 + index;
- case TGSI_SEMANTIC_CLIPVERTEX:
- return 4;
- case TGSI_SEMANTIC_COLOR:
- assert(index <= 1);
- return 5 + index;
- case TGSI_SEMANTIC_BCOLOR:
- assert(index <= 1);
- return 7 + index;
- case TGSI_SEMANTIC_FOG:
- return 9;
- case TGSI_SEMANTIC_EDGEFLAG:
- return 10;
case TGSI_SEMANTIC_GENERIC:
- assert(index <= 63-11);
- return 11 + index;
+ assert(index <= 63-4);
+ return 4 + index;
+
default:
assert(0);
return 63;
--
2.1.0
More information about the mesa-dev
mailing list