vk_texture_cache: Add ABGR src format check for D24S8 conversions
This commit is contained in:
parent
c22c4f5d59
commit
228a381aed
|
@ -1080,7 +1080,11 @@ void TextureCacheRuntime::ConvertImage(Framebuffer* dst, ImageView& dst_view, Im
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case PixelFormat::S8_UINT_D24_UNORM:
|
case PixelFormat::S8_UINT_D24_UNORM:
|
||||||
|
if (src_view.format == PixelFormat::A8B8G8R8_UNORM ||
|
||||||
|
src_view.format == PixelFormat::B8G8R8A8_UNORM) {
|
||||||
return blit_image_helper.ConvertABGR8ToD24S8(dst, src_view);
|
return blit_image_helper.ConvertABGR8ToD24S8(dst, src_view);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case PixelFormat::D32_FLOAT:
|
case PixelFormat::D32_FLOAT:
|
||||||
if (src_view.format == PixelFormat::R32_FLOAT) {
|
if (src_view.format == PixelFormat::R32_FLOAT) {
|
||||||
return blit_image_helper.ConvertR32ToD32(dst, src_view);
|
return blit_image_helper.ConvertR32ToD32(dst, src_view);
|
||||||
|
|
Loading…
Reference in New Issue