mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02: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>
(cherry picked from commit 83b97379dc)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38268>
This commit is contained in:
parent
3dab73159b
commit
90b6c3a8ac
2 changed files with 3 additions and 3 deletions
|
|
@ -454,7 +454,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