mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-03 07:10:08 +01:00
gpu: add queue validation
This commit is contained in:
parent
4a66097f2d
commit
f135c0d4b7
|
|
@ -538,6 +538,10 @@ void vk::Context::createDevice(VkSurfaceKHR surface, int gpuIndex,
|
|||
queueFamiliesCount++;
|
||||
}
|
||||
|
||||
rx::dieIf(queueFamiliesWithPresentSupport.empty(), "not found queue family with present support");
|
||||
rx::dieIf(queueFamiliesWithComputeSupport.empty(), "not found queue family with compute support");
|
||||
rx::dieIf(queueFamiliesWithGraphicsSupport.empty(), "not found queue family with graphics support");
|
||||
|
||||
this->surface = surface;
|
||||
|
||||
std::vector<VkDeviceQueueCreateInfo> requestedQueues;
|
||||
|
|
@ -631,7 +635,9 @@ void vk::Context::createDevice(VkSurfaceKHR surface, int gpuIndex,
|
|||
}
|
||||
}
|
||||
|
||||
if (graphicsQueues.empty() && presentQueue != VK_NULL_HANDLE) {
|
||||
rx::dieIf(presentQueue == VK_NULL_HANDLE, "present queue not found");
|
||||
|
||||
if (graphicsQueues.empty()) {
|
||||
graphicsQueues.push_back({presentQueue, presentQueueFamily});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue