OSDN Git Service

egl/drm: Don't "fall back" to /dev/dri/card0 if the first open fails
authorAdam Jackson <ajax@redhat.com>
Thu, 24 Aug 2017 18:52:14 +0000 (14:52 -0400)
committerAdam Jackson <ajax@redhat.com>
Fri, 25 Aug 2017 20:21:43 +0000 (16:21 -0400)
commitcd8ab40cd4a047ec64f59ff078b6558b1dab44a5
treec0238f67b9360726500b4e1f22400e1f148fec56
parente8378adc01a8cbb08e057fb2b50a9e2f8d95b36f
egl/drm: Don't "fall back" to /dev/dri/card0 if the first open fails

The snprintf stuff here already constructs the right name for the device
node, and if it doesn't, you configured Mesa wrong, don't do that.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/drivers/dri2/platform_drm.c