mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 10:30:13 +01:00
hk: Report the correct plane count in VkDrmFormatModifierProperties2?EXT
Fixes import of planar formats like NV12 in gtk4. Allows
`gst-launch-1.0 v4l2src ! gtk4paintablesink` to use vulkan instead of
falling back to OpenGL.
Closes: #14217
Cc: mesa-stable
Signed-off-by: Janne Grunau <j@jannau.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38200>
(cherry picked from commit 83b97379dc)
This commit is contained in:
parent
aa7575dc50
commit
094bc4eefc
2 changed files with 3 additions and 3 deletions
|
|
@ -3504,7 +3504,7 @@
|
|||
"description": "hk: Report the correct plane count in VkDrmFormatModifierProperties2?EXT",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ get_drm_format_modifier_properties_list(
|
|||
{
|
||||
*out_props = (VkDrmFormatModifierPropertiesEXT){
|
||||
.drmFormatModifier = mod,
|
||||
.drmFormatModifierPlaneCount = 1 /* no planar mods */,
|
||||
.drmFormatModifierPlaneCount = vk_format_get_plane_count(vk_format),
|
||||
.drmFormatModifierTilingFeatures = flags,
|
||||
};
|
||||
};
|
||||
|
|
@ -96,7 +96,7 @@ get_drm_format_modifier_properties_list_2(
|
|||
{
|
||||
*out_props = (VkDrmFormatModifierProperties2EXT){
|
||||
.drmFormatModifier = mod,
|
||||
.drmFormatModifierPlaneCount = 1, /* no planar mods */
|
||||
.drmFormatModifierPlaneCount = vk_format_get_plane_count(vk_format),
|
||||
.drmFormatModifierTilingFeatures = flags,
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue