dri2: Open the fd before loading the driver.
authorEric Anholt <eric@anholt.net>
Thu, 23 Jan 2014 18:17:11 +0000 (10:17 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 27 Jan 2014 17:36:24 +0000 (09:36 -0800)
commitbe7a6976a8335a2e1a177769e96f7310ca6770d1
tree8c42f804dc8fbc12c493edb9b9dbaa1a0d4f3b5c
parent378e7ad26f11aacd02a131262646e48c362539ef
dri2: Open the fd before loading the driver.

I want to stop trusting the server for the driver name, and instead decide
on our own based on the fd, so I needed this code motion.

Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glx/dri2_glx.c