diff --git a/src/virtio/vulkan/vn_device_memory.c b/src/virtio/vulkan/vn_device_memory.c index db87692ea59..a7434c2953b 100644 --- a/src/virtio/vulkan/vn_device_memory.c +++ b/src/virtio/vulkan/vn_device_memory.c @@ -62,6 +62,9 @@ vn_device_memory_wait_alloc(struct vn_device *dev, if (!mem->bo_ring_seqno_valid) return VK_SUCCESS; + /* fine to false it here since renderer submission failure is fatal */ + mem->bo_ring_seqno_valid = false; + /* no need to wait for ring if * - mem alloc is done upon bo map or export * - mem import is done upon bo destroy @@ -69,9 +72,6 @@ vn_device_memory_wait_alloc(struct vn_device *dev, if (vn_ring_get_seqno_status(dev->primary_ring, mem->bo_ring_seqno)) return VK_SUCCESS; - /* fine to false it here since renderer submission failure is fatal */ - mem->bo_ring_seqno_valid = false; - const uint64_t ring_id = vn_ring_get_id(dev->primary_ring); uint32_t local_data[8]; struct vn_cs_encoder local_enc =