mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
anv: use INTEL_NEEDS_WA_14025112257 define for workaround
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41281>
This commit is contained in:
parent
c6f503bed6
commit
c540405ca3
2 changed files with 6 additions and 8 deletions
|
|
@ -558,17 +558,15 @@ uint32_t genX(shader_cmd_size)(struct anv_device *device,
|
|||
static inline void
|
||||
genX(cmd_buffer_post_dispatch_wa)(struct anv_cmd_buffer *cmd_buffer)
|
||||
{
|
||||
/* TODO: Add INTEL_NEEDS_WA_14025112257 check once HSD is propogated for all
|
||||
* other impacted platforms.
|
||||
*/
|
||||
if (cmd_buffer->device->info->ver >= 20 &&
|
||||
anv_cmd_buffer_is_compute_queue(cmd_buffer)) {
|
||||
#if INTEL_NEEDS_WA_14025112257
|
||||
if (anv_cmd_buffer_is_compute_queue(cmd_buffer)) {
|
||||
genX(batch_emit_pipe_control)(&cmd_buffer->batch,
|
||||
cmd_buffer->device->info,
|
||||
cmd_buffer->state.current_pipeline,
|
||||
ANV_PIPE_STATE_CACHE_INVALIDATE_BIT,
|
||||
"Wa_14025112257");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
|
|
|||
|
|
@ -648,13 +648,13 @@ genX(emit_simple_shader_dispatch)(struct anv_simple_shader *state,
|
|||
if (state->cmd_buffer) {
|
||||
genX(cmd_buffer_post_dispatch_wa)(state->cmd_buffer);
|
||||
} else {
|
||||
/* TODO: switch to use INTEL_NEEDS_WA_14025112257 */
|
||||
if (device->info->ver >= 20 &&
|
||||
batch->engine_class == INTEL_ENGINE_CLASS_COMPUTE) {
|
||||
#if INTEL_NEEDS_WA_14025112257
|
||||
if (batch->engine_class == INTEL_ENGINE_CLASS_COMPUTE) {
|
||||
genX(batch_emit_pipe_control)(batch, devinfo, GPGPU,
|
||||
ANV_PIPE_STATE_CACHE_INVALIDATE_BIT,
|
||||
"Wa_14025112257");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#else /* GFX_VERx10 < 125 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue