Lines Matching defs:conn

85 wsi_dri3_open(xcb_connection_t *conn,
93 cookie = xcb_dri3_open(conn,
97 reply = xcb_dri3_open_reply(conn, cookie, NULL);
107 fd = xcb_dri3_open_reply_fds(conn, reply)[0];
123 xcb_connection_t *conn)
126 xcb_setup_roots_iterator(xcb_get_setup(conn));
132 int dri3_fd = wsi_dri3_open(conn, screen->root, None);
144 wsi_x11_detect_xwayland(xcb_connection_t *conn)
147 xcb_randr_query_version_unchecked(conn, 1, 3);
149 xcb_randr_query_version_reply(conn, ver_cookie, NULL);
157 const xcb_setup_t *setup = xcb_get_setup(conn);
161 xcb_randr_get_screen_resources_current_unchecked(conn, iter.data->root);
163 xcb_randr_get_screen_resources_current_reply(conn, gsr_cookie, NULL);
173 xcb_randr_get_output_info(conn, randr_outputs[0], gsr_reply->config_timestamp);
177 xcb_randr_get_output_info_reply(conn, goi_cookie, NULL);
191 xcb_connection_t *conn)
210 sync_cookie = xcb_query_extension(conn, 4, "SYNC");
211 dri3_cookie = xcb_query_extension(conn, 4, "DRI3");
212 pres_cookie = xcb_query_extension(conn, 7, "Present");
213 randr_cookie = xcb_query_extension(conn, 5, "RANDR");
214 xfixes_cookie = xcb_query_extension(conn, 6, "XFIXES");
217 shm_cookie = xcb_query_extension(conn, 7, "MIT-SHM");
228 amd_cookie = xcb_query_extension(conn, 11, "ATIFGLRXDRI");
229 nv_cookie = xcb_query_extension(conn, 10, "NV-CONTROL");
231 xcb_discard_reply(conn, sync_cookie.sequence);
232 dri3_reply = xcb_query_extension_reply(conn, dri3_cookie, NULL);
233 pres_reply = xcb_query_extension_reply(conn, pres_cookie, NULL);
234 randr_reply = xcb_query_extension_reply(conn, randr_cookie, NULL);
235 amd_reply = xcb_query_extension_reply(conn, amd_cookie, NULL);
236 nv_reply = xcb_query_extension_reply(conn, nv_cookie, NULL);
237 xfixes_reply = xcb_query_extension_reply(conn, xfixes_cookie, NULL);
239 shm_reply = xcb_query_extension_reply(conn, shm_cookie, NULL);
259 ver_cookie = xcb_dri3_query_version(conn, 1, 2);
260 ver_reply = xcb_dri3_query_version_reply(conn, ver_cookie, NULL);
273 ver_cookie = xcb_present_query_version(conn, 1, 2);
274 ver_reply = xcb_present_query_version_reply(conn, ver_cookie, NULL);
286 ver_cookie = xcb_xfixes_query_version(conn, 6, 0);
287 ver_reply = xcb_xfixes_query_version_reply(conn, ver_cookie, NULL);
293 wsi_conn->is_xwayland = wsi_x11_detect_xwayland(conn);
311 ver_cookie = xcb_shm_query_version(conn);
312 ver_reply = xcb_shm_query_version_reply(conn, ver_cookie, NULL);
320 cookie = xcb_shm_detach_checked(conn, 0);
321 if ((error = xcb_request_check(conn, cookie))) {
343 struct wsi_x11_connection *conn)
345 vk_free(&wsi_dev->instance_alloc, conn);
370 xcb_connection_t *conn)
377 struct hash_entry *entry = _mesa_hash_table_search(wsi->connections, conn);
385 wsi_x11_connection_create(wsi_dev, conn);
391 entry = _mesa_hash_table_search(wsi->connections, conn);
396 entry = _mesa_hash_table_insert(wsi->connections, conn, wsi_conn);
424 get_screen_for_root(xcb_connection_t *conn, xcb_window_t root)
427 xcb_setup_roots_iterator(xcb_get_setup(conn));
461 connection_get_visualtype(xcb_connection_t *conn, xcb_visualid_t visual_id)
464 xcb_setup_roots_iterator(xcb_get_setup(conn));
480 get_visualtype_for_window(xcb_connection_t *conn, xcb_window_t window,
488 tree_cookie = xcb_query_tree(conn, window);
489 attrib_cookie = xcb_get_window_attributes(conn, window);
491 tree = xcb_query_tree_reply(conn, tree_cookie, NULL);
492 attrib = xcb_get_window_attributes_reply(conn, attrib_cookie, NULL);
504 xcb_screen_t *screen = get_screen_for_root(conn, root);
594 xcb_connection_t *conn = x11_surface_get_connection(icd_surface);
598 wsi_x11_get_connection(wsi_device, conn);
609 if (!visual_supported(get_visualtype_for_window(conn, window, NULL))) {
650 xcb_connection_t *conn = x11_surface_get_connection(icd_surface);
657 geom_cookie = xcb_get_geometry(conn, window);
663 get_visualtype_for_window(conn, window, &visual_depth);
668 geom = xcb_get_geometry_reply(conn, geom_cookie, &err);
742 xcb_connection_t *conn = x11_surface_get_connection(surface);
744 xcb_visualtype_t *visual = get_visualtype_for_window(conn, window, NULL);
840 xcb_connection_t *conn = x11_surface_get_connection(icd_surface);
846 xcb_get_geometry_cookie_t geom_cookie = xcb_get_geometry(conn, window);
848 xcb_get_geometry_reply(conn, geom_cookie, &err);
933 xcb_connection_t * conn;
1131 xcb_flush(chain->conn);
1134 event = xcb_wait_for_special_event(chain->conn, chain->special_event);
1138 event = xcb_poll_for_special_event(chain->conn, chain->special_event);
1146 pfds.fd = xcb_get_file_descriptor(chain->conn);
1226 wsi_x11_get_connection((struct wsi_device*)chain->base.wsi, chain->conn);
1246 while ((event = xcb_poll_for_special_event(chain->conn, chain->special_event))) {
1265 xcb_present_pixmap_checked(chain->conn,
1280 xcb_generic_error_t *error = xcb_request_check(chain->conn, cookie);
1303 uint64_t max_req_len = xcb_get_maximum_request_length(chain->conn);
1307 cookie = xcb_put_image(chain->conn, XCB_IMAGE_FORMAT_Z_PIXMAP,
1315 xcb_discard_reply(chain->conn, cookie.sequence);
1322 cookie = xcb_put_image(chain->conn, XCB_IMAGE_FORMAT_Z_PIXMAP,
1330 xcb_discard_reply(chain->conn, cookie.sequence);
1336 xcb_flush(chain->conn);
1377 xcb_get_geometry_cookie_t geom_cookie = xcb_get_geometry(chain->conn, chain->window);
1378 xcb_get_geometry_reply_t *geom = xcb_get_geometry_reply(chain->conn, geom_cookie, &err);
1436 xcb_xfixes_set_region(chain->conn, update_area, damage->rectangleCount, rects);
1511 wsi_x11_get_connection((struct wsi_device*)chain->base.wsi, chain->conn);
1591 xcb_wait_for_special_event(chain->conn, chain->special_event);
1654 image->update_region = xcb_generate_id(chain->conn);
1655 xcb_xfixes_create_region(chain->conn, image->update_region, 0, NULL);
1663 image->shmseg = xcb_generate_id(chain->conn);
1665 xcb_shm_attach(chain->conn,
1669 image->pixmap = xcb_generate_id(chain->conn);
1670 cookie = xcb_shm_create_pixmap_checked(chain->conn,
1677 xcb_discard_reply(chain->conn, cookie.sequence);
1680 image->pixmap = xcb_generate_id(chain->conn);
1700 xcb_dri3_pixmap_from_buffers_checked(chain->conn,
1729 xcb_dri3_pixmap_from_buffer_checked(chain->conn,
1739 xcb_discard_reply(chain->conn, cookie.sequence);
1750 image->sync_fence = xcb_generate_id(chain->conn);
1751 xcb_dri3_fence_from_fd(chain->conn,
1766 cookie = xcb_free_pixmap(chain->conn, image->pixmap);
1767 xcb_discard_reply(chain->conn, cookie.sequence);
1782 cookie = xcb_sync_destroy_fence(chain->conn, image->sync_fence);
1783 xcb_discard_reply(chain->conn, cookie.sequence);
1786 cookie = xcb_free_pixmap(chain->conn, image->pixmap);
1787 xcb_discard_reply(chain->conn, cookie.sequence);
1789 cookie = xcb_xfixes_destroy_region(chain->conn, image->update_region);
1790 xcb_discard_reply(chain->conn, cookie.sequence);
1802 xcb_connection_t *conn, xcb_window_t window,
1815 xcb_dri3_get_supported_modifiers(conn, window, depth, bpp);
1817 xcb_dri3_get_supported_modifiers_reply(conn, mod_cookie, &error);
1899 xcb_unregister_for_special_event(chain->conn, chain->special_event);
1900 cookie = xcb_present_select_input_checked(chain->conn, chain->event_id,
1903 xcb_discard_reply(chain->conn, cookie.sequence);
1913 wsi_x11_set_adaptive_sync_property(xcb_connection_t *conn,
1922 cookie = xcb_intern_atom(conn, 0, strlen(name), name);
1923 reply = xcb_intern_atom_reply(conn, cookie, NULL);
1928 check = xcb_change_property_checked(conn, XCB_PROP_MODE_REPLACE,
1932 check = xcb_delete_property_checked(conn, drawable, reply->atom);
1934 xcb_discard_reply(conn, check.sequence);
1962 xcb_connection_t *conn = x11_surface_get_connection(icd_surface);
1964 wsi_x11_get_connection(wsi_device, conn);
1988 xcb_get_geometry_reply(conn, xcb_get_geometry(conn, window), NULL);
2008 if (!wsi_x11_check_dri3_compatible(wsi_device, conn))
2022 chain->conn = conn;
2068 chain->event_id = xcb_generate_id(chain->conn);
2069 xcb_present_select_input(chain->conn, chain->event_id, chain->window,
2078 xcb_register_for_special_xge(chain->conn, &xcb_present_id,
2082 chain->gc = xcb_generate_id(chain->conn);
2089 cookie = xcb_create_gc(chain->conn,
2094 xcb_discard_reply(chain->conn, cookie.sequence);
2100 wsi_x11_get_dri3_modifiers(wsi_conn, conn, window, chain->depth, 32,
2192 wsi_x11_set_adaptive_sync_property(conn, window,
2210 xcb_unregister_for_special_event(chain->conn, chain->special_event);