Hi All,
I'm trying to run OpenCL with Mesa 10.1./* Try authenticate with the X server to give us access to devices that X
* is running on. */
xcb_connection_t *xcb_conn;
const xcb_setup_t *xcb_setup;
xcb_screen_iterator_t s;
xcb_dri2_connect_cookie_t connect_cookie;
xcb_dri2_connect_reply_t *connect;
drm_magic_t magic;
xcb_dri2_authenticate_cookie_t authenticate_cookie;
xcb_dri2_authenticate_reply_t *authenticate;
xcb_conn = xcb_connect(NULL, NULL);
if(!xcb_conn)
return;
xcb_setup = xcb_get_setup(xcb_conn);
if (!xcb_setup)
goto disconnect;
s = xcb_setup_roots_iterator(xcb_setup);
connect_cookie = xcb_dri2_connect_unchecked(xcb_conn, s.data->root,
XCB_DRI2_DRIVER_TYPE_DRI);
connect = xcb_dri2_connect_reply(xcb_conn, connect_cookie, NULL);
if (!connect || connect->driver_name_length
+ connect->device_name_length == 0) {
goto disconnect;
}
I also tried to use xcb_generate_id to get a xcb_window_t.
And call xcb_dri2_connect instead of xcb_dri2_connect_unchecked.
Then send xcb_generic_error_t ** to xcb_dri2_connect_reply.
But the error is 0x0 too.
So I can't know what happened in xcb_dri2_connect_reply.
Is there any way to get the error information?
thanks
lixiang
_______________________________________________ dri-users mailing list dri-users@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-users
- Prev by Date: 3 monitor weirdness, last with bad EDID, radeon card.
- Next by Date: gma500: wrong pixel clock on LVDS (half the correct frequency)
- Previous by thread: 3 monitor weirdness, last with bad EDID, radeon card.
- Next by thread: gma500: wrong pixel clock on LVDS (half the correct frequency)
- Index(es):
![]() |