nvk: Don't set queue lost from nvk_queue_push()

This is used both in the vkQueueSubmit path and in the vkCreateDevice
path and we don't want vkCreateDevice to return VK_ERROR_DEVICE_LOST.
In the vkQueueSubmit path we already have a catch-all that will cause
device loss on any error so we don't need to do it in nvk_queue_push().

This fixes dEQP-VK.api.device_init.create_instance_device_intentional_alloc_fail.basic

Fixes: e814fc16ff ("nvk: Use an nvk_mem_stream for nvk_queue_push()")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35442>
This commit is contained in:
Faith Ekstrand 2025-06-10 14:15:29 -04:00 committed by Marge Bot
parent 90b92aaf26
commit 48f0d738de

View file

@ -343,10 +343,7 @@ nvk_queue_push(struct nvk_queue *queue, const struct nv_push *push)
(pdev->debug_flags & NVK_DEBUG_PUSH_DUMP))
vk_push_print(stderr, push, &pdev->info);
if (result != VK_SUCCESS)
return vk_queue_set_lost(&queue->vk, "Submit failed");
return VK_SUCCESS;
return result;
}
static VkResult