intel/mi_builder: Use AddCSMMIOStartOffset for LRI
In06cf838cbd
we started using the AddCSMMIOStartOffset feature on Gen11+ but we missed one place. Fixes:06cf838cbd
"intel/mi_builder: Support gen11 command-streamer..." Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9445>
This commit is contained in:
parent
ccd7986f59
commit
2c02740a8c
|
@ -374,13 +374,17 @@ _mi_copy_no_unref(struct mi_builder *b,
|
|||
if (dst.type == MI_VALUE_TYPE_REG64) {
|
||||
uint32_t *dw = (uint32_t *)__gen_get_batch_dwords(b->user_data,
|
||||
GENX(MI_LOAD_REGISTER_IMM_length) + 2);
|
||||
struct mi_reg_num reg = mi_adjust_reg_num(dst.reg);
|
||||
mi_builder_pack(b, GENX(MI_LOAD_REGISTER_IMM), dw, lri) {
|
||||
lri.DWordLength = GENX(MI_LOAD_REGISTER_IMM_length) + 2 -
|
||||
GENX(MI_LOAD_REGISTER_IMM_length_bias);
|
||||
#if GEN_GEN >= 11
|
||||
lri.AddCSMMIOStartOffset = reg.cs;
|
||||
#endif
|
||||
}
|
||||
dw[1] = dst.reg;
|
||||
dw[1] = reg.num;
|
||||
dw[2] = src.imm;
|
||||
dw[3] = dst.reg + 4;
|
||||
dw[3] = reg.num + 4;
|
||||
dw[4] = src.imm >> 32;
|
||||
} else {
|
||||
#if GEN_GEN >= 8
|
||||
|
|
Loading…
Reference in New Issue