allocators: drmdumb: Fix bpp value for P010
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 27 Sep 2024 13:20:37 +0000 (09:20 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 1 Oct 2024 17:32:31 +0000 (17:32 +0000)
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>

subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.c

index 1cf3034ac798a53ce099c78e8af9abbb9a3ba547..e77942675d89b3335ec4e2305ea111fecd9d5460 100644 (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: