Mesa (main): glsl: Don't dead-built-in varying eliminate in the condition of an assignment

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Feb 11 17:59:12 UTC 2022


Module: Mesa
Branch: main
Commit: 97ffca80a80cdb030d7c80f52be7351e66274b63
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=97ffca80a80cdb030d7c80f52be7351e66274b63

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Fri Jan 14 18:35:11 2022 -0800

glsl: Don't dead-built-in varying eliminate in the condition of an assignment

At this point, this should always be NULL.

Reviewed-by: Matt Turner <mattst88 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14573>

---

 src/compiler/glsl/opt_dead_builtin_varyings.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/compiler/glsl/opt_dead_builtin_varyings.cpp b/src/compiler/glsl/opt_dead_builtin_varyings.cpp
index 47d95df55f5..981cedf0a78 100644
--- a/src/compiler/glsl/opt_dead_builtin_varyings.cpp
+++ b/src/compiler/glsl/opt_dead_builtin_varyings.cpp
@@ -489,7 +489,6 @@ public:
    virtual ir_visitor_status visit_leave(ir_assignment *ir)
    {
       handle_rvalue(&ir->rhs);
-      handle_rvalue(&ir->condition);
 
       /* We have to use set_lhs when changing the LHS of an assignment. */
       ir_rvalue *lhs = ir->lhs;



More information about the mesa-commit mailing list