intel/brw/xe2+: Scale size_written by reg_unit for DPAS

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28834>
This commit is contained in:
Ian Romanick
2024-04-04 21:48:53 -07:00
parent e368b8e01b
commit 77ef241577

View File

@@ -852,9 +852,9 @@ namespace brw {
inst->rcount = rcount;
if (dst.type == BRW_TYPE_HF) {
inst->size_written = rcount * REG_SIZE / 2;
inst->size_written = reg_unit(shader->devinfo) * rcount * REG_SIZE / 2;
} else {
inst->size_written = rcount * REG_SIZE;
inst->size_written = reg_unit(shader->devinfo) * rcount * REG_SIZE;
}
return inst;