From 90339fabd7845c09aa73ea8516ad756103b2548a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 10 May 2017 09:58:31 +0200 Subject: [PATCH] radeonsi: at most 8 sets of texture coordinates are supported MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Tested-by: Dieter Nützel Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 98292867c8d..c12c8ea39e7 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -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"); -- 2.30.2