summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_lower_io.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-10-05 19:56:54 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-10-06 09:16:39 -0700
commitae032e5ea61dac3c63d74056174939e5ec091629 (patch)
tree86684d642726e12aff0914b62a74f8c4c30321b1 /src/compiler/nir/nir_lower_io.c
parent2ed17d46de045404042f13c6591895a1cf31b167 (diff)
nir: Remove some no longer needed asserts
Now that the NIR casting functions have type assertions, we have a bunch of assertions that aren't needed anymore. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Diffstat (limited to 'src/compiler/nir/nir_lower_io.c')
-rw-r--r--src/compiler/nir/nir_lower_io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c
index a3b14238993..d77cb134533 100644
--- a/src/compiler/nir/nir_lower_io.c
+++ b/src/compiler/nir/nir_lower_io.c
@@ -143,7 +143,6 @@ get_io_offset(nir_builder *b, nir_deref_var *deref,
*/
if (vertex_index != NULL) {
tail = tail->child;
- assert(tail->deref_type == nir_deref_type_array);
nir_deref_array *deref_array = nir_deref_as_array(tail);
nir_ssa_def *vtx = nir_imm_int(b, deref_array->base_offset);