mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 20:20:18 +01:00
anv: avoid null pointer access in utrace copies on CCS
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:
parent
df5f92d114
commit
6f138fe723
2 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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 =
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue