diff options
author | Rob Clark <[email protected]> | 2019-04-19 11:32:22 -0700 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-04-19 12:36:06 -0700 |
commit | a9241edfa3ed1ccf9b5635d1313d88e532d46cd5 (patch) | |
tree | b198a69f56bf317f399dfd221aa6c696ba40f73a /src/freedreno | |
parent | bcb81b4d48f3a248189a6da0af564ae23473e451 (diff) |
freedreno/ir3: fix const assert
Fixes: fe8c57e859d freedreno/ir3: use nir_src_as_uint in a few places
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/ir3/ir3_image.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |