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

Author: Georg Lehmann <[email protected]>
Date:   Fri Mar 24 13:41:11 2023 +0100

aco: don't check usesModifiers for pseudo instructions

This can't happen.

Reviewed-by: Rhys Perry <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22106>

---

 src/amd/compiler/aco_optimizer.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/amd/compiler/aco_optimizer.cpp 
b/src/amd/compiler/aco_optimizer.cpp
index cca6b37741a..68f72ca7eb1 100644
--- a/src/amd/compiler/aco_optimizer.cpp
+++ b/src/amd/compiler/aco_optimizer.cpp
@@ -1803,8 +1803,6 @@ label_instruction(opt_ctx& ctx, aco_ptr<Instruction>& 
instr)
    case aco_opcode::p_as_uniform:
       if (instr->definitions[0].isFixed()) {
          /* don't copy-propagate copies into fixed registers */
-      } else if (instr->usesModifiers()) {
-         // TODO
       } else if (instr->operands[0].isConstant()) {
          ctx.info[instr->definitions[0].tempId()].set_constant(
             ctx.program->gfx_level, instr->operands[0].constantValue64());

Reply via email to