mesa/src/broadcom
Maíra Canal c420a3495b v3dv: don't overwrite the primary fd if it's already set
If a valid primary file descriptor is already set (e.g. from vc4),
don't overwrite it with -1.

This prevents losing a valid primary fd and resolves issues arising
when vc4 is the first node returned by `drmGetDevices2()` and v3d is
the second.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12777
Fixes: 188f1c6cbe ("v3dv: rewrite device identification")
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33958>
(cherry picked from commit 7775c79035)
2025-03-15 09:49:03 +01:00
..
ci ci: Uprev VKCTS to 1.4.1.1 2025-01-28 15:01:00 +00:00
cle build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
clif broadcom: only support v42 and v71 2023-11-02 11:59:08 +01:00
common v3d: Move v3d_X(..) to src/broadcom/common 2024-12-02 14:13:24 +00:00
compiler nir/from_ssa: only consider divergence if requested 2025-01-23 01:31:23 +00:00
drm-shim build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
ds broadcom: Add perfetto data source 2024-12-13 12:29:11 +00:00
perfcntrs broadcom: Add perfcount library 2024-12-02 14:13:24 +00:00
qpu broadcom: add missing opcodes for fmov on mul alu for V3D 7.x 2024-10-03 09:02:07 +00:00
simulator broadcom/simulator: use string copy instead of memcpy 2025-02-21 17:05:49 +01:00
vulkan v3dv: don't overwrite the primary fd if it's already set 2025-03-15 09:49:03 +01:00
.editorconfig
meson.build broadcom: Add perfetto data source 2024-12-13 12:29:11 +00:00