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 98292867c8db16dd93f793975cc937e0a6ad46a0..c12c8ea39e79e91f8d4110a585a93d2834cce169 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");