Lines Matching refs:guest_primary
37 trace_qxl_render_blit(qxl->guest_primary.qxl_stride, in qxl_blit()
39 src = qxl->guest_primary.data; in qxl_blit()
40 if (qxl->guest_primary.qxl_stride < 0) { in qxl_blit()
43 src += (qxl->guest_primary.surface.height - rect->top - 1) * in qxl_blit()
44 qxl->guest_primary.abs_stride; in qxl_blit()
46 src += rect->top * qxl->guest_primary.abs_stride; in qxl_blit()
48 dst += rect->top * qxl->guest_primary.abs_stride; in qxl_blit()
49 src += rect->left * qxl->guest_primary.bytes_pp; in qxl_blit()
50 dst += rect->left * qxl->guest_primary.bytes_pp; in qxl_blit()
51 len = (rect->right - rect->left) * qxl->guest_primary.bytes_pp; in qxl_blit()
55 dst += qxl->guest_primary.abs_stride; in qxl_blit()
56 src += qxl->guest_primary.qxl_stride; in qxl_blit()
62 QXLSurfaceCreate *sc = &qxl->guest_primary.surface; in qxl_render_resize()
64 qxl->guest_primary.qxl_stride = sc->stride; in qxl_render_resize()
65 qxl->guest_primary.abs_stride = abs(sc->stride); in qxl_render_resize()
66 qxl->guest_primary.resized++; in qxl_render_resize()
69 qxl->guest_primary.bytes_pp = 2; in qxl_render_resize()
70 qxl->guest_primary.bits_pp = 15; in qxl_render_resize()
73 qxl->guest_primary.bytes_pp = 2; in qxl_render_resize()
74 qxl->guest_primary.bits_pp = 16; in qxl_render_resize()
78 qxl->guest_primary.bytes_pp = 4; in qxl_render_resize()
79 qxl->guest_primary.bits_pp = 32; in qxl_render_resize()
83 qxl->guest_primary.surface.format); in qxl_render_resize()
84 qxl->guest_primary.bytes_pp = 4; in qxl_render_resize()
85 qxl->guest_primary.bits_pp = 32; in qxl_render_resize()
93 area->right = qxl->guest_primary.surface.width; in qxl_set_rect_to_surface()
95 area->bottom = qxl->guest_primary.surface.height; in qxl_set_rect_to_surface()
102 int width = qxl->guest_head0_width ?: qxl->guest_primary.surface.width; in qxl_render_update_area_unlocked()
103 int height = qxl->guest_head0_height ?: qxl->guest_primary.surface.height; in qxl_render_update_area_unlocked()
106 if (qxl->guest_primary.resized) { in qxl_render_update_area_unlocked()
107 qxl->guest_primary.resized = 0; in qxl_render_update_area_unlocked()
108 qxl->guest_primary.data = qxl_phys2virt(qxl, in qxl_render_update_area_unlocked()
109 qxl->guest_primary.surface.mem, in qxl_render_update_area_unlocked()
111 qxl->guest_primary.abs_stride in qxl_render_update_area_unlocked()
113 if (!qxl->guest_primary.data) { in qxl_render_update_area_unlocked()
121 qxl->guest_primary.qxl_stride, in qxl_render_update_area_unlocked()
122 qxl->guest_primary.bytes_pp, in qxl_render_update_area_unlocked()
123 qxl->guest_primary.bits_pp); in qxl_render_update_area_unlocked()
124 if (qxl->guest_primary.qxl_stride > 0) { in qxl_render_update_area_unlocked()
126 qemu_default_pixman_format(qxl->guest_primary.bits_pp, true); in qxl_render_update_area_unlocked()
131 qxl->guest_primary.abs_stride, in qxl_render_update_area_unlocked()
132 qxl->guest_primary.data); in qxl_render_update_area_unlocked()
141 if (!qxl->guest_primary.data) { in qxl_render_update_area_unlocked()
182 if (!runstate_is_running() || !qxl->guest_primary.commands || in qxl_render_update()
190 qxl->guest_primary.commands = 0; in qxl_render_update()