mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-27 10:20:05 +00:00
VulkanTexturECache: Use reinterpret on D32_S8 formats.
This commit is contained in:
parent
b96caf200d
commit
d7f4434bd5
@ -775,8 +775,13 @@ StagingBufferRef TextureCacheRuntime::DownloadStagingBuffer(size_t size) {
|
|||||||
|
|
||||||
bool TextureCacheRuntime::ShouldReinterpret(Image& dst, Image& src) {
|
bool TextureCacheRuntime::ShouldReinterpret(Image& dst, Image& src) {
|
||||||
if (VideoCore::Surface::GetFormatType(dst.info.format) ==
|
if (VideoCore::Surface::GetFormatType(dst.info.format) ==
|
||||||
VideoCore::Surface::SurfaceType::DepthStencil) {
|
VideoCore::Surface::SurfaceType::DepthStencil &&
|
||||||
return !device.IsExtShaderStencilExportSupported();
|
!device.IsExtShaderStencilExportSupported()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (dst.info.format == PixelFormat::D32_FLOAT_S8_UINT ||
|
||||||
|
src.info.format == PixelFormat::D32_FLOAT_S8_UINT) {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user