mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
nil/modifiers: Clarify drm_format_mods_for_format rejecting modifiers for unsupported color formats
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
Tested-by: Mary Guillemard <mary@mary.zone>
Backport-to: 26.1
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40473>
(cherry picked from commit 7f5767a2f2)
This commit is contained in:
parent
e833e1ca68
commit
51b9a92966
2 changed files with 2 additions and 1 deletions
|
|
@ -2214,7 +2214,7 @@
|
|||
"description": "nil/modifiers: Clarify drm_format_mods_for_format rejecting modifiers for unsupported color formats",
|
||||
"nominated": true,
|
||||
"nomination_type": 4,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -268,6 +268,7 @@ pub fn drm_format_mods_for_format(
|
|||
return;
|
||||
}
|
||||
|
||||
// This rejects unsupported color formats like YCbCr and any others
|
||||
if !format.supports_color_targets(dev) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue