Module: Mesa
Branch: staging/23.3
Commit: 2f0a118afee441f2f1d7ec7b6a655f0adc77b208
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f0a118afee441f2f1d7ec7b6a655f0adc77b208

Author: Tapani Pälli <[email protected]>
Date:   Thu Jan 11 15:50:09 2024 +0200

anv: check for wa 16013994831 in emit_so_memcpy_end

We are toggling preemption on/off during streamout, this is also
happening on gfx12 platforms, not just dg2.

Cc: mesa-stable
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27002>
(cherry picked from commit 36f428f1de78d6bd2c0aa6719da06cd5233a8c7f)

---

 .pick_status.json                  | 2 +-
 src/intel/vulkan/genX_gpu_memcpy.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index 394f2da964f..2d482414016 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -24,7 +24,7 @@
         "description": "anv: check for wa 16013994831 in emit_so_memcpy_end",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": null,
         "notes": null
diff --git a/src/intel/vulkan/genX_gpu_memcpy.c 
b/src/intel/vulkan/genX_gpu_memcpy.c
index 112f94fd2c0..2c561473c30 100644
--- a/src/intel/vulkan/genX_gpu_memcpy.c
+++ b/src/intel/vulkan/genX_gpu_memcpy.c
@@ -272,7 +272,7 @@ genX(emit_so_memcpy_fini)(struct anv_memcpy_state *state)
 void
 genX(emit_so_memcpy_end)(struct anv_memcpy_state *state)
 {
-   if (intel_device_info_is_dg2(state->device->info))
+   if (intel_needs_workaround(state->device->info, 16013994831))
       genX(batch_set_preemption)(state->batch, state->device->info, true);
 
    anv_batch_emit(state->batch, GENX(MI_BATCH_BUFFER_END), end);

Reply via email to