Re: Wayland and Weston 1.0

2012-10-22 Thread Jesse Barnes
nent), and the power savings on a typical laptop have the potential to be huge. Given the existing toolkit support, it's also possible someone could start a simple, new environment with Weston at its core. Anyway, congrats again! Thanks, -- Jesse Barnes, Intel Open Source Technology Cent

Re: FOSDEM2013: DevRoom or not?

2012-09-28 Thread Jesse Barnes
gt; So far there are three speakers who lined up, and my feeling is that > Matthieu and Marc lined up just so that the deadline and requirement > will be met. So only a single person is intending to come to fosdem and > has a topic he wants to talk about. > > Come on guys. Surely we can do better than that. I could come up with something, maybe people would be interested in hearing about some of our recent SoC work? I'd have to see what I could get approval for, but I could probably find *something* that's not still secret. :) -- Jesse Barnes, Intel Open Source Technology Center ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [PATCH 3/5] drm: plane src coords are 16.16 fixed point

2012-03-20 Thread Jesse Barnes
... Somewhere must be ignoring the shifts, but it looks like we honor them in i915... ah no it looks like we don't treat src_w/src_h that way, just x & y. Guess we should fix the kernel driver before we have hardware that actually supports alpha so this will work nicely! -- Jesse Ba

Re: [PATCH] compositor: add dpms and backlight support

2012-02-29 Thread Jesse Barnes
e all that most displays actually use reasonably - a range of 1-10 isn't enough for really smooth fade effects, 1-255 would be better (though clearly not all hw supports it) Looks good otherwise. With the above addressed either in a revised patch or patch on top: Reviewed-by: Je

Re: [RFC] compositor: add dpms and backlight support

2012-02-28 Thread Jesse Barnes
y(struct weston_shell *base) > { > struct wl_shell *shell = container_of(base, struct wl_shell, shell); > @@ -1904,9 +1933,12 @@ shell_init(struct weston_compositor *ec) > weston_compositor_add_binding(ec, 0, BTN_LEFT, > MODIFIER_SUPER | MODIFIER_

Re: concerns over wayland and need for wayland app display to X Server

2012-02-27 Thread Jesse Barnes
easier to match these things at the toolkit level rather than the protocol level. -- Jesse Barnes, Intel Open Source Technology Center signature.asc Description: PGP signature ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lis

Re: spec: Fix the escaping of special characters in Interfaces section

2012-02-24 Thread Jesse Barnes
On Fri, 24 Feb 2012 14:34:52 -0500 Kristian Høgsberg wrote: > On Fri, Feb 24, 2012 at 1:53 PM, Jesse Barnes > wrote: > > On Thu, 16 Feb 2012 15:54:41 +0200 > > Tiago Vignatti wrote: > > > >> On 02/16/2012 03:46 PM, Michael Hasselmann wrote: > >>

Re: spec: Fix the escaping of special characters in Interfaces section

2012-02-24 Thread Jesse Barnes
on tex or not. So if is > our intention to keep that documentation up to date and alive, then it > makes perfect sense for me. I didn't hear anything from Kristian about > it yet though. Yeah I'd like to see it auto-dumped to the website, perhaps with a commit hook on the

Re: [PATCH] gbm: track buffer format through DRI drivers

2012-02-22 Thread Jesse Barnes
On Wed, 22 Feb 2012 12:42:59 -0500 Kristian Hoegsberg wrote: > On Tue, Feb 21, 2012 at 12:56:11PM -0800, Jesse Barnes wrote: > > GBM needs the buffer format in order to communicate with DRM and clients > > for things like scanout. > > > > So track the DRI format re

[PATCH] gbm: track buffer format through DRI drivers

2012-02-21 Thread Jesse Barnes
the DRM fb format list). Signed-off-by: Jesse Barnes --- include/GL/internal/dri_interface.h |3 +- src/gallium/state_trackers/dri/drm/dri2.c |6 + src/gallium/winsys/sw/wayland/wayland_sw_winsys.h |1 + src/gbm/backends/dri/gbm_dri.c| 45

Re: [PATCH 3/3] compositor-drm: add sprite support v6

2012-02-14 Thread Jesse Barnes
hat is, that I want to keep it possible to implement > OpenWF Display with GBM, without DRM. > So that we have practical example and API towards the > Wayland-needs-KMS misinformation. Yep, understood. Does OpenWF have the notion of surface formats like this? -- Jesse Bar

Re: [PATCH 3/3] compositor-drm: add sprite support v6

2012-02-10 Thread Jesse Barnes
On Fri, 10 Feb 2012 11:55:45 +0200 Pekka Paalanen wrote: > On Thu, 9 Feb 2012 13:12:58 -0800 > Jesse Barnes wrote: > > > Add support for assigning surfaces to overlay sprites using the new > > assign_planes hook. > > > > v2: queue per-sprite vblank events t

Re: [PATCH 1/3] tests: add COMPOSITOR_CFLAGS to the build

2012-02-10 Thread Jesse Barnes
On Fri, 10 Feb 2012 11:35:50 +0200 Pekka Paalanen wrote: > On Thu, 9 Feb 2012 13:12:56 -0800 > Jesse Barnes wrote: > > > This lets the tests pick up headers from an alternate install root. > > --- > > tests/Makefile.am |2 +- > > 1 files chan

[PATCH 3/3] compositor-drm: add sprite support v6

2012-02-09 Thread Jesse Barnes
Add support for assigning surfaces to overlay sprites using the new assign_planes hook. v2: queue per-sprite vblank events to avoid de-queuing sprite updates for unrelated outputs (reported by krh) v3: handle output and surface transformation when calculating src & dest rects for the sprit

[PATCH 2/3] compositor: add an assign_planes hook to the output

2012-02-09 Thread Jesse Barnes
This allows each output back end to optimize drawing using overlay planes and cursors (yet to be integrated). If a surface is assigned to a plane, the back end should clear its damage field so that the later repaint code won't look at it. --- src/compositor-drm.c |1 + src/compositor-open

[PATCH 1/3] tests: add COMPOSITOR_CFLAGS to the build

2012-02-09 Thread Jesse Barnes
This lets the tests pick up headers from an alternate install root. --- tests/Makefile.am |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index a1f361e..0b3ed40 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,7 +6,7 @@ en

Weston plane patches

2012-02-09 Thread Jesse Barnes
Ok I think these are ready, pending the commit of the DRM format handling to GBM. Thanks, Jesse ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

[PATCH] configure.ac: fix cairo-glesv2 help text

2012-02-07 Thread Jesse Barnes
Finally figured out why --enable-cairo-gles2 wasn't working like configure --help said it should. --- configure.ac |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 550bb3c..a2bb537 100644 --- a/configure.ac +++ b/configure.ac @@ -96,7 +96,

Re: [PATCH 3/3] compositor-drm: add sprite support v5

2012-01-31 Thread Jesse Barnes
gt;y1; > > + pixman_region32_fini(&dest_rect); > > + > > + pixman_region32_init(&src_rect); > > + pixman_region32_intersect(&src_rect, &es->transform.boundingbox, > > + &output_ba

[PATCH] clients/gears: gears needs to link against libGL

2012-01-30 Thread Jesse Barnes
If you don't have cairo-gl, the gears build won't pick up the -lGL it needs to build, so add it to Makefile.am. --- clients/Makefile.am |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/clients/Makefile.am b/clients/Makefile.am index b64c38a..32fe503 100644 --- a/clients/Ma

[PATCH 3/3] compositor-drm: add sprite support v5

2012-01-30 Thread Jesse Barnes
Add support for assigning surfaces to overlay sprites using the new assign_planes hook. v2: queue per-sprite vblank events to avoid de-queuing sprite updates for unrelated outputs (reported by krh) v3: handle output and surface transformation when calculating src & dest rects for the sprit

[PATCH 1/3] tests: add COMPOSITOR_CFLAGS to the build

2012-01-30 Thread Jesse Barnes
This lets the tests pick up headers from an alternate install root. --- tests/Makefile.am |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index a1f361e..0b3ed40 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,7 +6,7 @@ en

[PATCH 2/3] compositor: add an assign_planes hook to the output

2012-01-30 Thread Jesse Barnes
This allows each output back end to optimize drawing using overlay planes and cursors (yet to be integrated). If a surface is assigned to a plane, the back end should clear its damage field so that the later repaint code won't look at it. --- src/compositor-drm.c |1 + src/compositor-open

[PATCH 3/3] tests: add COMPOSITOR_CFLAGS to the build

2012-01-30 Thread Jesse Barnes
This lets the tests pick up headers from an alternate install root. --- tests/Makefile.am |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index a1f361e..0b3ed40 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -6,7 +6,7 @@ en

[PATCH 2/3] compositor-drm: add sprite support v3

2012-01-30 Thread Jesse Barnes
Add support for assigning surfaces to overlay sprites using the new assign_planes hook. v2: queue per-sprite vblank events to avoid de-queuing sprite updates for unrelated outputs (reported by krh) v3: handle output and surface transformation when calculating src & dest rects for the sprit

[PATCH 1/3] compositor: add an assign_planes hook to the output

2012-01-30 Thread Jesse Barnes
This allows each output back end to optimize drawing using overlay planes and cursors (yet to be integrated). If a surface is assigned to a plane, the back end should clear its damage field so that the later repaint code won't look at it. --- src/compositor-drm.c |1 + src/compositor-open

[PATCH 2/2] compositor-drm: add sprite support

2012-01-27 Thread Jesse Barnes
Add support for assigning surfaces to overlay sprites using the new assign_planes hook. NOTE: this patch fails to handle fbs correctly; a live fb/surface pair may be removed while still active! --- configure.ac |2 +- src/compositor-drm.c | 413 +++

[PATCH 1/2] compositor: add an assign_planes hook to the output

2012-01-27 Thread Jesse Barnes
This allows each output back end to optimize drawing using overlay planes and cursors (yet to be integrated). If a surface is assigned to a plane, the back end should clear its damage field so that the later repaint code won't look at it. --- src/compositor-drm.c |1 + src/compositor-open

[PATCH 3/3] compositor: unify plane and output handling

2012-01-25 Thread Jesse Barnes
Plane and output handling are mostly the same; they both create fbs for display and then assign them to either the primary or one of the overlay planes. So unify them using a new drm_buffer_reference object, making the plane handling code work much better. --- src/compositor-drm.c | 411

[PATCH 1/3] compositor: add an plane assignment hook

2012-01-25 Thread Jesse Barnes
Each output may have ways of optimizing surface drawing (e.g. by using sprites), so push the handling of surface assignment to display planes into the output structure, providing the existing surface setup function as a helper. --- configure.ac |2 +- src/compositor-drm.c | 19

[PATCH 2/3] compositor: move scanout handling to compositor-drm

2012-01-25 Thread Jesse Barnes
Much of the scanout handling code is only used by the DRM compositor, so move it over to make it easier to add the sprite handling changes. --- src/compositor-drm.c | 44 +++- src/compositor.c | 30 +- src/compositor.h

Sprite handling framework

2012-01-25 Thread Jesse Barnes
Ok these need some actual review. I have things working here (you can test on a current kernel by enabling the DEBUG_PLANES code) and I think the infrastructure is starting to look ok, especially now that I don't leak fbs on every assignment. :) The new buffer reference code makes things a bit ni

[RFC] compositor: check for overlap when repainting

2012-01-20 Thread Jesse Barnes
We can use this in the output drivers to figure out if we can use sprites for example. diff --git a/src/compositor.c b/src/compositor.c index 7afec94..87f4fee 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -201,6 +201,7 @@ weston_surface_create(struct weston_compositor *compositor,

[PATCH] scanner: require descriptions and summaries

2012-01-19 Thread Jesse Barnes
To be applied once wayland.xml has full documentation. --- src/scanner.c | 27 --- 1 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/scanner.c b/src/scanner.c index f88fb4d..ee9af5f 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -292,6 +292,9 @@ star

Re: [PATCH] scanner: allow summary attributes in args and in

2012-01-19 Thread Jesse Barnes
On Thu, 19 Jan 2012 14:13:36 -0800 Jesse Barnes wrote: > Add support for arg summaries for use by detailed structure element > descriptions. > --- > protocol/wayland.xml |4 ++- > src/scanner.c| 76 + > 2 files chan

[PATCH] scanner: allow summary attributes in args and in

2012-01-19 Thread Jesse Barnes
Add support for arg summaries for use by detailed structure element descriptions. --- protocol/wayland.xml |4 ++- src/scanner.c| 76 + 2 files changed, 48 insertions(+), 32 deletions(-) diff --git a/protocol/wayland.xml b/protocol/way

Re: [PATCH 3/4] compositor: unify sprite and primary handling a bit

2012-01-17 Thread Jesse Barnes
mes be off by one with a flip complete vs a vblank event (one might come in before the other). And the setplane call is really vblank sync'd, independent of when/how the flip was scheduled. We really need an atomic mode set don't we? -- Jesse Barnes, Intel Open Source Techn

[PATCH 2/4] compositor: move scanout handling to compositor-drm

2012-01-16 Thread Jesse Barnes
Much of the scanout handling code is only used by the DRM compositor, so move it over to make it easier to add the sprite handling changes. --- src/compositor-drm.c | 44 +++- src/compositor.c | 30 +- src/compositor.h

[PATCH 1/4] compositor: add an plane assignment hook

2012-01-16 Thread Jesse Barnes
Each output may have ways of optimizing surface drawing (e.g. by using sprites), so push the handling of surface assignment to display planes into the output structure, providing the existing surface setup function as a helper. --- clients/window.h |3 - configure.ac |2

[PATCH 4/4] compositor: work around tty checking so gdb works

2012-01-16 Thread Jesse Barnes
This lets me run Weston as root in an ssh window and gdb and get stdout. --- src/compositor-drm.c |3 ++- src/tty.c|4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 9e25ffd..1751e72 100644 --- a/src/composi

[PATCH 3/4] compositor: unify sprite and primary handling a bit

2012-01-16 Thread Jesse Barnes
In assign_planes, we try to assign the primary buffer to the primary plane, then look for additional surfaces to match to display planes. At present time, we'll then flip all those buffers onto the screen in a synchronized way, then clean up and release the buffers when the corresponding page flip

[RFC] Updated plane handling

2012-01-16 Thread Jesse Barnes
This set refactors thing a bit more and tries to somewhat unify presentation of primary and sprite surfaces. I broke something though because terminal-in-a-sprite no longer works, but I think the refactoring is interesting to look at anyway. Any thoughts? Kristian, you mentioned something about

Re: [RFC] Weston sprite support

2012-01-09 Thread Jesse Barnes
bove > setup_scanout_surface(). In fact, I think we can roll > setup_scanout_surface() into that hook and handle pageflipping to > client buffers in the same hook. It's not all that different. > Attached a patch/sketch. So something like this is more like what you had in

Re: [RFC] Weston sprite support

2012-01-06 Thread Jesse Barnes
eds to move up above > setup_scanout_surface(). In fact, I think we can roll > setup_scanout_surface() into that hook and handle pageflipping to > client buffers in the same hook. It's not all that different. > Attached a patch/sketch. Cool, thanks. I'll check it ou

[PATCH 2/2] compositor-drm: use a DRM specific repaint function

2012-01-06 Thread Jesse Barnes
The DRM repaint function can allocate available DRM display planes for use in drawing surfaces. In some cases a repaint can even be avoided if only a surface currently using a sprite has been updated. --- src/compositor-drm.c | 109 +- 1 files chan

[PATCH 1/2] compositor: make repaint output specific

2012-01-06 Thread Jesse Barnes
Each output may have ways of optimizing surface drawing (e.g. by using sprites), so push the handling of repaint into the output structure, providing the existing repaint function as a helper. --- src/compositor-drm.c |1 + src/compositor-openwfd.c |1 + src/compositor-wayland.c |1

[RFC] Weston sprite support

2012-01-06 Thread Jesse Barnes
I just wanted to get a direction check on this, there are still many open questions. The overall goal here is to be able to use overlay planes to display surfaces at repaint time if possible. For long lived surfaces getting lots of changes, this can be a big power win since the plane blender is a

Call for desktop/graphics/mobile tracks for Linux Plumbers' Conf 2011

2011-05-09 Thread Jesse Barnes
be sure to submit it soon. Early registration for LPC is open until June 1st, so regardless of whether you're submitting a topic, if you see discussions or proposed talks of interest to you, be sure to register soon to get the discounted rate. Thanks, Jesse Barn

Re: Future desktop on dumb frame buffers?

2011-03-21 Thread Jesse Barnes
additional features it would provide (output > > management, memory management, execution management) > > 3) its got documentation Jeez, some people want it all. You looking for docs for the ioctls and such? -- Jesse Barnes, Intel Open Source Technology Center

Re: Future desktop on dumb frame buffers?

2011-03-21 Thread Jesse Barnes
ich makes reallocation of the framebuffer somewhat difficult. IIRC plymouth or whatever Fedora is using these days uses the KMS APIs though... -- Jesse Barnes, Intel Open Source Technology Center ___ wayland-devel mailing list wayland-devel@l

Re: Future desktop on dumb frame buffers?

2011-03-21 Thread Jesse Barnes
On Mon, 21 Mar 2011 20:50:20 +0100 Geert Uytterhoeven wrote: > On Mon, Mar 21, 2011 at 20:25, Jesse Barnes wrote: > > On Mon, 21 Mar 2011 19:19:43 + > > timofonic timofonic wrote: > >> So if KMS is so cool and provides many advantages over fbdev and > >> s

Re: Future desktop on dumb frame buffers?

2011-03-21 Thread Jesse Barnes
On Mon, 21 Mar 2011 19:19:43 + timofonic timofonic wrote: > So if KMS is so cool and provides many advantages over fbdev and > such... Why isn't more widely used intead of still relying on fbdev? > Why still using fbdev emulation (that is partial and somewhat broken, > it seems) instead using

Re: Future desktop on dumb frame buffers?

2011-03-21 Thread Jesse Barnes
not like we can't do > "advanced" things like compositing using the CPU. Transparency may stretch > it a bit on lower end CPUs, but you don't always need that. There's nothing in DRM that precludes doing simple fbdev-like drivers as well, though

Re: Some of my thoughts on input for wayland

2011-01-24 Thread Jesse Barnes
to deprecate older input > protocols over time. I heard something like that was proposed at the recent Khronos meeting; it sounded like STREAMS but for input, maybe krh can point you at the proceedings or something, it seemed like a potentially reasonable way of handling the variety of input nee