From: Rob Clark Date: Fri, 19 Apr 2019 18:32:22 +0000 (-0700) Subject: freedreno/ir3: fix const assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9241edfa3ed1ccf9b5635d1313d88e532d46cd5;p=mesa.git freedreno/ir3: fix const assert Fixes: fe8c57e859d freedreno/ir3: use nir_src_as_uint in a few places Signed-off-by: Rob Clark --- diff --git a/src/freedreno/ir3/ir3_image.c b/src/freedreno/ir3/ir3_image.c index a476b98dfc2..835b5381d23 100644 --- a/src/freedreno/ir3/ir3_image.c +++ b/src/freedreno/ir3/ir3_image.c @@ -96,7 +96,6 @@ ir3_get_image_slot(nir_deref_instr *deref) while (deref->deref_type != nir_deref_type_var) { assert(deref->deref_type == nir_deref_type_array); unsigned const_index = nir_src_as_uint(deref->arr.index); - assert(const_index); /* Go to the next instruction */ deref = nir_deref_instr_parent(deref);