anv: avoid null pointer access in utrace copies on CCS
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 3e0ad0176b ("anv: Emit state cache invalidation after every compute dispatch")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38235>
This commit is contained in:
Lionel Landwerlin 2025-11-04 10:13:19 +02:00 committed by Marge Bot
parent df5f92d114
commit 6f138fe723
2 changed files with 9 additions and 1 deletions

View file

@ -1712,6 +1712,7 @@ anv_async_submit_init(struct anv_async_submit *submit,
.relocs = &submit->relocs, .relocs = &submit->relocs,
.user_data = submit, .user_data = submit,
.extend_cb = anv_async_submit_extend_batch, .extend_cb = anv_async_submit_extend_batch,
.engine_class = queue->family->engine_class,
}; };
util_dynarray_init(&submit->batch_bos, NULL); util_dynarray_init(&submit->batch_bos, NULL);

View file

@ -667,7 +667,14 @@ genX(emit_simple_shader_dispatch)(struct anv_simple_shader *state,
cw.body = body; cw.body = body;
} }
genX(cmd_buffer_state_cache_inval_wa_14025112257)(state->cmd_buffer); /* TODO: switch to use INTEL_NEEDS_WA_14025112257 */
if (device->info->ver >= 20 &&
batch->engine_class == INTEL_ENGINE_CLASS_COMPUTE) {
enum anv_pipe_bits emitted_bits = 0;
genX(emit_apply_pipe_flushes)(batch, device, GPGPU,
ANV_PIPE_STATE_CACHE_INVALIDATE_BIT,
&emitted_bits);
}
#else /* GFX_VERx10 < 125 */ #else /* GFX_VERx10 < 125 */
const uint32_t vfe_curbe_allocation = const uint32_t vfe_curbe_allocation =