From 804bfc62911828fdf67c0755075306b0ead93403 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 15 Jun 2025 09:53:01 +0200 Subject: [PATCH 1/2] Fix build with older vulkan_hpp --- server/driver/wivrn_foveation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/driver/wivrn_foveation.cpp b/server/driver/wivrn_foveation.cpp index 2bccec66..faa4003c 100644 --- a/server/driver/wivrn_foveation.cpp +++ b/server/driver/wivrn_foveation.cpp @@ -408,6 +408,6 @@ vk::CommandBuffer wivrn_foveation::update_foveation_buffer( fill_ubo(ubo->x + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, params[view].x, false, source[view].offset.w, source[view].extent.w, foveated_width); fill_ubo(ubo->y + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, params[view].y, flip_y, source[view].offset.h, source[view].extent.h, foveated_height); } - return cmd; + return *cmd; } } // namespace wivrn From f2050fbe5425db0aee1cb171c985208dce28859f Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 15 Jun 2025 10:00:29 +0200 Subject: [PATCH 2/2] Re-fix build with older vulkan_hpp --- server/driver/wivrn_foveation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/driver/wivrn_foveation.cpp b/server/driver/wivrn_foveation.cpp index faa4003c..c507ce0f 100644 --- a/server/driver/wivrn_foveation.cpp +++ b/server/driver/wivrn_foveation.cpp @@ -259,7 +259,7 @@ wivrn_foveation::wivrn_foveation(wivrn_vk_bundle & bundle, const xrt_hmd_parts & foveated_height(hmd.screens[0].h_pixels), command_pool(bundle.device, vk::CommandPoolCreateInfo{.queueFamilyIndex = bundle.queue_family_index}), cmd(std::move(bundle.device.allocateCommandBuffers({ - .commandPool = command_pool, + .commandPool = *command_pool, .commandBufferCount = 1, })[0])), host_buffer(