egl: fix zink init
* close(fd) requires also resetting the fd=-1 or else boom * checking just driver_name is broken because loader_get_driver_for_fd() uses MESA_LOADER_DRIVER_OVERRIDE, so there's no way to differentiate an inferred load Fixes: b907eb47 ("egl: don't bind zink under dri2/3") Acked-by:Dave Airlie <airlied@redhat.com> Part-of: <mesa/mesa!30556> (cherry picked from commit 1a579552)
- .pick_status.json 1 addition, 1 deletion.pick_status.json
- src/egl/drivers/dri2/platform_x11.c 2 additions, 2 deletionssrc/egl/drivers/dri2/platform_x11.c
- src/egl/drivers/dri2/platform_x11_dri3.c 4 additions, 3 deletionssrc/egl/drivers/dri2/platform_x11_dri3.c
- src/egl/drivers/dri2/platform_x11_dri3.h 1 addition, 1 deletionsrc/egl/drivers/dri2/platform_x11_dri3.h