summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-05-10 18:03:47 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-05-26 12:42:37 +0200
commitf41517242aaad3cb67fb7f6c9a03dc34198ca500 (patch)
tree1262776768802efc36805ea8b3f047046881c537
parentaf4b9c7c2e119d373f9684119b833a8b62cbb756 (diff)
downloadexternal_mesa3d-f41517242aaad3cb67fb7f6c9a03dc34198ca500.zip
external_mesa3d-f41517242aaad3cb67fb7f6c9a03dc34198ca500.tar.gz
external_mesa3d-f41517242aaad3cb67fb7f6c9a03dc34198ca500.tar.bz2
radeonsi: remove unused cases from si_shader_io_get_unique_index
These can't occur between VS and GS, because GS is only supported in the core profile. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c17
1 files 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;