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:
parent
41839d38cf
commit
57d977a23f
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue