diff --git a/src/intel/common/mi_builder.h b/src/intel/common/mi_builder.h index 0d8b30ba856..9b0f54a781a 100644 --- a/src/intel/common/mi_builder.h +++ b/src/intel/common/mi_builder.h @@ -1206,7 +1206,7 @@ mi_store_relocated_address_reg64(struct mi_builder *b, struct mi_value addr_reg) const unsigned addr_dw = GENX(MI_STORE_REGISTER_MEM_MemoryAddress_start) / 8; - token.ptrs[i] = (void *)_dst + addr_dw; + token.ptrs[i] = (uint64_t *)((uint8_t *)_dst + addr_dw); } }