diff options
author | Jason Ekstrand <[email protected]> | 2018-03-26 17:21:08 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-06-22 20:54:00 -0700 |
commit | 41c52c963a6a252fcb7208f70c0b11730fc40784 (patch) | |
tree | 2bbb2453848fd78c1015dc8767155aa6cc08ab76 | |
parent | d2adc08abe91cf0cb6b33397f48d868146abdf98 (diff) |
nir: Remove deref chain support from lower_clamp_color_outputs
Acked-by: Rob Clark <[email protected]>
Acked-by: Bas Nieuwenhuizen <[email protected]>
Acked-by: Dave Airlie <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/compiler/nir/nir_lower_clamp_color_outputs.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); |