Lines Matching defs:qxl
27 * This is qxl, a driver for the Qumranet paravirtualized graphics device
36 #include "qxl.h"
159 can_accelerate_picture (qxl_screen_t *qxl, PicturePtr pict)
168 if (qxl->debug_render_fallbacks)
179 if (qxl->debug_render_fallbacks)
194 if (qxl->debug_render_fallbacks)
204 if (qxl->debug_render_fallbacks)
216 #define QXL_HAS_CAP(qxl, cap) \
217 (((qxl)->rom->client_capabilities[(cap) / 8]) & (1 << ((cap) % 8)))
220 qxl_has_composite (qxl_screen_t *qxl)
223 if (qxl->kms_enabled) {
227 result = qxl_kms_check_cap(qxl, SPICE_DISPLAY_CAP_COMPOSITE);
238 qxl->pci->revision >= 4 &&
239 QXL_HAS_CAP (qxl, SPICE_DISPLAY_CAP_COMPOSITE);
247 qxl_has_a8_surfaces (qxl_screen_t *qxl)
250 if (qxl->kms_enabled) {
254 result = qxl_kms_check_cap(qxl, SPICE_DISPLAY_CAP_A8_SURFACE);
264 if (qxl->pci->revision < 4)
266 if (qxl->debug_render_fallbacks)
269 qxl->pci->revision);
275 if (!QXL_HAS_CAP (qxl, SPICE_DISPLAY_CAP_COMPOSITE))
277 if (qxl->debug_render_fallbacks)
303 qxl_screen_t *qxl = pScrn->driverPrivate;
316 if (!qxl_has_composite (qxl))
319 if (!can_accelerate_picture (qxl, pSrcPicture) ||
320 !can_accelerate_picture (qxl, pMaskPicture) ||
321 !can_accelerate_picture (qxl, pDstPicture))
332 if (qxl->debug_render_fallbacks)
413 qxl_screen_t * qxl = scrn->driverPrivate;
419 qxl_surface_cache_sanity_check (qxl->surface_cache);
425 if (qxl->kms_enabled)
430 if (depth == 8 && !qxl_has_a8_surfaces (qxl))
442 surface = qxl->bo_funcs->create_surface (qxl, w, h, depth);
459 qxl_surface_cache_sanity_check (qxl->surface_cache);
483 qxl_screen_t * qxl = scrn->driverPrivate;
486 qxl_surface_cache_sanity_check (qxl->surface_cache);
498 qxl->bo_funcs->destroy_surface(surface);
501 qxl_surface_cache_sanity_check (qxl->surface_cache);
510 set_uxa_functions(qxl_screen_t *qxl, ScreenPtr screen)
513 qxl->uxa->check_solid = qxl_check_solid;
514 qxl->uxa->prepare_solid = qxl_prepare_solid;
515 qxl->uxa->solid = qxl_solid;
516 qxl->uxa->done_solid = qxl_done_solid;
519 qxl->uxa->check_copy = qxl_check_copy;
520 qxl->uxa->prepare_copy = qxl_prepare_copy;
521 qxl->uxa->copy = qxl_copy;
522 qxl->uxa->done_copy = qxl_done_copy;
525 qxl->uxa->check_composite = qxl_check_composite;
526 qxl->uxa->check_composite_target = qxl_check_composite_target;
527 qxl->uxa->check_composite_texture = qxl_check_composite_texture;
528 qxl->uxa->prepare_composite = qxl_prepare_composite;
529 qxl->uxa->composite = qxl_composite;
530 qxl->uxa->done_composite = qxl_done_composite;
533 qxl->uxa->put_image = qxl_put_image;
536 qxl->uxa->prepare_access = qxl_prepare_access;
537 qxl->uxa->finish_access = qxl_finish_access;
539 qxl->uxa->pixmap_is_offscreen = qxl_pixmap_is_offscreen;
547 qxl_uxa_init (qxl_screen_t *qxl, ScreenPtr screen)
559 qxl->uxa = uxa_driver_alloc ();
560 if (qxl->uxa == NULL)
563 memset (qxl->uxa, 0, sizeof (*qxl->uxa));
565 qxl->uxa->uxa_major = 1;
566 qxl->uxa->uxa_minor = 0;
568 if (qxl->deferred_fps)
569 dfps_set_uxa_functions(qxl, screen);
571 set_uxa_functions(qxl, screen);
573 if (!uxa_driver_init (screen, qxl->uxa))
577 free (qxl->uxa);
586 if (!uxa_driver_init (screen, qxl->uxa))