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>
This commit is contained in:
Rhys Perry 2020-10-27 13:23:07 +00:00
parent 41839d38cf
commit 57d977a23f
1 changed files with 1 additions and 0 deletions

View File

@ -456,6 +456,7 @@ std::pair<unsigned, unsigned> 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)) {