/openbmc/qemu/docs/interop/ |
H A D | vhost-user-gpu.rst | 20 work by setting a scanout/display configuration, before sending flush 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 94 :w/h: ``u32``, the scanout width/height size 100 | scanout-id | x | y | w | h | data | 103 :scanout-id: ``u32``, the scanout content to update 113 | scanout-id | x | y | w | h | fdw | fwh | stride | flags | fourcc | 116 :scanout-id: ``u32``, the scanout configuration to set [all …]
|
/openbmc/qemu/hw/display/ |
H A D | virtio-gpu.c | 87 s = &g->parent_obj.scanout[cursor->pos.scanout_id]; in update_cursor() 218 if (get_edid.scanout >= b->conf.max_outputs) { in virtio_gpu_get_edid() 223 trace_virtio_gpu_cmd_get_edid(get_edid.scanout); in virtio_gpu_get_edid() 226 virtio_gpu_base_generate_edid(VIRTIO_GPU_BASE(g), get_edid.scanout, &edid); in virtio_gpu_get_edid() 367 struct virtio_gpu_scanout *scanout = &g->parent_obj.scanout[scanout_id]; in virtio_gpu_disable_scanout() local 370 if (scanout->resource_id == 0) { in virtio_gpu_disable_scanout() 374 res = virtio_gpu_find_resource(g, scanout->resource_id); in virtio_gpu_disable_scanout() 379 dpy_gfx_replace_surface(scanout->con, NULL); in virtio_gpu_disable_scanout() 380 scanout->resource_id = 0; in virtio_gpu_disable_scanout() 381 scanout->ds = NULL; in virtio_gpu_disable_scanout() [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() 56 virtio_gpu_base_generate_edid(VirtIOGPUBase *g, int scanout, in virtio_gpu_base_generate_edid() argument 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() [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 | 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() 299 !g->parent_obj.scanout[m->scanout_id].con) { in vhost_user_gpu_handle_display() 305 con = g->parent_obj.scanout[m->scanout_id].con; in vhost_user_gpu_handle_display() 322 s = &g->parent_obj.scanout[m->scanout_id]; in vhost_user_gpu_handle_display()
|
H A D | virtio-gpu-virgl.c | 374 if (!g->parent_obj.scanout[idx].con) { in virtio_gpu_rect_update() 378 dpy_gl_update(g->parent_obj.scanout[idx].con, x, y, width, height); in virtio_gpu_rect_update() 392 if (g->parent_obj.scanout[i].resource_id != rf.resource_id) { in virgl_cmd_resource_flush() 438 qemu_console_resize(g->parent_obj.scanout[ss.scanout_id].con, in virgl_cmd_set_scanout() 442 g->parent_obj.scanout[ss.scanout_id].con, info.tex_id, in virgl_cmd_set_scanout() 449 g->parent_obj.scanout[ss.scanout_id].con, NULL); in virgl_cmd_set_scanout() 450 dpy_gl_scanout_disable(g->parent_obj.scanout[ss.scanout_id].con); in virgl_cmd_set_scanout() 452 g->parent_obj.scanout[ss.scanout_id].resource_id = ss.resource_id; in virgl_cmd_set_scanout() 1011 ctx = dpy_gl_ctx_create(g->parent_obj.scanout[scanout_idx].con, &qparams); in virgl_create_context() 1020 dpy_gl_ctx_destroy(g->parent_obj.scanout[0].con, qctx); in virgl_destroy_context() [all …]
|
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) …
|
/openbmc/qemu/contrib/vhost-user-gpu/ |
H A D | vhost-user-gpu.c | 341 .scanout_id = get_edid.scanout, in vg_get_edid() 412 struct virtio_gpu_scanout *scanout = &g->scanout[scanout_id]; in vg_disable_scanout() local 415 if (scanout->resource_id == 0) { in vg_disable_scanout() 419 res = virtio_gpu_find_resource(g, scanout->resource_id); in vg_disable_scanout() 424 scanout->width = 0; in vg_disable_scanout() 425 scanout->height = 0; in vg_disable_scanout() 431 .payload.scanout.scanout_id = scanout_id, in vg_disable_scanout() 657 struct virtio_gpu_scanout *scanout; in vg_set_scanout() local 699 scanout = &g->scanout[ss.scanout_id]; in vg_set_scanout() 701 ores = virtio_gpu_find_resource(g, scanout->resource_id); in vg_set_scanout() [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()
|
/openbmc/qemu/ui/ |
H A D | console.c | 282 con->scanout.kind == SCANOUT_SURFACE); in displaychangelistener_display_console() 284 if (con->scanout.kind == SCANOUT_DMABUF && in displaychangelistener_display_console() 286 dcl->ops->dpy_gl_scanout_dmabuf(dcl, con->scanout.dmabuf); in displaychangelistener_display_console() 287 } else if (con->scanout.kind == SCANOUT_TEXTURE && in displaychangelistener_display_console() 290 con->scanout.texture.backing_id, in displaychangelistener_display_console() 291 con->scanout.texture.backing_y_0_top, in displaychangelistener_display_console() 292 con->scanout.texture.backing_width, in displaychangelistener_display_console() 293 con->scanout.texture.backing_height, in displaychangelistener_display_console() 294 con->scanout.texture.x, in displaychangelistener_display_console() 295 con->scanout.texture.y, in displaychangelistener_display_console() [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()
|
/openbmc/linux/drivers/gpu/drm/virtio/ |
H A D | virtgpu_vq.c | 742 uint32_t scanout = le32_to_cpu(cmd->scanout); in virtio_gpu_cmd_get_edid_cb() local 746 if (scanout >= vgdev->num_scanouts) in virtio_gpu_cmd_get_edid_cb() 748 output = vgdev->outputs + scanout; in virtio_gpu_cmd_get_edid_cb() 889 int scanout; in virtio_gpu_cmd_get_edids() local 894 for (scanout = 0; scanout < vgdev->num_scanouts; scanout++) { in virtio_gpu_cmd_get_edids() 905 cmd_p->scanout = cpu_to_le32(scanout); in virtio_gpu_cmd_get_edids()
|
/openbmc/linux/Documentation/devicetree/bindings/media/ |
H A D | fsl-vdoa.txt | 6 960 VPU to the conventional raster-scan order for scanout.
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-gpu.h | 153 struct virtio_gpu_scanout scanout[VIRTIO_GPU_MAX_SCANOUTS]; member 302 void virtio_gpu_base_generate_edid(VirtIOGPUBase *g, int scanout,
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_surface.c | 771 metadata->scanout = req->scanout; in vmw_surface_define_ioctl() 816 if (metadata->scanout && in vmw_surface_define_ioctl() 1488 metadata.scanout = req->base.drm_surface_flags & in vmw_gb_surface_define_internal() 2015 if (req->scanout) { in vmw_gb_surface_define() 2093 metadata->scanout && in vmw_gb_surface_define()
|
/openbmc/linux/include/uapi/linux/ |
H A D | virtio_gpu.h | 345 __le32 scanout; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_gpu.h | 348 uint32_t scanout; member
|
/openbmc/linux/Documentation/gpu/amdgpu/display/ |
H A D | dc-debug.rst | 9 bars added at the scanout time by the driver to convey some specific
|