Skip to content

console/pl110: pixman conversion continued

Gerd Hoffmann qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14console: add qemu_pixelformat_from_pixmaninclude/ui/qemu-pixman.h ui/qemu-pixman.c+57 -00 replies
2/14console: add qemu_default_pixman_formatinclude/ui/qemu-pixman.h ui/qemu-pixman.c+26 -00 replies
3/14console: reimplement qemu_default_pixelformatui/console.c+4 -1130 replies
4/14console: stop using PixelFormathw/display/qxl-render.c hw/display/vga.c hw/display/vmware_vga.c +5 more+42 -450 replies
5/14console: add qemu_create_displaysurface_guestmeminclude/ui/console.h ui/console.c+41 -00 replies
6/14console: add dpy_gfx_update_dirtyinclude/ui/console.h ui/console.c+65 -00 replies
7/14console: add qemu_pixman_linebuf_copyinclude/ui/qemu-pixman.h ui/qemu-pixman.c+11 -00 replies
8/14console: Remove unused QEMU_BIG_ENDIAN_FLAGinclude/ui/console.h ui/console.c ui/vnc-enc-tight.c+5 -170 replies
9/14pl110: add framebuffer_update_display_swap_pixmanhw/display/framebuffer.c hw/display/framebuffer.h+146 -00 replies
10/14pl100: Drop support for depths other than 32bpp.hw/display/pl110.c hw/display/pl110_template.h+67 -1250 replies
11/14pl110: move resizehw/display/pl110.c+7 -110 replies
12/14pl110: start using pixmanhw/display/pl110.c hw/display/pl110_template.h+101 -770 replies
13/14pl110: switch some conversions to swap+pixman modehw/display/pl110.c hw/display/pl110_template.h+52 -190 replies
14/14pl110: start handling paletted images via pixmanhw/display/framebuffer.c hw/display/framebuffer.h hw/display/pl110.c +1 more+32 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/14] console/pl110: pixman conversion continued

Hi,

Here is a two-in-one patch series.

The first part makes the console code use pixman format codes internally. It also adds some helper functions for gfx emulation code. If you wanna see that in action check the second part of the series ;) I consider the first part being close to ready for merging.

The second part starts switching over the pl110 emulation to use pixman for pixel ops. For framebuffer formats which pixman can handle natively we can even avoid copying around the framebuffer content and create a DisplaySurface backed by guest memory. Tested with linux guests and pl110 framebuffer driver, which covers only the simple lblp (little-endian-bytes + little-endian-pixels) + bgr case. It is not complete yet, but should already show nicely how one can use pixman in the display emulation code.

cheers,
Gerd

Benjamin Herrenschmidt (1):
console: Remove unused QEMU_BIG_ENDIAN_FLAG

Gerd Hoffmann (13):
console: add qemu_pixelformat_from_pixman
console: add qemu_default_pixman_format
console: reimplement qemu_default_pixelformat
console: stop using PixelFormat
console: add qemu_create_displaysurface_guestmem
console: add dpy_gfx_update_dirty
console: add qemu_pixman_linebuf_copy
pl110: add framebuffer_update_display_swap_pixman
pl100: Drop support for depths other than 32bpp.
pl110: move resize
[wip] pl110: start using pixman
[wip] pl110: switch some conversions to swap+pixman mode [wip] pl110: start handling paletted images via pixman

 hw/display/framebuffer.c    | 131 +++++++++++++++++++++++
 hw/display/framebuffer.h    |  18 ++++
 hw/display/pl110.c          | 146 ++++++++++++-------------
 hw/display/pl110_template.h | 181 ++++++++++++++++++-------------
 hw/display/qxl-render.c     |   7 +-
 hw/display/vga.c            |  12 ++-
 hw/display/vmware_vga.c     |   6 +-
 hw/display/xenfb.c          |   8 +-
 include/ui/console.h        |  25 +++--
 include/ui/qemu-pixman.h    |   4 +
 trace-events                |   2 +-
 ui/console.c                | 253 +++++++++++++++++++-------------------------
 ui/qemu-pixman.c            |  90 ++++++++++++++++
 ui/sdl.c                    |   5 +-
 ui/vnc-enc-tight.c          |  12 +--
 15 files changed, 570 insertions(+), 330 deletions(-)
Signature · 1 line
1.8.3.1