mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
freedreno/ir3: fix const assert
Fixes: fe8c57e859 freedreno/ir3: use nir_src_as_uint in a few places
Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
bcb81b4d48
commit
a9241edfa3
1 changed files with 0 additions and 1 deletions
|
|
@ -96,7 +96,6 @@ ir3_get_image_slot(nir_deref_instr *deref)
|
||||||
while (deref->deref_type != nir_deref_type_var) {
|
while (deref->deref_type != nir_deref_type_var) {
|
||||||
assert(deref->deref_type == nir_deref_type_array);
|
assert(deref->deref_type == nir_deref_type_array);
|
||||||
unsigned const_index = nir_src_as_uint(deref->arr.index);
|
unsigned const_index = nir_src_as_uint(deref->arr.index);
|
||||||
assert(const_index);
|
|
||||||
|
|
||||||
/* Go to the next instruction */
|
/* Go to the next instruction */
|
||||||
deref = nir_deref_instr_parent(deref);
|
deref = nir_deref_instr_parent(deref);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue