anv, blorp: Set COMPUTE_WALKER Message SIMD field

Fixes: d95bbf35 ('anv: Set COMPUTE_WALKER Message SIMD field')
Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27983>
(cherry picked from commit 731ffa0737)
This commit is contained in:
Rohan Garg 2024-03-05 13:36:03 +01:00 committed by Eric Engestrom
parent b98965d507
commit aa42cefb3c
3 changed files with 3 additions and 1 deletions

View file

@ -664,7 +664,7 @@
"description": "anv, blorp: Set COMPUTE_WALKER Message SIMD field",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "d95bbf35c9d2a601d04ed83a9095091df02fee9e",
"notes": null

View file

@ -2167,6 +2167,7 @@ blorp_exec_compute(struct blorp_batch *batch, const struct blorp_params *params)
assert(cs_prog_data->push.per_thread.regs == 0);
blorp_emit(batch, GENX(COMPUTE_WALKER), cw) {
cw.SIMDSize = dispatch.simd_size / 16;
cw.MessageSIMD = dispatch.simd_size / 16,
cw.LocalXMaximum = cs_prog_data->local_size[0] - 1;
cw.LocalYMaximum = cs_prog_data->local_size[1] - 1;
cw.LocalZMaximum = cs_prog_data->local_size[2] - 1;

View file

@ -545,6 +545,7 @@ genX(emit_simple_shader_dispatch)(struct anv_simple_shader *state,
#if GFX_VERx10 >= 125
anv_batch_emit(batch, GENX(COMPUTE_WALKER), cw) {
cw.SIMDSize = dispatch.simd_size / 16;
cw.MessageSIMD = dispatch.simd_size / 16,
cw.IndirectDataStartAddress = push_state.offset;
cw.IndirectDataLength = push_state.alloc_size;
cw.LocalXMaximum = prog_data->local_size[0] - 1;