radeonsi: at most 8 sets of texture coordinates are supported
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 10 May 2017 07:58:31 +0000 (09:58 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 12 May 2017 08:46:05 +0000 (10:46 +0200)
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 9829286..c12c8ea 100644 (file)
@@ -169,6 +169,7 @@ unsigned si_shader_io_get_unique_index2(unsigned name, unsigned index)
        case TGSI_SEMANTIC_BCOLOR:
                return 4 + index;
        case TGSI_SEMANTIC_TEXCOORD:
+               assert(index < 8);
                return 6 + index;
        default:
                assert(!"invalid semantic name");