Re: [PATCH libdrm 02/10] xf86drm: introduce drm_device_has_rdev() helper

2018-06-28 Thread Robert Foss
Feel free to add my r-b to this patch. On 2018-06-25 19:36, Emil Velikov wrote: From: Emil Velikov 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

[PATCH libdrm 02/10] xf86drm: introduce drm_device_has_rdev() helper

2018-06-25 Thread Emil Velikov
From: Emil Velikov 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 drm