Mesa (master): vl: fix the dri winsys helper screen init

Christian König deathsimple at kemper.freedesktop.org
Fri Oct 26 07:53:21 UTC 2012


Module: Mesa
Branch: master
Commit: 59d4bc8c48836ff86052ea62f6ce24e1f2402d02
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=59d4bc8c48836ff86052ea62f6ce24e1f2402d02

Author: Christian König <deathsimple at vodafone.de>
Date:   Wed Oct 24 11:18:40 2012 +0200

vl: fix the dri winsys helper screen init

Signed-off-by: Christian König <deathsimple at vodafone.de>

---

 src/gallium/auxiliary/vl/vl_winsys_dri.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri.c b/src/gallium/auxiliary/vl/vl_winsys_dri.c
index 8e4e026..95aabac 100644
--- a/src/gallium/auxiliary/vl/vl_winsys_dri.c
+++ b/src/gallium/auxiliary/vl/vl_winsys_dri.c
@@ -333,6 +333,8 @@ vl_screen_create(Display *display, int screen)
       goto free_screen;
 
    s = xcb_setup_roots_iterator(xcb_get_setup(scrn->conn));
+   while (screen--)
+	xcb_screen_next(&s);
    connect_cookie = xcb_dri2_connect_unchecked(scrn->conn, s.data->root, XCB_DRI2_DRIVER_TYPE_DRI);
    connect = xcb_dri2_connect_reply(scrn->conn, connect_cookie, NULL);
    if (connect == NULL || connect->driver_name_length + connect->device_name_length == 0)




More information about the mesa-commit mailing list