anv: fix setting emitted_flush_bits

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: 8834ef8bcd ("anv: use flushing PIPE_CONTROL for event signaling")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39343>
This commit is contained in:
Tapani Pälli 2026-01-16 09:59:17 +02:00 committed by Marge Bot
parent b9908bb165
commit fcbe987e10

View file

@ -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