Browse Source

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>
nce_cpp
ameerj 4 years ago
parent
commit
8281bfa93d
  1. 5
      src/video_core/renderer_vulkan/vk_texture_cache.cpp

5
src/video_core/renderer_vulkan/vk_texture_cache.cpp

@ -781,11 +781,6 @@ bool TextureCacheRuntime::ShouldReinterpret(Image& dst, Image& src) {
!device.IsExtShaderStencilExportSupported()) { !device.IsExtShaderStencilExportSupported()) {
return true; return true;
} }
if (VideoCore::Surface::GetFormatType(src.info.format) ==
VideoCore::Surface::SurfaceType::DepthStencil &&
!device.IsExtShaderStencilExportSupported()) {
return true;
}
if (dst.info.format == PixelFormat::D32_FLOAT_S8_UINT || if (dst.info.format == PixelFormat::D32_FLOAT_S8_UINT ||
src.info.format == PixelFormat::D32_FLOAT_S8_UINT) { src.info.format == PixelFormat::D32_FLOAT_S8_UINT) {
return true; return true;

Loading…
Cancel
Save