Lines Matching defs:qxl

27 #include "qxl.h"
47 make_drawable (qxl_screen_t *qxl, qxl_surface_t *surf, uint8_t type,
55 draw_bo = qxl->bo_funcs->cmd_alloc (qxl, sizeof *drawable, "drawable command");
57 drawable = qxl->bo_funcs->bo_map(draw_bo);
64 qxl->bo_funcs->bo_output_surf_reloc(qxl, offsetof(struct QXLDrawable, surface_id), draw_bo, surf);
88 if (!qxl->kms_enabled)
89 drawable->mm_time = qxl->rom->mm_clock;
93 qxl->bo_funcs->bo_unmap(draw_bo);
98 push_drawable (qxl_screen_t *qxl, struct qxl_bo *drawable_bo)
100 qxl->bo_funcs->write_command (qxl, QXL_CMD_DRAW, drawable_bo);
104 submit_fill (qxl_screen_t *qxl, qxl_surface_t *surf,
110 drawable_bo = make_drawable (qxl, surf, QXL_DRAW_FILL, rect);
112 drawable = qxl->bo_funcs->bo_map(drawable_bo);
121 qxl->bo_funcs->bo_unmap(drawable_bo);
123 push_drawable (qxl, drawable_bo);
151 surface->qxl->bo_funcs->update_area(surface, x1, y1, x2, y2);
231 qxl_screen_t *qxl = surface->qxl;
240 drawable_bo = make_drawable (qxl, surface, QXL_DRAW_COPY, &rect);
241 drawable = qxl->bo_funcs->bo_map(drawable_bo);
251 qxl->bo_funcs->bo_unmap(drawable_bo);
257 qxl, (const uint8_t *)data, x1, y1, x2 - x1, y2 - y1, stride,
259 qxl->bo_funcs->bo_output_bo_reloc(qxl, offsetof(QXLDrawable, u.copy.src_bitmap),
261 push_drawable (qxl, drawable_bo);
263 qxl->bo_funcs->bo_decref(qxl, image_bo);
292 upload_one_primary_region(qxl_screen_t *qxl, PixmapPtr pixmap, BoxPtr b)
301 if (b->x1 >= qxl->virtual_x || b->y1 >= qxl->virtual_y)
305 rect.right = min(b->x2, qxl->virtual_x);
307 rect.bottom = min(b->y2, qxl->virtual_y);
309 drawable_bo = make_drawable (qxl, qxl->primary, QXL_DRAW_COPY, &rect);
310 drawable = qxl->bo_funcs->bo_map(drawable_bo);
319 qxl->bo_funcs->bo_unmap(drawable_bo);
323 qxl, (const uint8_t *)data, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, stride * sizeof(*data),
325 qxl->bo_funcs->bo_output_bo_reloc(qxl, offsetof(QXLDrawable, u.copy.src_bitmap),
328 push_drawable (qxl, drawable_bo);
329 qxl->bo_funcs->bo_decref(qxl, image_bo);
333 qxl_surface_upload_primary_regions(qxl_screen_t *qxl, PixmapPtr pixmap, RegionRec *r)
343 upload_one_primary_region(qxl, pixmap, boxes);
439 qxl_screen_t *qxl = destination->qxl;
450 submit_fill (qxl, destination, &qrect, p);
471 image_from_surface_internal(qxl_screen_t *qxl,
474 struct qxl_bo *image_bo = qxl->bo_funcs->bo_alloc (qxl, sizeof(struct QXLImage), "image struct for surface");
475 struct QXLImage *image = qxl->bo_funcs->bo_map(image_bo);
481 qxl->bo_funcs->bo_unmap(image_bo);
485 static struct qxl_bo *image_from_surface(qxl_screen_t *qxl, qxl_surface_t *dest)
488 dest->image_bo = image_from_surface_internal(qxl, dest);
490 qxl->bo_funcs->bo_incref(qxl, dest->image_bo);
491 qxl->bo_funcs->bo_output_surf_reloc(qxl, offsetof(struct QXLImage, surface_image.surface_id), dest->image_bo, dest);
502 qxl_screen_t *qxl = dest->qxl;
519 drawable_bo = make_drawable (qxl, dest, QXL_COPY_BITS, &qrect);
521 drawable = qxl->bo_funcs->bo_map(drawable_bo);
524 qxl->bo_funcs->bo_unmap(drawable_bo);
526 push_drawable (qxl, drawable_bo);
535 image_bo = image_from_surface(qxl, dest->u.copy_src);
537 drawable_bo = make_drawable (qxl, dest, QXL_DRAW_COPY, &qrect);
539 drawable = qxl->bo_funcs->bo_map(drawable_bo);
540 qxl->bo_funcs->bo_output_bo_reloc(qxl, offsetof(QXLDrawable, u.copy.src_bitmap),
553 qxl->bo_funcs->bo_output_surf_reloc(qxl, offsetof(struct QXLDrawable, surfaces_dest[0]), drawable_bo, dest->u.copy_src);
568 qxl->bo_funcs->bo_unmap(drawable_bo);
569 push_drawable (qxl, drawable_bo);
570 qxl->bo_funcs->bo_decref(qxl, image_bo);
596 image_from_picture (qxl_screen_t *qxl,
606 return image_from_surface(qxl, surface);
610 get_transform (qxl_screen_t *qxl, PictTransform *transform)
614 struct qxl_bo *qxform_bo = qxl->bo_funcs->bo_alloc (qxl, sizeof (QXLTransform), "transform");
615 QXLTransform *qxform = qxl->bo_funcs->bo_map(qxform_bo);
624 qxl->bo_funcs->bo_unmap(qxform_bo);
654 qxl_screen_t *qxl = dest->qxl;
689 drawable_bo = make_drawable (qxl, dest, QXL_DRAW_COMPOSITE, &rect);
691 drawable = qxl->bo_funcs->bo_map(drawable_bo);
702 img_bo = image_from_picture (qxl, src, qsrc, &force_opaque);
705 qxl->bo_funcs->bo_output_bo_reloc(qxl, offsetof(QXLDrawable, u.composite.src),
711 trans_bo = get_transform (qxl, src->transform);
713 qxl->bo_funcs->bo_output_bo_reloc(qxl, offsetof(QXLDrawable, u.composite.src_transform),
719 qxl->bo_funcs->bo_output_surf_reloc(qxl, offsetof(struct QXLDrawable, surfaces_dest[n_deps]), drawable_bo, qsrc);
726 img_bo = image_from_picture (qxl, mask, qmask, &force_opaque);
730 qxl->bo_funcs->bo_output_bo_reloc(qxl, offsetof(QXLDrawable, u.composite.mask),
737 qxl->bo_funcs->bo_output_surf_reloc(qxl, offsetof(struct QXLDrawable, surfaces_dest[n_deps]), drawable_bo, qmask);
741 trans_bo = get_transform (qxl, src->transform);
743 qxl->bo_funcs->bo_output_bo_reloc(qxl, offsetof(QXLDrawable, u.composite.mask_transform),
756 qxl->bo_funcs->bo_output_surf_reloc(qxl, offsetof(struct QXLDrawable, surfaces_dest[n_deps]), drawable_bo, dest);
766 qxl->bo_funcs->bo_unmap(drawable_bo);
767 push_drawable (qxl, drawable_bo);
770 qxl->bo_funcs->bo_decref(qxl, derefs[i]);
780 qxl_screen_t *qxl = dest->qxl;
789 drawable_bo = make_drawable (qxl, dest, QXL_DRAW_COPY, &rect);
791 drawable = qxl->bo_funcs->bo_map(drawable_bo);
805 qxl, (const uint8_t *)src, 0, 0, width, height, src_pitch,
807 qxl->bo_funcs->bo_output_bo_reloc(qxl, offsetof(QXLDrawable, u.copy.src_bitmap),
810 qxl->bo_funcs->bo_unmap(drawable_bo);
812 push_drawable (qxl, drawable_bo);
813 qxl->bo_funcs->bo_decref(qxl, image_bo);