mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Set format to eD32Sfloat for the dummy 1x1 images
This commit is contained in:
parent
1f1f8d1037
commit
a3bae94f1e
@ -134,6 +134,8 @@ ImageInfo::ImageInfo(const AmdGpu::Image& image, const Shader::ImageResource& de
|
||||
"PromoteFormatToDepth failed, info dump: format: {}, size: {}x{}, data_format: {}",
|
||||
vk::to_string(pixel_format), image.width + 1, image.height + 1,
|
||||
AmdGpu::NameOf(image.GetDataFmt()));
|
||||
} else if (image.width == 0 && image.height == 0) {
|
||||
pixel_format = vk::Format::eD32Sfloat;
|
||||
}
|
||||
type = ConvertImageType(image.GetType());
|
||||
props.is_tiled = image.IsTiled();
|
||||
|
@ -44,6 +44,8 @@ ImageViewInfo::ImageViewInfo(const AmdGpu::Image& image, const Shader::ImageReso
|
||||
format != vk::Format::eUndefined,
|
||||
"PromoteFormatToDepth failed, info dump: format: {}, size: {}x{}, data_format: {}",
|
||||
vk::to_string(format), image.width, image.height, AmdGpu::NameOf(image.GetDataFmt()));
|
||||
} else if (image.width == 0 && image.height == 0) {
|
||||
format = vk::Format::eD32Sfloat;
|
||||
}
|
||||
|
||||
range.base.level = image.base_level;
|
||||
|
Loading…
Reference in New Issue
Block a user