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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user