Files
hammer/recipes/incoming/armv7-exynos4.patch
T
sergio 5126a8b679 Etapa G: devuelve el stack gráfico Mesa a recipes/incoming/ (es de otro agente, tawasuyu)
Revierte el parqueo de 370e7b7: mesa/wayland/wayland-protocols/libdrm/seatd/samurai/meson +
patches son trabajo en curso de otro agente para el escritorio tawasuyu (commit 00339b6), no
cruft. samurai queda en su versión desarrollada (clon C de ninja, zig 0.13.0). syncthing sigue
diferido (es de go-12, build especial).
2026-06-27 00:33:22 -04:00

35 lines
1.5 KiB
Diff

diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
index b97c526aeddfd94b28e322c2a7a8064d766c8e23..a0d551fb51e080f3ae487bdabdfa4c34b00fbbad 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
@@ -150,6 +150,12 @@ pipe_loader_drm_probe_fd_nodup(struct pipe_loader_device **dev, int fd, bool zin
ddev->base.driver_name = strdup("radeonsi");
}
+ /* powervr has no Gallium driver and relies on Zink */
+ if (strcmp(ddev->base.driver_name, "powervr") == 0) {
+ FREE(ddev->base.driver_name);
+ ddev->base.driver_name = strdup("zink");
+ }
+
if (strcmp(ddev->base.driver_name, "virtio_gpu") == 0) {
struct virgl_renderer_capset_drm caps;
if (get_nctx_caps(fd, &caps) == 0) {
@@ -172,14 +178,10 @@ pipe_loader_drm_probe_fd_nodup(struct pipe_loader_device **dev, int fd, bool zin
if (strcmp(ddev->base.driver_name, "vgem") == 0)
goto fail;
- /* kmsro supports lots of drivers, try as a fallback for primary nodes */
- if (!ddev->dd && !zink && drmGetNodeTypeFromFd(fd) == DRM_NODE_PRIMARY)
+ /* kmsro supports lots of drivers, try as a fallback */
+ if (!ddev->dd && !zink)
ddev->dd = get_driver_descriptor("kmsro");
- /* Try zink for unknown render nodes */
- if (!ddev->dd && drmGetNodeTypeFromFd(fd) == DRM_NODE_RENDER)
- ddev->dd = get_driver_descriptor("zink");
-
if (!ddev->dd)
goto fail;