mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
jay/to_binary: fix packing of simd-split accumulators
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41398>
This commit is contained in:
parent
2e9e8e9a36
commit
b6e88ab904
1 changed files with 3 additions and 2 deletions
|
|
@ -153,12 +153,13 @@ to_brw_reg(jay_function *f,
|
|||
}
|
||||
|
||||
if (d.file == GPR) {
|
||||
R = byte_offset(xe2_vec8_grf(phys_reg, 0),
|
||||
simd_offs * simd_width * stride_bits / 8);
|
||||
R = xe2_vec8_grf(phys_reg, 0);
|
||||
} else {
|
||||
R = brw_vecn_reg(8, ARF, BRW_ARF_ACCUMULATOR + (phys_reg * 2), 0);
|
||||
}
|
||||
|
||||
R = byte_offset(R, simd_offs * simd_width * stride_bits / 8);
|
||||
|
||||
if (stride_bits == (type_bits * 4)) {
|
||||
R = stride(R, 8, 2, 4);
|
||||
} else if (stride_bits == (type_bits * 2)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue