From: Nicolai Hähnle Date: Wed, 10 May 2017 07:58:31 +0000 (+0200) Subject: radeonsi: at most 8 sets of texture coordinates are supported X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90339fabd7845c09aa73ea8516ad756103b2548a;p=mesa.git radeonsi: at most 8 sets of texture coordinates are supported Tested-by: Dieter Nützel Reviewed-by: Marek Olšák --- 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");