mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
anv: pass anv_device to batch_set_preemption
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32329>
This commit is contained in:
parent
c36f7e42a7
commit
c4e7578fa6
3 changed files with 7 additions and 7 deletions
|
|
@ -294,7 +294,7 @@ genX(ray_tracing_pipeline_emit)(struct anv_ray_tracing_pipeline *pipeline);
|
|||
|
||||
void
|
||||
genX(batch_set_preemption)(struct anv_batch *batch,
|
||||
const struct intel_device_info *devinfo,
|
||||
struct anv_device *device,
|
||||
uint32_t current_pipeline,
|
||||
bool value);
|
||||
|
||||
|
|
|
|||
|
|
@ -2584,12 +2584,12 @@ genX(batch_emit_pipe_control_write)(struct anv_batch *batch,
|
|||
/* Set preemption on/off. */
|
||||
void
|
||||
genX(batch_set_preemption)(struct anv_batch *batch,
|
||||
const struct intel_device_info *devinfo,
|
||||
struct anv_device *device,
|
||||
uint32_t current_pipeline,
|
||||
bool value)
|
||||
{
|
||||
#if INTEL_WA_16013994831_GFX_VER
|
||||
if (!intel_needs_workaround(devinfo, 16013994831))
|
||||
if (!intel_needs_workaround(device->info, 16013994831))
|
||||
return;
|
||||
|
||||
anv_batch_write_reg(batch, GENX(CS_CHICKEN1), cc1) {
|
||||
|
|
@ -2598,7 +2598,7 @@ genX(batch_set_preemption)(struct anv_batch *batch,
|
|||
}
|
||||
|
||||
/* Wa_16013994831 - we need to insert CS_STALL and 250 noops. */
|
||||
genx_batch_emit_pipe_control(batch, devinfo, current_pipeline,
|
||||
genx_batch_emit_pipe_control(batch, device->info, current_pipeline,
|
||||
ANV_PIPE_CS_STALL_BIT);
|
||||
|
||||
for (unsigned i = 0; i < 250; i++)
|
||||
|
|
@ -2613,7 +2613,7 @@ genX(cmd_buffer_set_preemption)(struct anv_cmd_buffer *cmd_buffer, bool value)
|
|||
if (cmd_buffer->state.gfx.object_preemption == value)
|
||||
return;
|
||||
|
||||
genX(batch_set_preemption)(&cmd_buffer->batch, cmd_buffer->device->info,
|
||||
genX(batch_set_preemption)(&cmd_buffer->batch, cmd_buffer->device,
|
||||
cmd_buffer->state.current_pipeline,
|
||||
value);
|
||||
cmd_buffer->state.gfx.object_preemption = value;
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ emit_common_so_memcpy(struct anv_memcpy_state *state,
|
|||
#if INTEL_WA_16013994831_GFX_VER
|
||||
/* Wa_16013994831 - Disable preemption during streamout. */
|
||||
if (intel_needs_workaround(device->info, 16013994831))
|
||||
genX(batch_set_preemption)(batch, device->info, _3D, false);
|
||||
genX(batch_set_preemption)(batch, device, _3D, false);
|
||||
#endif
|
||||
|
||||
anv_batch_emit(batch, GENX(3DSTATE_SBE), sbe) {
|
||||
|
|
@ -357,7 +357,7 @@ void
|
|||
genX(emit_so_memcpy_end)(struct anv_memcpy_state *state)
|
||||
{
|
||||
if (intel_needs_workaround(state->device->info, 16013994831))
|
||||
genX(batch_set_preemption)(state->batch, state->device->info, _3D, true);
|
||||
genX(batch_set_preemption)(state->batch, state->device, _3D, true);
|
||||
|
||||
anv_batch_emit(state->batch, GENX(MI_BATCH_BUFFER_END), end);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue