[PATCH weston] compositor: automatically set opaque region for color formats

2012-09-04 Thread Pekka Paalanen
Some color formats are naturally opaque: RGB, XRGB, YUV formats without A channel. For these, automatically set the opaque region to whole surface. Note: If a client first sends a buffer with opaque color format, and then sends another buffer of the same size but with non-opaque color format, the

Re: [PATCH] Wayland X server uses xwayand.conf instead of xorg.conf

2012-09-04 Thread Pekka Paalanen
On Tue, 04 Sep 2012 12:00:09 -0700 Bill Spitzak wrote: > However I then realized that changing the search path would not fix any > xwayland because a "real" installation would not have a $PREFIX anyway, > so there had to be a different method to give wayland a different .conf > file. So at tha

[PATCH] compositor: fix overflow issue when calculate msecs of vblank

2012-09-04 Thread Wang, Quanxian
>From "Quanxian Wang" mailto:quanxian.w...@intel.com>> commit f7b156cef1ed8081df6f25cc0e66c8d7fbf414fc Author: Wang Quanxian Date: Wed Sep 5 11:30:38 2012 +0800 Change int to long to avoid the overflow when calculation vblank msecs secs and nsecs are from vblank event, the number of s

Re: xwayland + radeon = consistent filesystem corruption Re: I'm the only one getting hard drive errors, right?

2012-09-04 Thread darxus
I reproduced the problem with chromium under X, not running wayland. Woo. Just by loading up chromium and playing back a youtube video for a while. (After doing a long smartctl test and fsck of the partition.) [ 4043.097706] EXT4-fs error (device sda1): ext4_ext_search_left:1275: inode #2137400

[PATCH] test-client: initialize input instance.

2012-09-04 Thread U. Artie Eoff
From: "U. Artie Eoff" In seat_handle_capabilities, if input->pointer is not properly initialized, then it will contain an arbitrary value and results in the wl_pointer listener not getting registered if that value is not 0/null. Thus, use calloc to initialize the "input" instance. This fixes ht

Re: [PATCH] test-text-client: fix compile error

2012-09-04 Thread Kristian Høgsberg
On Tue, Sep 04, 2012 at 10:53:07AM -0700, U. Artie Eoff wrote: > From: "U. Artie Eoff" > > Pass surface to text_model_factory_create_text_model. > Fixes https://bugs.freedesktop.org/show_bug.cgi?id=54502 Thanks, applied. Kristian > Signed-off-by: U. Artie Eoff > --- > tests/test-text-client.

Re: [PATCH weston 3/3] compositor: do not round a zero area to non-zero

2012-09-04 Thread Kristian Høgsberg
On Tue, Sep 04, 2012 at 01:55:44PM +0300, Pekka Paalanen wrote: > surface_accumulate_damage() will call surface_compute_bbox() with the > extents of the surface damage region, for transformed surfaces only. If > there is no damage, surface_compute_bbox() will round up the empty > rectangle to a 1x1

Re: [PATCH weston 1/3] xwayland: replace opaque_rect, fix an alpha problem

2012-09-04 Thread Kristian Høgsberg
On Mon, Sep 03, 2012 at 04:48:41PM +0300, Pekka Paalanen wrote: > Remove weston_surface::opaque_rect completely. > > Instead, set the opaque region in xwayland. > > Before this patch, black text in xterm was transparent. Now it is not. > > However, this patch fixes only a part of the alpha probl

Re: [PATCH] toytoolkit: supply correct widget in motion_handler callback

2012-09-04 Thread Kristian Høgsberg
On Sat, Sep 01, 2012 at 04:21:40PM +0200, Philipp Brüschweiler wrote: > --- > clients/window.c | 2 +- > 1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-) Ah yes, nice catch. Committed. Kristian > diff --git a/clients/window.c b/clients/window.c > index 4ddbd2f..330d96f 100644 > --

Re: [PATCH] workspaces: don't segfault on invalid move_surface_to_workspace request

2012-09-04 Thread Kristian Høgsberg
On Sat, Sep 01, 2012 at 04:03:05PM +0200, Philipp Brüschweiler wrote: > Also fixes the off-by-one in toytoolkit that exposed the issue. Thanks, applied. > --- > clients/window.c | 2 +- > src/shell.c | 4 > 2 Dateien geändert, 5 Zeilen hinzugefügt(+), 1 Zeile entfernt(-) > > diff --gi

Re: XWayland on i915GM

2012-09-04 Thread Knut Petersen
I don't think the hardware is the problem. You're compiling Xwayland without debugging symbols so it's a bit tricky to tell what's going on, but my guess is that you're facing the same issues other guys had here on the ml; try to check if you're using the correct version of libxtrans: Sorr

Re: [PATCH] Wayland X server uses xwayand.conf instead of xorg.conf

2012-09-04 Thread Bill Spitzak
Pekka Paalanen wrote: On Mon, 03 Sep 2012 13:36:47 -0700 Bill Spitzak wrote: I think changing the name at the lowest level as I did it is the correct solution. I see no way anybody can use this unless they can tell the x server to ignore any existing xorg.conf file. Changing it at the final

Re: XWayland on i915GM

2012-09-04 Thread Tiago Vignatti
On 09/04/2012 06:56 PM, Knut Petersen wrote: System: Pentium M Dothan, i915GM, linux 3.6-rc*, xorg and wayland/weston fresh git. Could anybody please confirm that xwayland does (or does not) work on that hardware? I don´t have problems to build the software, but any starting x client immediately

[PATCH] test-text-client: fix compile error

2012-09-04 Thread U. Artie Eoff
From: "U. Artie Eoff" Pass surface to text_model_factory_create_text_model. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=54502 Signed-off-by: U. Artie Eoff --- tests/test-text-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-text-client.c b/tests/te

XWayland on i915GM

2012-09-04 Thread Knut Petersen
System: Pentium M Dothan, i915GM, linux 3.6-rc*, xorg and wayland/weston fresh git. Could anybody please confirm that xwayland does (or does not) work on that hardware? I don´t have problems to build the software, but any starting x client immediately kills xwayland: [17:52:09.475] weston 0.9

[PATCH weston 3/3] compositor: do not round a zero area to non-zero

2012-09-04 Thread Pekka Paalanen
surface_accumulate_damage() will call surface_compute_bbox() with the extents of the surface damage region, for transformed surfaces only. If there is no damage, surface_compute_bbox() will round up the empty rectangle to a 1x1 rectangle. Triangles are produced for this 1x1 rectangle intersected wi

[PATCH weston 2/3] compositor: do not duplicate ARRAY_SIZE

2012-09-04 Thread Pekka Paalanen
Signed-off-by: Pekka Paalanen --- src/compositor.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 9befd0f..868afe9 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -55,9 +55,6 @@ #include "../shared/os-compatibility.h

[PATCH weston 1/3] compositor: reduce the number of triangles

2012-09-04 Thread Pekka Paalanen
The intersection of two rectangles is guaranteed to be convex. Therefore we do not need a center vertex for the triangle fan, we can simply use the whatever first vertex the intersection polygon has. This reduces the number of triangles, while still painting the exact same area. While at it, emit_

Re: xwayland + radeon = consistent filesystem corruption Re: I'm the only one getting hard drive errors, right?

2012-09-04 Thread Pavel Sterin
> I agree this all seems incredibly unlikely, and would love suggestions. You probably have already done it, but in case not check your RAM with memcheck and run a long selfcheck on the hdd with smartctl just to be sure. Especially RAM errors can have peculiar effects, i.e I once had a system wo

Re: How to debug the xserver?

2012-09-04 Thread Tiago Vignatti
On 09/03/2012 11:32 PM, Bill Spitzak wrote: Thanks, it seems to be working now. cool. For X I'm getting a lot of black windows that only occasionally update, drawing pieces of their contents as those areas are drawn. I'm not seeing this here. What I was seeing is some glitches, like flash

Re: xwayland + radeon = consistent filesystem corruption Re: I'm the only one getting hard drive errors, right?

2012-09-04 Thread darxus
Somebody mentioned I failed to point out here that both of these, three months apart, mention the same inode: On 09/03, dar...@chaosreigns.com wrote: > [732715.730069] EXT4-fs error (device sda1): ext4_ext_search_left:1275: inode > #21374007: comm flush-8:0: ix (10742) != EXT_FIRST_INDEX (0) (dep

Re: xwayland + radeon = consistent filesystem corruption Re: I'm the only one getting hard drive errors, right?

2012-09-04 Thread darxus
On 09/04, Michel Dänzer wrote: > On Mon, 2012-09-03 at 15:15 -0400, dar...@chaosreigns.com wrote: > > > > I had the latest get masters of everything as of 2012-09-03 08:36 -0400. > > weston commit 8538b22ff4ad8879b4e3288be053508167562859 > > wayland commit 2be6e0ed142bac669398a9ad26d33fa532

Re: [RFC weston] compositor: optimize/simplify shaders

2012-09-04 Thread Pekka Paalanen
On Fri, 31 Aug 2012 16:58:24 +0300 Pekka Paalanen wrote: > I couldn't find exactly duplicated vertices in cliptest, but I found > problems: > > http://people.collabora.com/~pq/geometry-test-1.png > http://people.collabora.com/~pq/geometry-test-2.png > http://people.collabora.com/~pq/geometry-tes