Lines Matching refs:surf
218 return qxl_check_mode(qdev, bo->surf.width, bo->surf.height); in qxl_check_framebuffer()
746 width = bo->surf.width; in qxl_update_dumb_head()
747 height = bo->surf.height; in qxl_update_dumb_head()
766 struct qxl_surface *surf) in qxl_calc_dumb_shadow() argument
771 memset(surf, 0, sizeof(*surf)); in qxl_calc_dumb_shadow()
774 head->x = surf->width; in qxl_calc_dumb_shadow()
775 surf->width += head->width; in qxl_calc_dumb_shadow()
776 if (surf->height < head->height) in qxl_calc_dumb_shadow()
777 surf->height = head->height; in qxl_calc_dumb_shadow()
779 if (surf->width < 64) in qxl_calc_dumb_shadow()
780 surf->width = 64; in qxl_calc_dumb_shadow()
781 if (surf->height < 64) in qxl_calc_dumb_shadow()
782 surf->height = 64; in qxl_calc_dumb_shadow()
783 surf->format = SPICE_SURFACE_FMT_32_xRGB; in qxl_calc_dumb_shadow()
784 surf->stride = surf->width * 4; in qxl_calc_dumb_shadow()
787 qdev->dumb_shadow_bo->surf.width != surf->width || in qxl_calc_dumb_shadow()
788 qdev->dumb_shadow_bo->surf.height != surf->height) in qxl_calc_dumb_shadow()
789 DRM_DEBUG("%dx%d\n", surf->width, surf->height); in qxl_calc_dumb_shadow()
795 struct qxl_surface surf; in qxl_prepare_shadow() local
799 qxl_calc_dumb_shadow(qdev, &surf); in qxl_prepare_shadow()
801 qdev->dumb_shadow_bo->surf.width != surf.width || in qxl_prepare_shadow()
802 qdev->dumb_shadow_bo->surf.height != surf.height) { in qxl_prepare_shadow()
809 qxl_bo_create(qdev, surf.height * surf.stride, in qxl_prepare_shadow()
811 &surf, &qdev->dumb_shadow_bo); in qxl_prepare_shadow()