commit | 57d977a23fbcf513ebc167def0acc2cbb58bfe99 | [log] [tgz] |
---|---|---|
author | Rhys Perry <pendingchaos02@gmail.com> | Tue Oct 27 13:23:07 2020 +0000 |
committer | Rhys Perry <pendingchaos02@gmail.com> | Wed Oct 28 10:56:27 2020 +0000 |
tree | 5dcec818a1fcb9a119d80098233d36009c98b395 | |
parent | 41839d38cf367baea66dfe2306cc4dd0b4adaf2f [diff] |
aco: round bytes_written to dwords if larger than 4 bytes Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7276>
diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 81e4072..2561bae 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp
@@ -456,6 +456,7 @@ 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)) {