Files
pmaports-rtwo/temp/libcamera/0010-egl-Log-the-GL-driver.patch
T
Robert Mader 093a6b017b temp/libcamera: update downstream patch to merged version
Replace the dmabuf import patch with the two series that it grow into
during upstreaming, shipping in the next libcamera release. This will:
1. Improve performance for all devices using the GPU-ISP, including
   those not able to use dmabuf import.
2. Simplify debugging.
3. Ensure the patches get enough testing before the upstream release.

While on it backport some additional patches:
1. A follow-up patch adding the last required step to allow dmabuf import
   for input buffers to work in almost all cases *if* the V4L2 driver
   handles custom bytesperline requests for bayer formats.
2. A small logging fix
3. A fix for bad bottom lines of pixels seen on some devices. This is
   the only patch with visual impact - and a quite desirable one.
4. A patch to log the used driver for easier debugging.

This leaves us with only two downstream patches, both specific to the
PinePhone (OG).

Finally, add a "py3-$pkgname-pyc:pyc" subpackage in order to stay in
sync with the upstream package.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8650>
2026-06-20 01:41:18 +00:00

38 lines
1.3 KiB
Diff

From 7faa71ddfaca43b76b25a0a34b255999b44bfe40 Mon Sep 17 00:00:00 2001
From: Robert Mader <robert.mader@collabora.com>
Date: Tue, 16 Jun 2026 13:20:21 +0200
Subject: [PATCH 10/13] egl: Log the GL-driver
To make it easier to differentiate various drivers. Some examples from running on
a FairPhone5:
INFO eGL egl.cpp:362 EGL: GL_RENDERER: FD643
INFO eGL egl.cpp:362 EGL: GL_RENDERER: llvmpipe (LLVM 22.1.3, 128 bits)
INFO eGL egl.cpp:362 EGL: GL_RENDERER: zink Vulkan 1.3(Turnip Adreno (TM) 643 (MESA_TURNIP))
Signed-off-by: Robert Mader <robert.mader@collabora.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Tested-by: Jai Luthra <jai.luthra@ideasonboard.com>
Reviewed-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
(cherry picked from commit 51dbd82e5e008d65bce96821d88ed2f6ea6c8e67)
---
src/libcamera/egl.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libcamera/egl.cpp b/src/libcamera/egl.cpp
index 7689d7983..9318a1b43 100644
--- a/src/libcamera/egl.cpp
+++ b/src/libcamera/egl.cpp
@@ -360,6 +360,7 @@ int eGL::initEGLContext()
makeCurrent();
+ LOG(eGL, Info) << "EGL: GL_RENDERER: " << glGetString(GL_RENDERER);
LOG(eGL, Info) << "EGL: GL_VERSION: " << glGetString(GL_VERSION);
return 0;
--
2.54.0