added data_format=1 and num_format=9

This commit is contained in:
raziel1000 2024-07-31 01:24:44 -06:00
parent 51c89a9958
commit ec1335911b
1 changed files with 3 additions and 0 deletions

View File

@ -546,6 +546,9 @@ vk::Format SurfaceFormat(AmdGpu::DataFormat data_format, AmdGpu::NumberFormat nu
num_format == AmdGpu::NumberFormat::Sint) { num_format == AmdGpu::NumberFormat::Sint) {
return vk::Format::eR8G8B8A8Sint; return vk::Format::eR8G8B8A8Sint;
} }
if (data_format == AmdGpu::DataFormat::Format8 && num_format == AmdGpu::NumberFormat::Srgb) {
return vk::Format::eR8Srgb;
}
UNREACHABLE_MSG("Unknown data_format={} and num_format={}", u32(data_format), u32(num_format)); UNREACHABLE_MSG("Unknown data_format={} and num_format={}", u32(data_format), u32(num_format));
} }