Set format to eD32Sfloat for the dummy 1x1 images

This commit is contained in:
kalaposfos13 2025-04-22 13:15:34 +02:00
parent 1f1f8d1037
commit a3bae94f1e
2 changed files with 4 additions and 0 deletions

View File

@ -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();

View File

@ -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;