summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common/vulkan_device.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-08-28 01:37:40 +0200
committerLiam <byteslice@airmail.cc>2023-09-16 17:59:20 +0200
commitb99f94a7ffab0698f209bf1b39d337940bc40e50 (patch)
treee5d3c3348ea579760276b6d7bb7fd10a98fe0910 /src/video_core/vulkan_common/vulkan_device.cpp
parentVulkan: Implement Depth Bias Control (diff)
downloadyuzu-b99f94a7ffab0698f209bf1b39d337940bc40e50.tar
yuzu-b99f94a7ffab0698f209bf1b39d337940bc40e50.tar.gz
yuzu-b99f94a7ffab0698f209bf1b39d337940bc40e50.tar.bz2
yuzu-b99f94a7ffab0698f209bf1b39d337940bc40e50.tar.lz
yuzu-b99f94a7ffab0698f209bf1b39d337940bc40e50.tar.xz
yuzu-b99f94a7ffab0698f209bf1b39d337940bc40e50.tar.zst
yuzu-b99f94a7ffab0698f209bf1b39d337940bc40e50.zip
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.cpp')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index 617417040..835a1338b 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -1051,6 +1051,13 @@ void Device::RemoveUnsuitableExtensions() {
RemoveExtensionFeatureIfUnsuitable(extensions.custom_border_color, features.custom_border_color,
VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME);
+ // VK_EXT_depth_bias_control
+ extensions.depth_bias_control =
+ features.depth_bias_control.depthBiasControl &&
+ features.depth_bias_control.leastRepresentableValueForceUnormRepresentation;
+ RemoveExtensionFeatureIfUnsuitable(extensions.depth_bias_control, features.depth_bias_control,
+ VK_EXT_DEPTH_BIAS_CONTROL_EXTENSION_NAME);
+
// VK_EXT_depth_clip_control
extensions.depth_clip_control = features.depth_clip_control.depthClipControl;
RemoveExtensionFeatureIfUnsuitable(extensions.depth_clip_control, features.depth_clip_control,