mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 14:00:16 +01:00
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:
parent
2158fe2ae2
commit
b78a691ce2
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue