From a9241edfa3ed1ccf9b5635d1313d88e532d46cd5 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 19 Apr 2019 11:32:22 -0700 Subject: [PATCH] freedreno/ir3: fix const assert Fixes: fe8c57e859d freedreno/ir3: use nir_src_as_uint in a few places Signed-off-by: Rob Clark --- src/freedreno/ir3/ir3_image.c | 1 - 1 file changed, 1 deletion(-) 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); -- 2.30.2