allocators: drmdumb: Fix bpp value for P010

P010 uses 16 bits per pixel, with least significant being padding. This
code worked with Intel display driver since they roundup that value, but
does not work with the generic DRM helpers which also support NV15,
which does not have any padding.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7580>
This commit is contained in:
Nicolas Dufresne 2024-09-27 09:20:37 -04:00 committed by GStreamer Marge Bot
parent 90728a1166
commit f42ce6ef35

View file

@ -225,7 +225,7 @@ gst_drm_bpp_from_drm (guint32 drm_fourcc)
bpp = 8; bpp = 8;
break; break;
case DRM_FORMAT_P010: case DRM_FORMAT_P010:
bpp = 10; bpp = 16;
break; break;
case DRM_FORMAT_UYVY: case DRM_FORMAT_UYVY:
case DRM_FORMAT_YUYV: case DRM_FORMAT_YUYV: