diff options
| author | 2022-03-17 20:55:05 -0400 | |
|---|---|---|
| committer | 2022-03-17 20:55:05 -0400 | |
| commit | 4d840aa903ac1285c58450813f0b5041669454c6 (patch) | |
| tree | 450a8a897fcf50efd2db7a7ea74e300800f0ef1e | |
| parent | Merge pull request #8024 from liamwhite/const-indexing (diff) | |
| download | yuzu-4d840aa903ac1285c58450813f0b5041669454c6.tar.gz yuzu-4d840aa903ac1285c58450813f0b5041669454c6.tar.xz yuzu-4d840aa903ac1285c58450813f0b5041669454c6.zip | |
vk_texture_cache: Do not reinterpret DepthStencil source images
Fixes star pointer interactions in Super Mario Galaxy on some drivers, notably Nvidia.
Co-Authored-By: Fernando S. <1731197+fernandos27@users.noreply.github.com>
Diffstat (limited to '')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index 8101eb42c..83a23b66a 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp | |||
| @@ -781,11 +781,6 @@ bool TextureCacheRuntime::ShouldReinterpret(Image& dst, Image& src) { | |||
| 781 | !device.IsExtShaderStencilExportSupported()) { | 781 | !device.IsExtShaderStencilExportSupported()) { |
| 782 | return true; | 782 | return true; |
| 783 | } | 783 | } |
| 784 | if (VideoCore::Surface::GetFormatType(src.info.format) == | ||
| 785 | VideoCore::Surface::SurfaceType::DepthStencil && | ||
| 786 | !device.IsExtShaderStencilExportSupported()) { | ||
| 787 | return true; | ||
| 788 | } | ||
| 789 | if (dst.info.format == PixelFormat::D32_FLOAT_S8_UINT || | 784 | if (dst.info.format == PixelFormat::D32_FLOAT_S8_UINT || |
| 790 | src.info.format == PixelFormat::D32_FLOAT_S8_UINT) { | 785 | src.info.format == PixelFormat::D32_FLOAT_S8_UINT) { |
| 791 | return true; | 786 | return true; |