From fcbe987e1007afa15c8ccb0013322a74b7259ad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tapani=20P=C3=A4lli?= Date: Fri, 16 Jan 2026 09:59:17 +0200 Subject: [PATCH] anv: fix setting emitted_flush_bits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a crash with: dEQP-VK.api.external.semaphore.opaque_fd.signal_export_import_wait_temporary when driver calls genX(CmdSetEvent2) -> emit_apply_pipe_flushes with having NULL in emitted_flush_bits. Fixes: 8834ef8bcd5 ("anv: use flushing PIPE_CONTROL for event signaling") Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/genX_cmd_buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 30201caf41e..1702047d2a8 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -2128,7 +2128,8 @@ genX(emit_apply_pipe_flushes)(struct anv_batch *batch, emit_resource_barrier(batch, device->info, src_stages, dst_stages, bits, signal_addr, wait_addr); - *emitted_flush_bits = 0; + if (emitted_flush_bits) + *emitted_flush_bits = 0; return 0; } #endif