From 3a1676e55876da7948e9589362f1f94102d1afb3 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Tue, 25 Jan 2022 01:01:03 +0300 Subject: [PATCH] vk: Fix float16 requirement issue --- rpcs3/Emu/RSX/VK/vkutils/device.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpcs3/Emu/RSX/VK/vkutils/device.cpp b/rpcs3/Emu/RSX/VK/vkutils/device.cpp index aece05a4a4..8978293785 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/device.cpp +++ b/rpcs3/Emu/RSX/VK/vkutils/device.cpp @@ -539,6 +539,7 @@ namespace vk // Allow use of f16 type in shaders if possible shader_support_info.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT16_INT8_FEATURES_KHR; shader_support_info.shaderFloat16 = VK_TRUE; + shader_support_info.pNext = const_cast(device.pNext); device.pNext = &shader_support_info; rsx_log.notice("GPU/driver supports float16 data types natively. Using native float16_t variables if possible."); @@ -562,6 +563,7 @@ namespace vk #undef SET_DESCRIPTOR_BITFLAG indexing_features.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES_EXT; + indexing_features.pNext = const_cast(device.pNext); device.pNext = &indexing_features; }