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/7596>
This commit is contained in:
Nicolas Dufresne 2024-09-27 09:20:37 -04:00 committed by GStreamer Marge Bot
parent 1250f6fc7e
commit a0da8c6b53

View file

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