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

Author: Rhys Perry <[email protected]>
Date:   Fri Sep 22 19:33:17 2023 +0100

aco: consider exec_hi in reads_exec()

Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Daniel Schürmann <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25374>

---

 src/amd/compiler/aco_ir.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_ir.h b/src/amd/compiler/aco_ir.h
index ef355553255..d521c4d929a 100644
--- a/src/amd/compiler/aco_ir.h
+++ b/src/amd/compiler/aco_ir.h
@@ -1052,7 +1052,7 @@ struct Instruction {
    constexpr bool reads_exec() const noexcept
    {
       for (const Operand& op : operands) {
-         if (op.isFixed() && op.physReg() == exec)
+         if (op.isFixed() && (op.physReg() == exec_lo || op.physReg() == 
exec_hi))
             return true;
       }
       return false;

Reply via email to