[PATCH 0/4] add resize support for wl_surface damage
Zhao, Halley
halley.zhao at intel.com
Sun Jun 10 18:01:12 PDT 2012
Hi Kristian:
I had a short talk with pq in IRC, he think scaling is a fundamental change to wayland core protocol, it impacts the coordinate system of wl_surface.
Your feedback is required to move it on.
First of first, do you think resize should happen for wayland server(Weston)?
Then, if yes, what's your opinion on the interactions between different parts of the protocol when we change the coordination?
Thanks.
> -----Original Message-----
> From: Zhao, Halley
> Sent: Thursday, June 07, 2012 11:34 AM
> To: wayland-devel at lists.freedesktop.org
> Cc: Zhao, Halley
> Subject: [PATCH 0/4] add resize support for wl_surface damage
>
> overlay plane supports rendering with resize, while wayland protocol doesn't
> have interface for it yet. so I go ahead to add it and ask for your comments.
> this interface also has potential benefit for memory footprint:
> for example: when surface size is bigger than original content (an image
> maybe), client needn't create a new buffer to scale it, but depending on weston
> to handle it.
>
> basing on it, I would like add more policy on how to assign a surface to overlay
> plane. for example, the surface with following attribute should have a higher
> priority to render to overlay plane:
> YUV format (YUYV indeed for GEN gfx)
> render with scaling required
> surface update with a higher frequency
> surface has other surfaces behind it
>
> these patches include 3 parts:
> 1. wayland protocol file update
> 2. weston update to support new api
> 3. test case update (test case in $mesa/test2/wayland-drm, the case
> hasn't commited to upstream yet)
>
> http://lists.freedesktop.org/archives/mesa-dev/2012-June/022544.html
>
> == wayland ==
> Zhao Halley (1):
> add damage2 api
>
> protocol/wayland.xml | 16 ++++++++++++++++
> 1 files changed, 16 insertions(+), 0 deletions(-)
>
> --
> 1.7.5.4
>
> == weston ==
> Zhao Halley (1):
> add surface_damage2 to support resize
>
> Zhao halley (1):
> test purpose: filter out background/cursor/shell surface
> disable geometry transform for overlay
>
> src/compositor-drm.c | 45 ++++++++++++++++++++++++--------
> src/compositor.c | 70
> ++++++++++++++++++++++++++++++++++---------------
> src/compositor.h | 9 +++++-
> src/shell.c | 53 ++++++++++++++++++++-----------------
> src/util.c | 8 +++---
> 5 files changed, 123 insertions(+), 62 deletions(-) mode change 100644 =>
> 100755 src/compositor-drm.c mode change 100644 => 100755
> src/compositor.c mode change 100644 => 100755 src/compositor.h mode
> change 100644 => 100755 src/shell.c mode change 100644 => 100755
> src/util.c
>
> --
> 1.7.5.4
>
> == mesa ==
> Zhao Halley (1):
> use wl_surface_damage2 for resize
>
> tests/wayland-drm/wayland-drm-test.c | 11 ++++++++---
> 1 files changed, 8 insertions(+), 3 deletions(-)
>
> --
> 1.7.5.4
More information about the wayland-devel
mailing list