radeonsi: cosmetic cleanup in si_shader_io_get_unique_index
authorMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 23:04:37 +0000 (19:04 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 9 Jul 2019 21:24:16 +0000 (17:24 -0400)
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Acked-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/radeonsi/si_shader.c

index 610edcb9a78212f69e49f4b9c60d1c78c94a8d6a..0b7c21325eab1d06310f8db01bff074a7bb3b9ed 100644 (file)
@@ -213,10 +213,10 @@ unsigned si_shader_io_get_unique_index(unsigned semantic_name, unsigned index,
                        return SI_MAX_IO_GENERIC + 10 + index;
        case TGSI_SEMANTIC_TEXCOORD:
                assert(index < 8);
-               STATIC_ASSERT(SI_MAX_IO_GENERIC + 12 + 8 <= 63);
                return SI_MAX_IO_GENERIC + 12 + index;
        case TGSI_SEMANTIC_CLIPVERTEX:
-               return 63;
+               STATIC_ASSERT(SI_MAX_IO_GENERIC + 12 + 8 <= 63);
+               return SI_MAX_IO_GENERIC + 12 + 8;
        default:
                fprintf(stderr, "invalid semantic name = %u\n", semantic_name);
                assert(!"invalid semantic name");