From b913fae162cec3845d29ef5c4bc83b53490c3b48 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 19 Jul 2024 17:51:15 +0300 Subject: [PATCH] anv: add missing MEDIA_STATE_FLUSH for internal shaders MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replicating what we do in genX_cmd_compute.c Signed-off-by: Lionel Landwerlin Fixes: 7ca5c84804 ("anv: add support for simple internal compute shaders") Reviewed-by: Tapani Pälli Part-of: (cherry picked from commit 4f093b2e2bc52ea2a3e7aaac64c91d2f12f1c9b8) --- .pick_status.json | 2 +- src/intel/vulkan/genX_simple_shader.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 3c499b1dc05..df7c78108f7 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -3764,7 +3764,7 @@ "description": "anv: add missing MEDIA_STATE_FLUSH for internal shaders", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "7ca5c84804fa33b26a0b4c3cb8ea2a8f66d46315", "notes": null diff --git a/src/intel/vulkan/genX_simple_shader.c b/src/intel/vulkan/genX_simple_shader.c index bfe1ba2b5bf..c86d82a9ee0 100644 --- a/src/intel/vulkan/genX_simple_shader.c +++ b/src/intel/vulkan/genX_simple_shader.c @@ -690,6 +690,7 @@ genX(emit_simple_shader_dispatch)(struct anv_simple_shader *state, ggw.RightExecutionMask = dispatch.right_mask; ggw.BottomExecutionMask = 0xffffffff; } + anv_batch_emit(batch, GENX(MEDIA_STATE_FLUSH), msf); #endif } }