nil,nvk: Disable modifiers for B10G11R11_UFLOAT and E5B9G9R9_UFLOAT

The CTS tests fail due to precision issues (arguably a CTS bug) but it
also doesn't make a lot of sense to advertise modifiers on them at all.

Fixes: cd428e01d7 ("nvk: Advertise VK_EXT_image_drm_format_modifier")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30861>
This commit is contained in:
Faith Ekstrand 2024-08-26 16:19:27 -05:00 committed by Marge Bot
parent 2158fe2ae2
commit b78a691ce2

View file

@ -207,6 +207,14 @@ pub fn drm_format_mods_for_format(
return;
}
// These formats don't have a corresponding fourcc format
let p_format: nil_rs_bindings::pipe_format = format.into();
if p_format == nil_rs_bindings::PIPE_FORMAT_R11G11B10_FLOAT
|| p_format == nil_rs_bindings::PIPE_FORMAT_R9G9B9E5_FLOAT
{
return;
}
let compression_type = CompressionType::None;
let sector_layout = SectorLayout::for_dev(dev);
let gob_kind_version = GOBKindVersion::for_dev(dev);