pipe-loader: simplify pipe_loader_drm_probe
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 30 Jun 2015 14:53:27 +0000 (15:53 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 13 Jul 2015 18:56:39 +0000 (19:56 +0100)
commita27ec5dc460b91dc44675f48cddbbb2631ee824f
tree8d5a7149b7b5dcccd394cd184b0f894d083f666e
parent69a1b9959e59653da262185c4e2cf57d24939b19
pipe-loader: simplify pipe_loader_drm_probe

Do not iterate and (attempt to) open the render device, if we're over
the requested number of devices.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c