Lines Matching refs:scrpriv

120     EphyrScrPriv *scrpriv = screen->driver;  in hostx_want_screen_geometry()  local
122 if (scrpriv && (scrpriv->win_pre_existing != None || in hostx_want_screen_geometry()
123 scrpriv->output != NULL || in hostx_want_screen_geometry()
125 *x = scrpriv->win_x; in hostx_want_screen_geometry()
126 *y = scrpriv->win_y; in hostx_want_screen_geometry()
127 *width = scrpriv->win_width; in hostx_want_screen_geometry()
128 *height = scrpriv->win_height; in hostx_want_screen_geometry()
138 EphyrScrPriv *scrpriv = screen->driver; in hostx_add_screen() local
146 scrpriv->screen = screen; in hostx_add_screen()
147 scrpriv->win_pre_existing = win_id; in hostx_add_screen()
148 scrpriv->win_explicit_position = use_geometry; in hostx_add_screen()
149 scrpriv->output = output; in hostx_add_screen()
161 EphyrScrPriv *scrpriv = screen->driver; in hostx_set_screen_number() local
163 if (scrpriv) { in hostx_set_screen_number()
164 scrpriv->mynum = number; in hostx_set_screen_number()
172 EphyrScrPriv *scrpriv = screen->driver; in hostx_set_win_title() local
174 if (!scrpriv) in hostx_set_win_title()
179 scrpriv->win, in hostx_set_win_title()
191 scrpriv->mynum, (extra_text != NULL) ? extra_text : ""); in hostx_set_win_title()
194 scrpriv->win, in hostx_set_win_title()
224 EphyrScrPriv *scrpriv = screen->driver; in hostx_want_preexisting_window() local
226 if (scrpriv && scrpriv->win_pre_existing) { in hostx_want_preexisting_window()
379 EphyrScrPriv *scrpriv = HostX.screens[index]->driver; in hostx_set_fullscreen_hint() local
382 scrpriv->win, in hostx_set_fullscreen_hint()
586 EphyrScrPriv *scrpriv = screen->driver; in hostx_init() local
588 scrpriv->win = xcb_generate_id(HostX.conn); in hostx_init()
589 scrpriv->server_depth = HostX.depth; in hostx_init()
590 scrpriv->ximg = NULL; in hostx_init()
591 scrpriv->win_x = 0; in hostx_init()
592 scrpriv->win_y = 0; in hostx_init()
594 if (scrpriv->win_pre_existing != XCB_WINDOW_NONE) { in hostx_init()
601 scrpriv->win_pre_existing); in hostx_init()
611 scrpriv->win_width = prewin_geom->width; in hostx_init()
612 scrpriv->win_height = prewin_geom->height; in hostx_init()
618 scrpriv->win, in hostx_init()
619 scrpriv->win_pre_existing, in hostx_init()
621 scrpriv->win_width, in hostx_init()
622 scrpriv->win_height, in hostx_init()
632 scrpriv->win, in hostx_init()
645 scrpriv->win_width = xscreen->width_in_pixels; in hostx_init()
646 scrpriv->win_height = xscreen->height_in_pixels; in hostx_init()
650 else if (scrpriv->output) { in hostx_init()
651 hostx_get_output_geometry(scrpriv->output, in hostx_init()
652 &scrpriv->win_x, in hostx_init()
653 &scrpriv->win_y, in hostx_init()
654 &scrpriv->win_width, in hostx_init()
655 &scrpriv->win_height); in hostx_init()
672 scrpriv->win, in hostx_init()
729 EphyrScrPriv *scrpriv = screen->driver; in hostx_init() local
732 scrpriv->win, in hostx_init()
775 EphyrScrPriv *scrpriv = screen->driver; in hostx_get_server_depth() local
777 return scrpriv ? scrpriv->server_depth : 0; in hostx_get_server_depth()
783 EphyrScrPriv *scrpriv = screen->driver; in hostx_get_bpp() local
785 if (!scrpriv) in hostx_get_bpp()
788 if (host_depth_matches_server(scrpriv)) in hostx_get_bpp()
791 return scrpriv->server_depth; /*XXX correct ?*/ in hostx_get_bpp()
798 EphyrScrPriv *scrpriv = screen->driver; in hostx_get_visual_masks() local
800 if (!scrpriv) in hostx_get_visual_masks()
803 if (host_depth_matches_server(scrpriv)) { in hostx_get_visual_masks()
808 else if (scrpriv->server_depth == 16) { in hostx_get_visual_masks()
842 EphyrScrPriv *scrpriv = screen->driver; in hostx_set_cmap_entry() local
854 scrpriv->cmap[idx] = ((r << rshift) & HostX.visual->red_mask) | in hostx_set_cmap_entry()
877 EphyrScrPriv *scrpriv = screen->driver; in hostx_screen_init() local
880 if (!scrpriv) { in hostx_screen_init()
888 if (scrpriv->ximg != NULL) { in hostx_screen_init()
894 xcb_image_destroy(scrpriv->ximg); in hostx_screen_init()
895 hostx_destroy_shm_segment(&scrpriv->shminfo, scrpriv->shmsize); in hostx_screen_init()
898 free(scrpriv->ximg->data); in hostx_screen_init()
899 scrpriv->ximg->data = NULL; in hostx_screen_init()
901 xcb_image_destroy(scrpriv->ximg); in hostx_screen_init()
906 scrpriv->ximg = xcb_image_create_native(HostX.conn, in hostx_screen_init()
915 scrpriv->shmsize = scrpriv->ximg->stride * buffer_height; in hostx_screen_init()
916 if (!hostx_create_shm_segment(&scrpriv->shminfo, in hostx_screen_init()
917 scrpriv->shmsize)) { in hostx_screen_init()
921 xcb_image_destroy(scrpriv->ximg); in hostx_screen_init()
924 EPHYR_DBG("SHM segment created %p", scrpriv->shminfo.shmaddr); in hostx_screen_init()
925 scrpriv->ximg->data = scrpriv->shminfo.shmaddr; in hostx_screen_init()
932 width, buffer_height, scrpriv); in hostx_screen_init()
933 scrpriv->ximg = xcb_image_create_native(HostX.conn, in hostx_screen_init()
944 if (host_depth_matches_server(scrpriv)) in hostx_screen_init()
945 scrpriv->ximg->byte_order = IMAGE_BYTE_ORDER; in hostx_screen_init()
947 scrpriv->ximg->data = in hostx_screen_init()
948 xallocarray(scrpriv->ximg->stride, buffer_height); in hostx_screen_init()
955 xcb_configure_window(HostX.conn, scrpriv->win, mask, values); in hostx_screen_init()
958 if (scrpriv->win_pre_existing == None && !EphyrWantResize) { in hostx_screen_init()
965 xcb_icccm_set_wm_normal_hints(HostX.conn, scrpriv->win, in hostx_screen_init()
972 xcb_map_window(HostX.conn, scrpriv->win); in hostx_screen_init()
979 if (scrpriv->win_explicit_position) in hostx_screen_init()
983 xcb_configure_window(HostX.conn, scrpriv->win, mask, values); in hostx_screen_init()
989 scrpriv->win_width = width; in hostx_screen_init()
990 scrpriv->win_height = height; in hostx_screen_init()
991 scrpriv->win_x = x; in hostx_screen_init()
992 scrpriv->win_y = y; in hostx_screen_init()
997 ephyr_glamor_set_window_size(scrpriv->glamor, in hostx_screen_init()
998 scrpriv->win_width, scrpriv->win_height); in hostx_screen_init()
1002 if (host_depth_matches_server(scrpriv)) { in hostx_screen_init()
1003 *bytes_per_line = scrpriv->ximg->stride; in hostx_screen_init()
1004 *bits_per_pixel = scrpriv->ximg->bpp; in hostx_screen_init()
1007 return scrpriv->ximg->data; in hostx_screen_init()
1010 int bytes_per_pixel = scrpriv->server_depth >> 3; in hostx_screen_init()
1014 *bits_per_pixel = scrpriv->server_depth; in hostx_screen_init()
1017 scrpriv->fb_data = xallocarray (stride, buffer_height); in hostx_screen_init()
1018 return scrpriv->fb_data; in hostx_screen_init()
1029 EphyrScrPriv *scrpriv = screen->driver; in hostx_paint_rect() local
1031 EPHYR_DBG("painting in screen %d\n", scrpriv->mynum); in hostx_paint_rect()
1044 ephyr_glamor_damage_redisplay(scrpriv->glamor, &region); in hostx_paint_rect()
1071 if (!host_depth_matches_server(scrpriv)) { in hostx_paint_rect()
1072 int x, y, idx, bytes_per_pixel = (scrpriv->server_depth >> 3); in hostx_paint_rect()
1073 int stride = (scrpriv->win_width * bytes_per_pixel + 0x3) & ~0x3; in hostx_paint_rect()
1077 EPHYR_DBG("Unmatched host depth scrpriv=%p\n", scrpriv); in hostx_paint_rect()
1082 switch (scrpriv->server_depth) { in hostx_paint_rect()
1086 *(unsigned short *) (scrpriv->fb_data + idx); in hostx_paint_rect()
1094 xcb_image_put_pixel(scrpriv->ximg, x, y, host_pixel); in hostx_paint_rect()
1100 *(unsigned char *) (scrpriv->fb_data + idx); in hostx_paint_rect()
1101 xcb_image_put_pixel(scrpriv->ximg, x, y, in hostx_paint_rect()
1102 scrpriv->cmap[pixel]); in hostx_paint_rect()
1112 xcb_image_shm_put(HostX.conn, scrpriv->win, in hostx_paint_rect()
1113 HostX.gc, scrpriv->ximg, in hostx_paint_rect()
1114 scrpriv->shminfo, in hostx_paint_rect()
1118 xcb_image_t *subimg = xcb_image_subimage(scrpriv->ximg, sx, sy, in hostx_paint_rect()
1121 xcb_image_put(HostX.conn, scrpriv->win, HostX.gc, img, dx, dy, 0); in hostx_paint_rect()
1134 EphyrScrPriv *scrpriv = screen->driver; in hostx_paint_debug_rect() local
1148 cookie = xcb_poly_fill_rectangle_checked(HostX.conn, scrpriv->win, in hostx_paint_debug_rect()
1341 EphyrScrPriv *scrpriv; in hostx_get_window() local
1346 scrpriv = HostX.screens[a_screen_number]->driver; in hostx_get_window()
1347 return scrpriv->win; in hostx_get_window()
1440 EphyrScrPriv *scrpriv = HostX.screens[a_screen_number]->driver; in hostx_create_window() local
1478 if (scrpriv->peer_win == XCB_NONE) { in hostx_create_window()
1479 scrpriv->peer_win = win; in hostx_create_window()
1571 EphyrScrPriv *scrpriv = kd_screen->driver; in ephyr_glamor_init() local
1573 scrpriv->glamor = ephyr_glamor_glx_screen_init(scrpriv->win); in ephyr_glamor_init()
1574 ephyr_glamor_set_window_size(scrpriv->glamor, in ephyr_glamor_init()
1575 scrpriv->win_width, scrpriv->win_height); in ephyr_glamor_init()
1602 EphyrScrPriv *scrpriv = kd_screen->driver; in ephyr_glamor_create_screen_resources() local
1640 ephyr_glamor_set_texture(scrpriv->glamor, tex); in ephyr_glamor_create_screen_resources()
1660 EphyrScrPriv *scrpriv = kd_screen->driver; in ephyr_glamor_fini() local
1663 ephyr_glamor_glx_screen_fini(scrpriv->glamor); in ephyr_glamor_fini()
1664 scrpriv->glamor = NULL; in ephyr_glamor_fini()