From 41c52c963a6a252fcb7208f70c0b11730fc40784 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 26 Mar 2018 17:21:08 -0700 Subject: nir: Remove deref chain support from lower_clamp_color_outputs Acked-by: Rob Clark Acked-by: Bas Nieuwenhuizen Acked-by: Dave Airlie Reviewed-by: Kenneth Graunke --- src/compiler/nir/nir_lower_clamp_color_outputs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/compiler/nir') diff --git a/src/compiler/nir/nir_lower_clamp_color_outputs.c b/src/compiler/nir/nir_lower_clamp_color_outputs.c index ec398489823..499fce3ef2c 100644 --- a/src/compiler/nir/nir_lower_clamp_color_outputs.c +++ b/src/compiler/nir/nir_lower_clamp_color_outputs.c @@ -67,9 +67,6 @@ lower_intrinsic(lower_state *state, nir_intrinsic_instr *intr) nir_ssa_def *s; switch (intr->intrinsic) { - case nir_intrinsic_store_var: - out = intr->variables[0]->var; - break; case nir_intrinsic_store_deref: out = nir_deref_instr_get_variable(nir_src_as_deref(intr->src[0])); break; @@ -138,6 +135,8 @@ nir_lower_clamp_color_outputs(nir_shader *shader) .shader = shader, }; + nir_assert_unlowered_derefs(shader, nir_lower_load_store_derefs); + nir_foreach_function(function, shader) { if (function->impl) progress |= lower_impl(&state, function->impl); -- cgit v1.2.3