Lines Matching full:ds
72 DisplaySurface *ds; member
264 egl_fb_read_rect(ddl->ds, &ddl->fb, x, y, w, h); in dbus_call_update_gl()
420 if (!ddl->can_share_map || !ddl->ds->share_handle) { in dbus_scanout_map()
426 ddl->ds->share_handle, in dbus_scanout_map()
443 ddl->ds->share_handle_offset, in dbus_scanout_map()
444 surface_width(ddl->ds), in dbus_scanout_map()
445 surface_height(ddl->ds), in dbus_scanout_map()
446 surface_stride(ddl->ds), in dbus_scanout_map()
447 surface_format(ddl->ds), in dbus_scanout_map()
537 if (!ddl->can_share_map || ddl->ds->share_handle == SHAREABLE_NONE) { in dbus_scanout_map()
543 if (g_unix_fd_list_append(fd_list, ddl->ds->share_handle, &err) != 0) { in dbus_scanout_map()
552 ddl->ds->share_handle_offset, in dbus_scanout_map()
553 surface_width(ddl->ds), in dbus_scanout_map()
554 surface_height(ddl->ds), in dbus_scanout_map()
555 surface_stride(ddl->ds), in dbus_scanout_map()
556 surface_format(ddl->ds), in dbus_scanout_map()
610 assert(surface_width(ddl->ds) == w); in dbus_scanout_texture()
611 assert(surface_height(ddl->ds) == h); in dbus_scanout_texture()
629 DisplaySurface *ds; in dbus_cursor_dmabuf() local
653 ds = qemu_create_displaysurface(width, height); in dbus_cursor_dmabuf()
654 egl_fb_read(ds, &cursor_fb); in dbus_cursor_dmabuf()
658 surface_data(ds), in dbus_cursor_dmabuf()
659 surface_width(ds) * surface_height(ds) * 4, in dbus_cursor_dmabuf()
662 ds); in dbus_cursor_dmabuf()
665 surface_width(ds), in dbus_cursor_dmabuf()
666 surface_height(ds), in dbus_cursor_dmabuf()
707 if (!ddl->ds || qemu_console_is_gl_blocked(ddl->dcl.con)) { in dbus_gl_refresh()
725 surface_width(ddl->ds), surface_height(ddl->ds)); in dbus_gl_refresh()
762 stride = w * DIV_ROUND_UP(PIXMAN_FORMAT_BPP(surface_format(ddl->ds)), 8); in dbus_gfx_update_sub()
763 img = pixman_image_create_bits(surface_format(ddl->ds), in dbus_gfx_update_sub()
766 pixman_image_composite(PIXMAN_OP_SRC, ddl->ds->image, NULL, img, in dbus_gfx_update_sub()
770 uint8_t *src = (uint8_t *)pixman_image_get_data(ddl->ds->image); in dbus_gfx_update_sub()
772 int bp = PIXMAN_FORMAT_BPP(surface_format(ddl->ds)) / 8; in dbus_gfx_update_sub()
777 &src[surface_stride(ddl->ds) * (hh + y) + x * bp], in dbus_gfx_update_sub()
801 G_VARIANT_TYPE("ay"), surface_data(ddl->ds), in ddl_scanout()
802 surface_stride(ddl->ds) * surface_height(ddl->ds), TRUE, in ddl_scanout()
803 (GDestroyNotify)pixman_image_unref, pixman_image_ref(ddl->ds->image)); in ddl_scanout()
808 ddl->proxy, surface_width(ddl->ds), surface_height(ddl->ds), in ddl_scanout()
809 surface_stride(ddl->ds), surface_format(ddl->ds), v_data, in ddl_scanout()
819 assert(ddl->ds); in dbus_gfx_update()
840 if (x == 0 && y == 0 && w == surface_width(ddl->ds) && h == surface_height(ddl->ds)) { in dbus_gfx_update()
855 ddl->ds = new_surface; in dbus_gl_gfx_switch()
857 if (ddl->ds) { in dbus_gl_gfx_switch()
858 int width = surface_width(ddl->ds); in dbus_gl_gfx_switch()
859 int height = surface_height(ddl->ds); in dbus_gl_gfx_switch()
862 dbus_scanout_texture(&ddl->dcl, ddl->ds->texture, false, in dbus_gl_gfx_switch()
873 ddl->ds = new_surface; in dbus_gfx_switch()