mesa/src
Leandro Ribeiro 88c03ddd34 egl/drm: get compatible render-only device fd for kms-only device
Things have been working by accident for split display/render SoCs when
using the GBM platform.

The device fd given to the GBM platform may be associated with a
KMS-only device, so _eglFindDevice() should find nothing (because the
global EGLDevice list only has render-capable devices). The only thing
making it work is that we don't error out when we go through the
EGLDevice list and can't find the device we are looking for. We simply
return the last EGLDevice from the list.

This patch fixes that. Now we look for a compatible render-only device
for the KMS-only in the GBM platform.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24825>
2023-10-17 20:31:13 +00:00
..
amd ac/gpu_info: don't allow register shadowing with SR-IOV due to bad performance 2023-10-17 00:31:07 +00:00
android_stub
asahi nir: Use getters for nir_src::parent_* 2023-10-10 04:58:05 -04:00
broadcom broadcom/qpu: Remove duplicate variable opcode 2023-10-17 12:31:33 +00:00
c11 util/meson: Getting mesa util core to be self contained 2023-08-02 03:41:24 +00:00
compiler nir/algebraic: use only signed_zero_preserve_* for addition by 0 patterns, etc. 2023-10-17 17:27:12 +00:00
drm-shim drm-shim: Avoid assertion fail if someone does close(-1). 2023-06-01 01:50:41 +00:00
egl egl/drm: get compatible render-only device fd for kms-only device 2023-10-17 20:31:13 +00:00
etnaviv ci/etnaviv: move failure to flake 2023-10-13 15:41:20 +00:00
freedreno u_trace: generate tracepoint index parameter in perfetto callbacks 2023-10-17 11:19:13 +00:00
gallium kmsro: try to use only compatible render-capable devices 2023-10-17 20:31:13 +00:00
gbm gbm: delete some zink handling 2023-10-09 18:43:09 +00:00
getopt
glx glx: XFree visual info 2023-09-28 12:17:49 +00:00
gtest gtest: backport ansi color fix 2023-08-18 21:33:14 +00:00
imagination pvr: Use common physical device properties 2023-10-13 12:21:18 +00:00
imgui
intel anv: set ComputeMode.PixelAsyncComputeThreadLimit = 4 2023-10-17 18:09:29 +00:00
loader loader: add loader_is_device_render_capable() 2023-10-17 20:31:13 +00:00
mapi mesa: enable NV_texture_barrier in GLES2+ (again) 2023-10-15 10:33:47 +00:00
mesa mesa: enable NV_texture_barrier in GLES2+ (again) 2023-10-15 10:33:47 +00:00
microsoft nir: Use getters for nir_src::parent_* 2023-10-10 04:58:05 -04:00
nouveau nvk: Implement VK_EXT_depth_bias_control 2023-10-17 18:35:03 +00:00
panfrost ci/traces: keep images for every job except the performance testing 2023-10-10 12:46:51 +00:00
tool pps-producer: add ability to select device with DRI_PRIME 2023-09-07 10:44:51 +00:00
util u_trace: generate tracepoint name array in perfetto header 2023-10-17 11:19:13 +00:00
virtio venus: properly expose KHR_external_fence/sempahore_fd 2023-10-17 20:12:07 +00:00
vulkan vulkan/wsi: Allow for larger linear images 2023-10-16 13:02:14 +00:00
.clang-format nir: Add nir_foreach_block_in_cf_node_reverse 2023-09-22 10:05:58 +00:00
meson.build nvk: add vulkan skeleton 2023-08-04 21:31:52 +00:00