summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-11-19 17:27:12 +0100
committerLiam <byteslice@airmail.cc>2023-11-19 17:27:12 +0100
commit473caaff5b02dc75404943dee6b12234995136d4 (patch)
tree9ffcc37eaf92051541ae5e159461506d520f22c6 /src/video_core
parentMerge pull request #12081 from FernandoS27/check-out-on-your-broke-crypto-friends (diff)
downloadyuzu-473caaff5b02dc75404943dee6b12234995136d4.tar
yuzu-473caaff5b02dc75404943dee6b12234995136d4.tar.gz
yuzu-473caaff5b02dc75404943dee6b12234995136d4.tar.bz2
yuzu-473caaff5b02dc75404943dee6b12234995136d4.tar.lz
yuzu-473caaff5b02dc75404943dee6b12234995136d4.tar.xz
yuzu-473caaff5b02dc75404943dee6b12234995136d4.tar.zst
yuzu-473caaff5b02dc75404943dee6b12234995136d4.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.cpp1
-rw-r--r--src/video_core/vulkan_common/vulkan_device.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
index 16ad8d625..89b455bff 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
@@ -351,6 +351,7 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device
.support_geometry_shader_passthrough = device.IsNvGeometryShaderPassthroughSupported(),
.support_native_ndc = device.IsExtDepthClipControlSupported(),
.support_scaled_attributes = !device.MustEmulateScaledFormats(),
+ .support_multi_viewport = device.SupportsMultiViewport(),
.warp_size_potentially_larger_than_guest = device.IsWarpSizePotentiallyBiggerThanGuest(),
diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h
index 355de0616..4f3846345 100644
--- a/src/video_core/vulkan_common/vulkan_device.h
+++ b/src/video_core/vulkan_common/vulkan_device.h
@@ -669,6 +669,10 @@ public:
return supports_conditional_barriers;
}
+ bool SupportsMultiViewport() const {
+ return features2.features.multiViewport;
+ }
+
[[nodiscard]] static constexpr bool CheckBrokenCompute(VkDriverId driver_id,
u32 driver_version) {
if (driver_id == VK_DRIVER_ID_INTEL_PROPRIETARY_WINDOWS) {