diff --git a/src/intel/compiler/jay/jay_to_binary.c b/src/intel/compiler/jay/jay_to_binary.c index 851e5220ba3..3a8eefdc10d 100644 --- a/src/intel/compiler/jay/jay_to_binary.c +++ b/src/intel/compiler/jay/jay_to_binary.c @@ -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)) {