summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common/vulkan_wrapper.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-12-25 06:42:03 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-12-31 06:07:33 +0100
commit53ea06dc17ccf9232aa3326a4621500058f9d253 (patch)
tree944449c1810bd515d2b7882c2b2b15cf4a32f9e7 /src/video_core/vulkan_common/vulkan_wrapper.cpp
parentrenderer_vulkan: Throw when enumerating devices fails (diff)
downloadyuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar
yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar.gz
yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar.bz2
yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar.lz
yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar.xz
yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.tar.zst
yuzu-53ea06dc17ccf9232aa3326a4621500058f9d253.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/vulkan_common/vulkan_wrapper.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/video_core/vulkan_common/vulkan_wrapper.cpp b/src/video_core/vulkan_common/vulkan_wrapper.cpp
index 8698c3f92..5e15ad607 100644
--- a/src/video_core/vulkan_common/vulkan_wrapper.cpp
+++ b/src/video_core/vulkan_common/vulkan_wrapper.cpp
@@ -580,7 +580,7 @@ void Semaphore::SetObjectNameEXT(const char* name) const {
Device Device::Create(VkPhysicalDevice physical_device, Span<VkDeviceQueueCreateInfo> queues_ci,
Span<const char*> enabled_extensions, const void* next,
- DeviceDispatch& dispatch) noexcept {
+ DeviceDispatch& dispatch) {
const VkDeviceCreateInfo ci{
.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO,
.pNext = next,
@@ -593,11 +593,8 @@ Device Device::Create(VkPhysicalDevice physical_device, Span<VkDeviceQueueCreate
.ppEnabledExtensionNames = enabled_extensions.data(),
.pEnabledFeatures = nullptr,
};
-
VkDevice device;
- if (dispatch.vkCreateDevice(physical_device, &ci, nullptr, &device) != VK_SUCCESS) {
- return {};
- }
+ Check(dispatch.vkCreateDevice(physical_device, &ci, nullptr, &device));
Load(device, dispatch);
return Device(device, dispatch);
}