From 19b2da25904628ca4194c2da87dd0c0f7ff38d24 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 19 Sep 2021 19:01:12 +0300 Subject: [PATCH] Enable stencil export extension when required --- rpcs3/Emu/RSX/VK/vkutils/device.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcs3/Emu/RSX/VK/vkutils/device.cpp b/rpcs3/Emu/RSX/VK/vkutils/device.cpp index a3f8906a6b..9649f64fed 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/device.cpp +++ b/rpcs3/Emu/RSX/VK/vkutils/device.cpp @@ -312,6 +312,11 @@ namespace vk requested_extensions.push_back(VK_EXT_EXTERNAL_MEMORY_HOST_EXTENSION_NAME); } + if (pgpu->stencil_export_support) + { + requested_extensions.push_back(VK_EXT_SHADER_STENCIL_EXPORT_EXTENSION_NAME); + } + enabled_features.robustBufferAccess = VK_TRUE; enabled_features.fullDrawIndexUint32 = VK_TRUE; enabled_features.independentBlend = VK_TRUE;