aboutsummaryrefslogtreecommitdiff
path: root/src/physical_device_context.cc
diff options
context:
space:
mode:
authorNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-03-30 15:54:10 +1100
committerNicolas James <Eele1Ephe7uZahRie@tutanota.com>2026-03-30 15:54:10 +1100
commit644bc4ed5edd4e3ffa88750bdacb147c75df9546 (patch)
tree5580f05b202493ccb68d5c67ec37e10d53f3cd1d /src/physical_device_context.cc
parent681bd5096ee416b50dd7338de30af7b3db385a36 (diff)
Fix AL2 via VK_NV_low_latency2's async implementation, fix race in TimestampPool
Diffstat (limited to 'src/physical_device_context.cc')
-rw-r--r--src/physical_device_context.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/physical_device_context.cc b/src/physical_device_context.cc
index 9c4ad8e..86bf9ab 100644
--- a/src/physical_device_context.cc
+++ b/src/physical_device_context.cc
@@ -1,4 +1,5 @@
#include "physical_device_context.hh"
+#include "helper.hh"
#include <vulkan/vulkan_core.h>
@@ -26,25 +27,24 @@ PhysicalDeviceContext::PhysicalDeviceContext(
vtable.GetPhysicalDeviceQueueFamilyProperties2(physical_device, &count,
nullptr);
- using qp_t = PhysicalDeviceContext::queue_properties_t;
- auto result = qp_t(
+ auto result = std::vector<VkQueueFamilyProperties2>(
count, VkQueueFamilyProperties2{
.sType = VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2});
vtable.GetPhysicalDeviceQueueFamilyProperties2(physical_device, &count,
std::data(result));
- return std::make_unique<qp_t>(std::move(result));
+ return std::make_unique<std::vector<VkQueueFamilyProperties2>>(
+ std::move(result));
}();
this->supports_required_extensions = [&]() {
auto count = std::uint32_t{};
- THROW_NON_VKSUCCESS(vtable.EnumerateDeviceExtensionProperties(
+ THROW_NOT_VKSUCCESS(vtable.EnumerateDeviceExtensionProperties(
physical_device, nullptr, &count, nullptr));
auto supported_extensions = std::vector<VkExtensionProperties>(count);
- THROW_NON_VKSUCCESS(vtable.EnumerateDeviceExtensionProperties(
- physical_device, nullptr, &count,
- std::data(supported_extensions)));
+ THROW_NOT_VKSUCCESS(vtable.EnumerateDeviceExtensionProperties(
+ physical_device, nullptr, &count, std::data(supported_extensions)));
const auto supported =
supported_extensions |