Skip to content
Commit 3c20893d authored by Qiang Yu's avatar Qiang Yu Committed by Emil Velikov
Browse files

drm: drmGetDevice return correct device on multi GPU setups



Currently drmGetDevice always returns the first device it finds under
/dev/dri/.

Move the target device to the start of the list during iteration. This
way during deduplication it'll preserve its place and will be returned
to the user.

v2: Keep the memory leak separate.
v3: Move the drmFoldDuplicatedDevices description

Signed-off-by: default avatarQiang Yu <Qiang.Yu@amd.com>
[Emil Velikov: move drmFoldDuplicatedDevices description, add
changelog, reword commit message]
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
parent 5d830819
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment