radeonsi: remove unused cases from si_shader_io_get_unique_index
authorMarek Olšák <marek.olsak@amd.com>
Sun, 10 May 2015 16:03:47 +0000 (18:03 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 26 May 2015 10:42:37 +0000 (12:42 +0200)
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>
src/gallium/drivers/radeonsi/si_shader.c

index 5c2225277fd14c392ff5fdaf44c604eb81d63cac..47e5f96cbed43ddeae01049f96aab7bd7193bca7 100644 (file)
@@ -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;