summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-03-26 17:06:51 -0700
committerJason Ekstrand <[email protected]>2018-06-22 20:54:00 -0700
commitd2adc08abe91cf0cb6b33397f48d868146abdf98 (patch)
tree4dbd766bd67df783831ee57bd87b6fbfd4b5b79e /src/compiler
parent81f29d6d33b54a8661cf7b3b6a7b930c07232e91 (diff)
nir: Remove deref chain support from lower_alpha_test
Acked-by: Rob Clark <[email protected]> Acked-by: Bas Nieuwenhuizen <[email protected]> Acked-by: Dave Airlie <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_lower_alpha_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/nir/nir_lower_alpha_test.c b/src/compiler/nir/nir_lower_alpha_test.c
index 776655a52a7..8dc2fc7e756 100644
--- a/src/compiler/nir/nir_lower_alpha_test.c
+++ b/src/compiler/nir/nir_lower_alpha_test.c
@@ -41,6 +41,8 @@ nir_lower_alpha_test(nir_shader *shader, enum compare_func func,
{
assert(shader->info.stage == MESA_SHADER_FRAGMENT);
+ nir_assert_unlowered_derefs(shader, nir_lower_load_store_derefs);
+
nir_foreach_function(function, shader) {
nir_function_impl *impl = function->impl;
nir_builder b;
@@ -55,9 +57,6 @@ nir_lower_alpha_test(nir_shader *shader, enum compare_func func,
nir_variable *out = NULL;
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;