Skip to content
Commit 56e72d3f authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov
Browse files

xf86drm: introduce drm_device_has_rdev() helper



Currently we match the opened drmDevice fd with each drmDevice we
process.

Move that after all the devices are processed and folded, via the
drm_device_has_rdev(). This makes the code easier to follow and allows
us to unify the massive process loop across drmGetDevice2 and
drmGetDevices2. That in itself is coming with a later commit.

Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Tested-by: default avatarRobert Foss <robert.foss@collabora.com>
Reviewed-by: default avatarRobert Foss <robert.foss@collabora.com>
Reviewed-by: default avatarEric Engestrom <eric@engestrom.ch>
parent 7f52a0eb
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