mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
radeonsi/nir: fix assertion in si_nir_load_sampler_desc
This commit is contained in:
parent
1f8a661748
commit
452cb7055f
1 changed files with 1 additions and 1 deletions
|
|
@ -1129,7 +1129,7 @@ si_nir_load_sampler_desc(struct ac_shader_abi *abi,
|
|||
}
|
||||
|
||||
unsigned num_slots = image ? ctx->num_images : ctx->num_samplers;
|
||||
assert(const_index < num_slots);
|
||||
assert(const_index < num_slots || dynamic_index);
|
||||
|
||||
LLVMValueRef list = LLVMGetParam(ctx->main_fn, ctx->param_samplers_and_images);
|
||||
LLVMValueRef index = LLVMConstInt(ctx->ac.i32, const_index, false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue