mesa/src/loader
Faith Ekstrand 0dfe7631a7 loader: Report DRI_PRIME errors earlier
This needs devices[] in order to print an appropriate message but we
free it right after the loop.  Instead, print the error right away and
make the error case after the free just handle jumping to err.

Fixes: ea84b85887 ("loader: add DRI_PRIME_DEBUG env var")
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36014>
(cherry picked from commit 9e1a1633c4)
2025-07-16 16:23:12 +02:00
..
loader.c loader: Report DRI_PRIME errors earlier 2025-07-16 16:23:12 +02:00
loader.h kmsro: look for graphics capable screen as renderonly device 2025-03-05 10:48:28 +00:00
loader_dri_helper.c dri: deal with ARGB1555 2025-01-21 14:33:13 +00:00
loader_dri_helper.h dri: fix __DRI_IMAGE_FORMAT* to PIPE_FORMAT* mappings 2025-07-02 16:19:32 +02:00
loader_wayland_helper.c wsi/wayland: refactor wayland dispatch 2024-05-02 19:37:26 +00:00
loader_wayland_helper.h loader/wayland: Fix missing timespec.h include 2025-02-06 10:39:25 +01:00
meson.build meson: remove dri-search-path 2024-09-19 05:06:50 +00:00
pci_id_driver_map.h loader: handle picking zink for nouveau for certain GPUs. 2024-02-21 11:16:25 +10:00