mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-31 07:43:16 +00:00
hot-fix: exclude tiling condition from promotion of textures to depth
This commit is contained in:
parent
749fe92882
commit
047a115b3e
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ ImageInfo::ImageInfo(const AmdGpu::Image& image, bool force_depth /*= false*/) n
|
||||||
tiling_mode = image.GetTilingMode();
|
tiling_mode = image.GetTilingMode();
|
||||||
pixel_format = LiverpoolToVK::SurfaceFormat(image.GetDataFmt(), image.GetNumberFmt());
|
pixel_format = LiverpoolToVK::SurfaceFormat(image.GetDataFmt(), image.GetNumberFmt());
|
||||||
// Override format if image is forced to be a depth target
|
// Override format if image is forced to be a depth target
|
||||||
if (force_depth || tiling_mode == AmdGpu::TilingMode::Depth_MacroTiled) {
|
if (force_depth) {
|
||||||
if (pixel_format == vk::Format::eR32Sfloat || pixel_format == vk::Format::eR8Unorm) {
|
if (pixel_format == vk::Format::eR32Sfloat || pixel_format == vk::Format::eR8Unorm) {
|
||||||
pixel_format = vk::Format::eD32SfloatS8Uint;
|
pixel_format = vk::Format::eD32SfloatS8Uint;
|
||||||
} else if (pixel_format == vk::Format::eR16Unorm) {
|
} else if (pixel_format == vk::Format::eR16Unorm) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue