From 57d977a23fbcf513ebc167def0acc2cbb58bfe99 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Tue, 27 Oct 2020 13:23:07 +0000 Subject: aco: round bytes_written to dwords if larger than 4 bytes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_register_allocation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 81e4072a2b7..2561baefc1a 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -456,6 +456,7 @@ std::pair get_subdword_definition_info(Program *program, con default: break; } + bytes_written = bytes_written > 4 ? align(bytes_written, 4) : bytes_written; bytes_written = MAX2(bytes_written, instr_info.definition_size[(int)instr->opcode] / 8u); if (can_use_SDWA(chip, instr)) { -- cgit v1.2.3