summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-05-10 09:58:31 +0200
committerNicolai Hähnle <[email protected]>2017-05-12 10:46:05 +0200
commit90339fabd7845c09aa73ea8516ad756103b2548a (patch)
tree163ef70ada4aef3ad67d2df63bf58664fefdc663 /src/gallium
parentcfe6e30f1b74cc5617791aad9188f6cd4a07b78d (diff)
radeonsi: at most 8 sets of texture coordinates are supported
Tested-by: Dieter Nützel <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c1
1 files changed, 1 insertions, 0 deletions
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");