From c14cc70a6a435e7851f619a06aedc6e0a9560ad4 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 8 Oct 2023 16:52:54 -0500 Subject: [PATCH] Also check for V3D compatible IDs --- app/streaming/video/ffmpeg-renderers/drm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/streaming/video/ffmpeg-renderers/drm.cpp b/app/streaming/video/ffmpeg-renderers/drm.cpp index 68f5b17c..048a7813 100644 --- a/app/streaming/video/ffmpeg-renderers/drm.cpp +++ b/app/streaming/video/ffmpeg-renderers/drm.cpp @@ -1215,7 +1215,7 @@ bool DrmRenderer::canExportEGL() { // much less than that if you decide to do something crazy like stream // in full-screen. It's nice that it at least works now on Bullseye, but // it's so slow that we actually wish it didn't. - if (!strcmp(m_Version->name, "vc4") && qgetenv("RPI_ALLOW_EGL_RENDER") != "1") { + if ((strcmp(m_Version->name, "vc4") == 0 || strcmp(m_Version->name, "v3d") == 0) && qgetenv("RPI_ALLOW_EGL_RENDER") != "1") { drmDevicePtr device; bool matchedBadDevice = false; @@ -1223,7 +1223,7 @@ bool DrmRenderer::canExportEGL() { if (device->bustype == DRM_BUS_PLATFORM) { for (int i = 0; device->deviceinfo.platform->compatible[i]; i++) { QString compatibleId(device->deviceinfo.platform->compatible[i]); - if (compatibleId == "brcm,bcm2835-vc4" || compatibleId == "brcm,bcm2711-vc5") { + if (compatibleId == "brcm,bcm2835-vc4" || compatibleId == "brcm,bcm2711-vc5" || compatibleId == "brcm,2711-v3d") { SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, "Disabling EGL rendering due to low performance on %s", device->deviceinfo.platform->compatible[i]);