diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2023-02-24 16:15:37 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2023-02-24 16:41:40 +0000 |
commit | 59acc69737488be7c8c68b00a7a7d97027c7e20e (patch) | |
tree | e00534895317b759070132ec35e4f4b34699db28 /render | |
parent | 8619ffab2142d8c0022bfa86e1ff7a3539c01f46 (diff) |
vulkan: silence -Wint-conversion on 32-bit architectures
render/vulkan/renderer.c:388:70: error: incompatible pointer to integer conversion passing 'void *' to parameter of type 'VkFence' (aka 'unsigned long long') [-Werror,-Wint-conversion]
VkResult res = vkQueueSubmit(renderer->dev->queue, 1, &submit_info, NULL);
^~~~
render/vulkan/renderer.c:1141:81: error: incompatible pointer to integer conversion passing 'void *' to parameter of type 'VkFence' (aka 'unsigned long long') [-Werror,-Wint-conversion]
VkResult res = vkQueueSubmit(renderer->dev->queue, submit_count, submit_infos, NULL);
^~~~
/usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
/usr/local/include/vulkan/vulkan_core.h:4054:49: note: passing argument to parameter 'fence' here
VkFence fence);
^
Fixes: a8a194d695af ("render/vulkan: switch to timeline semaphores")
Diffstat (limited to 'render')
-rw-r--r-- | render/vulkan/renderer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c index fe716240..4e326c69 100644 --- a/render/vulkan/renderer.c +++ b/render/vulkan/renderer.c @@ -385,7 +385,7 @@ bool vulkan_submit_stage_wait(struct wlr_vk_renderer *renderer) { .signalSemaphoreCount = 1, .pSignalSemaphores = &renderer->timeline_semaphore, }; - VkResult res = vkQueueSubmit(renderer->dev->queue, 1, &submit_info, NULL); + VkResult res = vkQueueSubmit(renderer->dev->queue, 1, &submit_info, VK_NULL_HANDLE); if (res != VK_SUCCESS) { wlr_vk_error("vkQueueSubmit", res); return false; @@ -1138,7 +1138,7 @@ static void vulkan_end(struct wlr_renderer *wlr_renderer) { }; uint32_t submit_count = sizeof(submit_infos) / sizeof(submit_infos[0]); - VkResult res = vkQueueSubmit(renderer->dev->queue, submit_count, submit_infos, NULL); + VkResult res = vkQueueSubmit(renderer->dev->queue, submit_count, submit_infos, VK_NULL_HANDLE); if (res == VK_ERROR_DEVICE_LOST) { wlr_log(WLR_ERROR, "vkQueueSubmit failed with VK_ERROR_DEVICE_LOST"); wl_signal_emit_mutable(&wlr_renderer->events.lost, NULL); |