summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2019-08-20 12:43:33 +0200
committerConnor Abbott <[email protected]>2019-08-23 11:05:31 +0200
commit400db1852bda58f0559c5612fcc378695380425a (patch)
tree9088d63f97bdb17faf552466ea257860c811efcc /src/amd
parentbb42c896fe9a1057f8e630480541938225ce0149 (diff)
ac/nir: Assert GS input index is constant
If it's not we silently ignore indir_index which is definitely a bug. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_nir_to_llvm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index e6795bac97a..0878017f60d 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -2067,6 +2067,7 @@ static LLVMValueRef visit_load_var(struct ac_nir_context *ctx,
unsigned const_index, vertex_index;
get_deref_offset(ctx, deref, false, &vertex_index, NULL,
&const_index, &indir_index);
+ assert(indir_index == NULL);
return ctx->abi->load_inputs(ctx->abi, var->data.location,
var->data.driver_location,