summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ameerj2021-09-16 00:54:24 -0400
committerGravatar ameerj2021-09-16 00:54:24 -0400
commite3c153efa416d8bcac3b2801099dfba9da34392d (patch)
treefa5bfdf0059575dff2802611c067764e4cff7435 /src
parentRevert "Merge pull request #7006 from FernandoS27/a-motherfucking-driver" (diff)
downloadyuzu-e3c153efa416d8bcac3b2801099dfba9da34392d.tar.gz
yuzu-e3c153efa416d8bcac3b2801099dfba9da34392d.tar.xz
yuzu-e3c153efa416d8bcac3b2801099dfba9da34392d.zip
vulkan_device: Reorder Float16Int8 declaration
This variable was going out of scope before its usage in the vulkan device creation, causing a crash on very specific drivers.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 910e63a25..c2ec9f76a 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -368,8 +368,9 @@ Device::Device(VkInstance instance_, vk::PhysicalDevice physical_, VkSurfaceKHR
368 }; 368 };
369 SetNext(next, demote); 369 SetNext(next, demote);
370 370
371 VkPhysicalDeviceFloat16Int8FeaturesKHR float16_int8;
371 if (is_int8_supported || is_float16_supported) { 372 if (is_int8_supported || is_float16_supported) {
372 VkPhysicalDeviceFloat16Int8FeaturesKHR float16_int8{ 373 float16_int8 = {
373 .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR, 374 .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR,
374 .pNext = nullptr, 375 .pNext = nullptr,
375 .shaderFloat16 = is_float16_supported, 376 .shaderFloat16 = is_float16_supported,