/qemu/docs/interop/ |
H A D | vhost-user-gpu.rst | 65 | scanout-id | x | y | 68 :scanout-id: ``u32``, the scanout where the cursor is located 89 | scanout-id | w | h | 92 :scanout-id: ``u32``, the scanout configuration to set 100 | scanout-id | x | y | w | h | data | 103 :scanout-id: ``u32``, the scanout content to update 116 :scanout-id: ``u32``, the scanout configuration to set 131 | scanout-id | 134 :scanout-id: ``u32``, the scanout to get edid from 164 VhostUserGpuScanout scanout; [all …]
|
/qemu/hw/display/ |
H A D | virtio-gpu.c | 530 scanout = &g->parent_obj.scanout[i]; in virtio_gpu_resource_flush() 532 rf.r.x < scanout->x + scanout->width && in virtio_gpu_resource_flush() 534 rf.r.y < scanout->y + scanout->height && in virtio_gpu_resource_flush() 581 scanout = &g->parent_obj.scanout[i]; in virtio_gpu_resource_flush() 583 qemu_rect_init(&rect, scanout->x, scanout->y, in virtio_gpu_resource_flush() 584 scanout->width, scanout->height); in virtio_gpu_resource_flush() 588 qemu_rect_translate(&rect, -scanout->x, -scanout->y); in virtio_gpu_resource_flush() 609 scanout = &g->parent_obj.scanout[scanout_id]; in virtio_gpu_update_scanout() 634 scanout = &g->parent_obj.scanout[scanout_id]; in virtio_gpu_do_set_scanout() 1437 scanout = &g->parent_obj.scanout[i]; in virtio_gpu_post_load() [all …]
|
H A D | virtio-gpu-base.c | 31 g->scanout[i].resource_id = 0; in virtio_gpu_base_reset() 32 g->scanout[i].width = 0; in virtio_gpu_base_reset() 33 g->scanout[i].height = 0; in virtio_gpu_base_reset() 34 g->scanout[i].x = 0; in virtio_gpu_base_reset() 35 g->scanout[i].y = 0; in virtio_gpu_base_reset() 36 g->scanout[i].ds = NULL; in virtio_gpu_base_reset() 60 .width_mm = g->req_state[scanout].width_mm, in virtio_gpu_base_generate_edid() 61 .height_mm = g->req_state[scanout].height_mm, in virtio_gpu_base_generate_edid() 62 .prefx = g->req_state[scanout].width, in virtio_gpu_base_generate_edid() 63 .prefy = g->req_state[scanout].height, in virtio_gpu_base_generate_edid() [all …]
|
H A D | virtio-gpu-udmabuf.c | 162 struct virtio_gpu_scanout *scanout; in virtio_gpu_free_dmabuf() local 164 scanout = &g->parent_obj.scanout[dmabuf->scanout_id]; in virtio_gpu_free_dmabuf() 165 dpy_gl_release_dmabuf(scanout->con, dmabuf->buf); in virtio_gpu_free_dmabuf() 201 struct virtio_gpu_scanout *scanout = &g->parent_obj.scanout[scanout_id]; in virtio_gpu_update_dmabuf() local 217 qemu_console_resize(scanout->con, width, height); in virtio_gpu_update_dmabuf() 218 dpy_gl_scanout_dmabuf(scanout->con, new_primary->buf); in virtio_gpu_update_dmabuf()
|
H A D | virtio-gpu-virgl.c | 127 if (!g->parent_obj.scanout[idx].con) { in virtio_gpu_rect_update() 131 dpy_gl_update(g->parent_obj.scanout[idx].con, x, y, width, height); in virtio_gpu_rect_update() 145 if (g->parent_obj.scanout[i].resource_id != rf.resource_id) { in virgl_cmd_resource_flush() 191 qemu_console_resize(g->parent_obj.scanout[ss.scanout_id].con, in virgl_cmd_set_scanout() 195 g->parent_obj.scanout[ss.scanout_id].con, info.tex_id, in virgl_cmd_set_scanout() 202 g->parent_obj.scanout[ss.scanout_id].con, NULL); in virgl_cmd_set_scanout() 203 dpy_gl_scanout_disable(g->parent_obj.scanout[ss.scanout_id].con); in virgl_cmd_set_scanout() 205 g->parent_obj.scanout[ss.scanout_id].resource_id = ss.resource_id; in virgl_cmd_set_scanout() 553 dpy_gl_ctx_destroy(g->parent_obj.scanout[0].con, qctx); in virgl_destroy_context() 615 dpy_gfx_replace_surface(g->parent_obj.scanout[i].con, NULL); in virtio_gpu_virgl_reset_scanout() [all …]
|
H A D | vhost-user-gpu.c | 99 VhostUserGpuScanout scanout; member 130 s = &g->parent_obj.scanout[pos->scanout_id]; in vhost_user_gpu_handle_cursor() 229 VhostUserGpuScanout *m = &msg->payload.scanout; in vhost_user_gpu_handle_display() 236 s = &g->parent_obj.scanout[m->scanout_id]; in vhost_user_gpu_handle_display() 264 con = g->parent_obj.scanout[m->scanout_id].con; in vhost_user_gpu_handle_display() 298 !g->parent_obj.scanout[m->scanout_id].con) { in vhost_user_gpu_handle_display() 304 con = g->parent_obj.scanout[m->scanout_id].con; in vhost_user_gpu_handle_display() 321 s = &g->parent_obj.scanout[m->scanout_id]; in vhost_user_gpu_handle_display()
|
H A D | virtio-gpu-rutabaga.c | 239 struct virtio_gpu_scanout *scanout = NULL; in rutabaga_cmd_resource_flush() local 260 scanout = &vb->scanout[i]; in rutabaga_cmd_resource_flush() 285 dpy_gfx_update_full(scanout->con); in rutabaga_cmd_resource_flush() 292 struct virtio_gpu_scanout *scanout = NULL; in rutabaga_cmd_set_scanout() local 306 scanout = &vb->scanout[ss.scanout_id]; in rutabaga_cmd_set_scanout() 309 dpy_gfx_replace_surface(scanout->con, NULL); in rutabaga_cmd_set_scanout() 310 dpy_gl_scanout_disable(scanout->con); in rutabaga_cmd_set_scanout() 333 scanout->ds = qemu_create_displaysurface_pixman(res->image); in rutabaga_cmd_set_scanout() 334 dpy_gfx_replace_surface(scanout->con, NULL); in rutabaga_cmd_set_scanout() 335 dpy_gfx_replace_surface(scanout->con, scanout->ds); in rutabaga_cmd_set_scanout()
|
H A D | virtio-vga.c | 174 vga->con = g->scanout[0].con; in virtio_vga_base_realize() 178 object_property_set_link(OBJECT(g->scanout[i].con), "device", in virtio_vga_base_realize()
|
H A D | virtio-gpu-pci.c | 56 object_property_set_link(OBJECT(g->scanout[i].con), "device", in virtio_gpu_pci_base_realize()
|
H A D | trace-events | 35 virtio_gpu_cmd_get_edid(uint32_t scanout) "scanout %d" 53 virtio_gpu_update_cursor(uint32_t scanout, uint32_t x, uint32_t y, const char *type, uint32_t res) …
|
/qemu/contrib/vhost-user-gpu/ |
H A D | vhost-user-gpu.c | 412 struct virtio_gpu_scanout *scanout = &g->scanout[scanout_id]; in vg_disable_scanout() local 424 scanout->width = 0; in vg_disable_scanout() 425 scanout->height = 0; in vg_disable_scanout() 699 scanout = &g->scanout[ss.scanout_id]; in vg_set_scanout() 708 scanout->x = ss.r.x; in vg_set_scanout() 709 scanout->y = ss.r.y; in vg_set_scanout() 710 scanout->width = ss.r.width; in vg_set_scanout() 711 scanout->height = ss.r.height; in vg_set_scanout() 794 scanout = &g->scanout[i]; in vg_resource_flush() 797 pixman_region_init_rect(®ion, scanout->x, scanout->y, in vg_resource_flush() [all …]
|
H A D | vugpu.h | 104 VhostUserGpuScanout scanout; member 146 struct virtio_gpu_scanout scanout[VIRTIO_GPU_MAX_SCANOUTS]; member
|
H A D | virgl.c | 426 g->scanout[ss.scanout_id].resource_id = ss.resource_id; in virgl_cmd_set_scanout() 444 if (g->scanout[i].resource_id != rf.resource_id) { in virgl_cmd_resource_flush()
|
/qemu/ui/ |
H A D | console.c | 282 if (con->scanout.kind == SCANOUT_DMABUF && in displaychangelistener_display_console() 857 con->scanout.kind = SCANOUT_SURFACE; in dpy_gfx_replace_surface() 1041 con->scanout.kind = SCANOUT_NONE; in dpy_gl_scanout_disable() 1065 con->scanout.kind = SCANOUT_TEXTURE; in dpy_gl_scanout_texture() 1090 con->scanout.kind = SCANOUT_DMABUF; in dpy_gl_scanout_dmabuf() 1091 con->scanout.dmabuf = dmabuf; in dpy_gl_scanout_dmabuf() 1460 switch (con->scanout.kind) { in qemu_console_get_width() 1464 return con->scanout.texture.width; in qemu_console_get_width() 1477 switch (con->scanout.kind) { in qemu_console_get_height() 1481 return con->scanout.texture.height; in qemu_console_get_height() [all …]
|
H A D | sdl2-gl.c | 33 static void sdl2_set_scanout_mode(struct sdl2_console *scon, bool scanout) in sdl2_set_scanout_mode() argument 35 if (scon->scanout_mode == scanout) { in sdl2_set_scanout_mode() 39 scon->scanout_mode = scanout; in sdl2_set_scanout_mode()
|
H A D | console-priv.h | 23 DisplayScanout scanout; member
|
H A D | gtk-gl-area.c | 21 static void gtk_gl_area_set_scanout_mode(VirtualConsole *vc, bool scanout) in gtk_gl_area_set_scanout_mode() argument 23 if (vc->gfx.scanout_mode == scanout) { in gtk_gl_area_set_scanout_mode() 27 vc->gfx.scanout_mode = scanout; in gtk_gl_area_set_scanout_mode()
|
H A D | gtk-egl.c | 27 static void gtk_egl_set_scanout_mode(VirtualConsole *vc, bool scanout) in gtk_egl_set_scanout_mode() argument 29 if (vc->gfx.scanout_mode == scanout) { in gtk_egl_set_scanout_mode() 33 vc->gfx.scanout_mode = scanout; in gtk_egl_set_scanout_mode()
|
H A D | console-vc.c | 383 assert(s->scanout.kind == SCANOUT_SURFACE); in text_console_resize()
|
/qemu/include/hw/virtio/ |
H A D | virtio-gpu.h | 152 struct virtio_gpu_scanout scanout[VIRTIO_GPU_MAX_SCANOUTS]; member 289 void virtio_gpu_base_generate_edid(VirtIOGPUBase *g, int scanout,
|
/qemu/include/standard-headers/linux/ |
H A D | virtio_gpu.h | 347 uint32_t scanout; member
|