mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
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 <marek.olsak@amd.com>
This commit is contained in:
parent
bb42c896fe
commit
400db1852b
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue