diff mbox series

[FFmpeg-devel,06/10] vulkan: use correct return codes for query errors

Message ID 20240901000314.379276-5-dev@lynne.ee
State New
Headers show
Series None | expand

Commit Message

Lynne Sept. 1, 2024, 12:03 a.m. UTC
---
 libavutil/vulkan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index bb8e7ae786..fe5affa72a 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -444,7 +444,7 @@  VkResult ff_vk_exec_get_query(FFVulkanContext *s, FFVkExecContext *e,
     VkQueryResultFlags qf = 0;
 
     if (!e->had_submission)
-        return VK_NOT_READY;
+        return VK_INCOMPLETE;
 
     qf |= pool->query_64bit ?
           VK_QUERY_RESULT_64_BIT : 0x0;