diff options
author | bunnei <bunneidev@gmail.com> | 2023-06-12 21:46:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-12 21:46:54 +0200 |
commit | ad8f122ab106a474bee26ca2f638cfe51256eb6e (patch) | |
tree | 689bbdec246df545970abaea91d196b7a94d6bb7 /src/video_core | |
parent | Merge pull request #10718 from liamwhite/buffered-io (diff) | |
parent | shader_recompiler: translate f64 to f32 when unsupported on host (diff) | |
download | yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar.gz yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar.bz2 yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar.lz yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar.xz yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.tar.zst yuzu-ad8f122ab106a474bee26ca2f638cfe51256eb6e.zip |
Diffstat (limited to '')
-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 | 5 |
3 files changed, 7 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 6ecda2984..dd8caa556 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp @@ -232,6 +232,7 @@ ShaderCache::ShaderCache(RasterizerOpenGL& rasterizer_, Core::Frontend::EmuWindo .gl_max_compute_smem_size = device.GetMaxComputeSharedMemorySize(), }, host_info{ + .support_float64 = true, .support_float16 = false, .support_int64 = device.HasShaderInt64(), .needs_demote_reorder = device.IsAmd(), diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp index 9482e91b0..5734f51e5 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.cpp @@ -350,6 +350,7 @@ PipelineCache::PipelineCache(RasterizerVulkan& rasterizer_, const Device& device .has_broken_spirv_subgroup_mask_vector_extract_dynamic = driver_id == VK_DRIVER_ID_QUALCOMM_PROPRIETARY}; host_info = Shader::HostTranslateInfo{ + .support_float64 = device.IsFloat64Supported(), .support_float16 = device.IsFloat16Supported(), .support_int64 = device.IsShaderInt64Supported(), .needs_demote_reorder = diff --git a/src/video_core/vulkan_common/vulkan_device.h b/src/video_core/vulkan_common/vulkan_device.h index d62a103a1..0c53e35a6 100644 --- a/src/video_core/vulkan_common/vulkan_device.h +++ b/src/video_core/vulkan_common/vulkan_device.h @@ -300,6 +300,11 @@ public: return GetDriverID() != VK_DRIVER_ID_QUALCOMM_PROPRIETARY; } + /// Returns true if the device suppors float64 natively. + bool IsFloat64Supported() const { + return features.features.shaderFloat64; + } + /// Returns true if the device supports float16 natively. bool IsFloat16Supported() const { return features.shader_float16_int8.shaderFloat16; |