diff options
author | Fernando S <fsahmkow27@gmail.com> | 2023-12-20 18:45:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-20 18:45:20 +0100 |
commit | 9e5b4052edddba9655be7293fe147619ccc86436 (patch) | |
tree | 26454a8e0b4e00e6c5a087ca23dac2674f486e49 /src/video_core | |
parent | Merge pull request #12390 from liamwhite/binding-insanity (diff) | |
parent | shader_recompiler: use minimal clip distance array (diff) | |
download | yuzu-9e5b4052edddba9655be7293fe147619ccc86436.tar yuzu-9e5b4052edddba9655be7293fe147619ccc86436.tar.gz yuzu-9e5b4052edddba9655be7293fe147619ccc86436.tar.bz2 yuzu-9e5b4052edddba9655be7293fe147619ccc86436.tar.lz yuzu-9e5b4052edddba9655be7293fe147619ccc86436.tar.xz yuzu-9e5b4052edddba9655be7293fe147619ccc86436.tar.zst yuzu-9e5b4052edddba9655be7293fe147619ccc86436.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.cpp | 1 | ||||
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.cpp | 1 | ||||
-rw-r--r-- | src/video_core/vulkan_common/vulkan_device.h | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp index 26f2d0ea7..b5999362a 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp @@ -233,6 +233,7 @@ ShaderCache::ShaderCache(RasterizerOpenGL& rasterizer_, Core::Frontend::EmuWindo .ignore_nan_fp_comparisons = true, .gl_max_compute_smem_size = device.GetMaxComputeSharedMemorySize(), .min_ssbo_alignment = device.GetShaderStorageBufferAlignment(), + .max_user_clip_distances = 8, }, host_info{ .support_float64 = true, diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index 2a13b2a72..fa63d6228 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -374,6 +374,7 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device .has_broken_robust = device.IsNvidia() && device.GetNvidiaArch() <= NvidiaArchitecture::Arch_Pascal, .min_ssbo_alignment = device.GetStorageBufferAlignment(), + .max_user_clip_distances = device.GetMaxUserClipDistances(), }; host_info = Shader::HostTranslateInfo{ diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h index 4f3846345..701817086 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h @@ -665,6 +665,10 @@ public: return properties.properties.limits.maxViewports; } + u32 GetMaxUserClipDistances() const { + return properties.properties.limits.maxClipDistances; + } + bool SupportsConditionalBarriers() const { return supports_conditional_barriers; } |