Module: Mesa Branch: main Commit: 8d37aa91d680d801258ef643d6efb106daff5b86 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8d37aa91d680d801258ef643d6efb106daff5b86
Author: Timur Kristóf <[email protected]> Date: Fri Dec 4 16:18:18 2020 +0100 aco: Add Operand(Temp, PhysReg) constructor. Signed-off-by: Timur Kristóf <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7779> --- src/amd/compiler/aco_ir.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/amd/compiler/aco_ir.h b/src/amd/compiler/aco_ir.h index fba36457050..3b6280c8a6c 100644 --- a/src/amd/compiler/aco_ir.h +++ b/src/amd/compiler/aco_ir.h @@ -476,6 +476,13 @@ public: setFixed(PhysReg{128}); } }; + explicit Operand(Temp r, PhysReg reg) noexcept + { + assert(r.id()); /* Don't allow fixing an undef to a register */ + data_.temp = r; + isTemp_ = true; + setFixed(reg); + }; explicit Operand(uint8_t v) noexcept { /* 8-bit constants are only used for copies and copies from any 8-bit _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
