[Mesa-dev] [PATCH v4 085/129] nir: Remove deref chain support from lower_alpha_test

Jason Ekstrand jason at jlekstrand.net
Fri Jun 1 05:04:15 UTC 2018


---
 src/compiler/nir/nir_lower_alpha_test.c | 5 ++---
 1 file 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 776655a..8dc2fc7 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;
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list