Re: [PATCH xf86-video-intel 5/6] sna/video/textured: Add XV_COLOR_RANGE port attribute

2018-07-04 Thread Ville Syrjälä
On Wed, Jul 04, 2018 at 09:59:18PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Add a new Xv port attribute XV_COLOR_RANGE to select the incoming YUV > quantization range. 0 means limited range (Y: 16-235, Cb/Cr: 16-240), > 1 means full range (0-255). > > Cc: x

Re: [PATCH xserver 5/7] xfree86/modes: Adapt xf86Randr12CrtcComputeGamma() for depth 30.

2018-02-20 Thread Ville Syrjälä
+gamma_slots = palette_red_size / crtc->gamma_size; > +for (i = 0; i < crtc->gamma_size; i++) { > +value = palette[i * gamma_slots].red; That's not going to reach the max index of the palette, and it'll not work correctly when the sizes a

Re: [PATCH xserver 2/4] dri2: Split resource tracking for DRI2Drawable and references to them

2016-02-03 Thread Ville Syrjälä
; then never destroy, and then to allow Clients to explicit manage their > references to DRI2Drawables. > > Signed-off-by: Chris Wilson > Cc: Ville Syrjälä > --- > glx/glxdri2.c | 10 ++-- > hw/xfree86/dri2/dri2.c| 136 > ++--

Re: [PATCH xserver 3/4] dri2: Only create one unnamed reference per Drawable per Client

2016-02-03 Thread Ville Syrjälä
> Link: http://lists.x.org/archives/xorg-devel/2010-November/014783.html > Link: http://lists.x.org/archives/xorg-devel/2010-November/014782.html > Signed-off-by: Chris Wilson > Cc: Ville Syrjälä > --- > hw/xfree86/dri2/dri2.c| 57 >

Re: [PATCH xserver 4/4] dri2: Unblock Clients on Drawable release

2016-02-03 Thread Ville Syrjälä
so the wait never completes. > > Note Present/xshmfence is also suspectible to this race. > > Testcase: dri2-race/manager > Signed-off-by: Chris Wilson > Cc: Ville Syrjälä Reviewed-by: Ville Syrjälä > --- > hw/xfree86/dri2/dri2.c | 3 +++ > 1 file changed, 3 insertio

Re: [PATCH xserver 1/4] dri2: Only invalidate the immediate Window upon SetWindowPixmap

2016-02-03 Thread Ville Syrjälä
gt; Reported-by: Loïc Yhuel > Link: http://lists.x.org/archives/xorg-devel/2015-February/045638.html > Signed-off-by: Chris Wilson > Cc: Ville Syrjälä Seems sane. Reviewed-by: Ville Syrjälä > --- > hw/xfree86/dri2/dri2.c | 5 ++--- > 1 file changed, 2 insertions(+), 3

Re: [PATCH 1/2] Xv: Only stop the adaptors when the Pixmap is finally destroyed

2015-08-13 Thread Ville Syrjälä
how Windows are handled. > > Signed-off-by: Chris Wilson > Cc: Ville Syrjälä Hmm. found this old nugget in my inbox. Looks sane enough, and eliminates duplicated code. Reviewed-by: Ville Syrjälä BTW as sna doesn't use xf86xv it doesn't appear to check the drawable type a

Re: Limit DRI2Drawable reference leak

2015-02-21 Thread Ville Syrjälä
On Sat, Feb 21, 2015 at 10:52:49PM +, Chris Wilson wrote: > On Sun, Feb 22, 2015 at 12:13:38AM +0200, Ville Syrjälä wrote: > > On Sat, Feb 21, 2015 at 09:31:07PM +, Chris Wilson wrote: > > > With the current protocol and implementations, we have to often call > >

Re: Limit DRI2Drawable reference leak

2015-02-21 Thread Ville Syrjälä
f during the Maemo days. Pauli fixed tons of problems in the dri2 code but some of the patches never made it in. These seem somewhat relevant: http://lists.x.org/archives/xorg-devel/2010-November/014783.html http://lists.x.org/archives/xorg-devel/2010-November/014782.html -- Ville Syrjälä syrj.

Re: [Intel-gfx] [PATCH 09/12] Do more checks for proposed flip pixmaps

2014-07-31 Thread Ville Syrjälä
On Thu, Jul 31, 2014 at 08:20:20AM -0700, Keith Packard wrote: > Ville Syrjälä writes: > > > Now that we have mmio flips in the kernel we can start to relax that > > restriction. That still needs a bit more work in the mmio flip code > > but I believe some people work

Re: [Intel-gfx] [PATCH 09/12] Do more checks for proposed flip pixmaps

2014-07-31 Thread Ville Syrjälä
t; > I'll remove the tiling check. Now that we have mmio flips in the kernel we can start to relax that restriction. That still needs a bit more work in the mmio flip code but I believe some people working on just that. We could even change the pix

Re: [PATCH 1/2] xrandr: Use more decimal places when printing various rates

2014-02-20 Thread Ville Syrjälä
On Thu, Feb 20, 2014 at 08:51:57AM -0800, Aaron Plattner wrote: > On 02/20/2014 12:47 AM, Ville Syrjälä wrote: > > On Wed, Feb 19, 2014 at 04:22:19PM -0800, Aaron Plattner wrote: > >> On 05/31/2013 07:01 AM, ville.syrj...@linux.intel.com wrote: > >>> From: Ville Syrjä

Re: [PATCH 1/2] xrandr: Use more decimal places when printing various rates

2014-02-20 Thread Ville Syrjälä
On Wed, Feb 19, 2014 at 04:22:19PM -0800, Aaron Plattner wrote: > On 05/31/2013 07:01 AM, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > Using just one decimal place for dotclock and refresh rates loses quite > > a bit of information. When de

Re: [PATCH] xrandr:an additional decimal for frequencies

2014-02-17 Thread Ville Syrjälä
ght, mode->vSyncStart, mode->vSyncEnd, > mode->vTotal, > mode_refresh (mode)); > } > @@ -3799,7 +3799,7 @@ main (int argc, char **argv) > if (rate == rates[i]) > break; > if (i == nrate) { > - fpr

Re: Fixing the kernels backlight API

2014-02-12 Thread Ville Syrjälä
to do any of the work. > > I don't mean to dissuade you from trying to "fix" this, but actually > getting a solution upstream is going to require a lot of messing > around. > > Talk to Matthew Garrett, if you haven't talked to him, then you > haven't talked to anyone who understands backlights. > > Dave. > ___ > dri-devel mailing list > dri-de...@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel -- Ville Syrjälä Intel OTC ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH] xf86VGAarbiter,vgaHW: Only wrap co-operating VGA drivers

2013-09-12 Thread Ville Syrjälä
rd VGA register, so everyone should be able to use it to opt out of VGA memory decoding and hence we'd never need to disable the entire memory space decoding. That would only leave IO space, but most hardware has a way to access register via MMIO, so IO space decode can often be permanently dis

Re: [PATCH 2/3] composite: Automatically enable backing store support on the screen

2013-09-12 Thread Ville Syrjälä
ol(options, OPTION_BACKING_STORE, > + !noCompositeExtension); > +#endif > } > free(options); > pScreen->backingStoreSupport = useBS ? WhenMapped : NotUseful; > -- > 1.8.3.1 > > ___ > xorg-devel

Re: [PATCH 3/3] composite: Don't double-redirect if someone asks for backing store twice

2013-09-12 Thread Ville Syrjälä
c); > pWin->backStorage = NULL; > -- > 1.8.3.1 > > ___ > xorg-devel@lists.x.org: X.Org development > Archives: http://lists.x.org/archives/xorg-devel > Info: http://lists.x.org/mailman/listinfo/xorg-devel -- Ville Sy

Re: [PATCH 1/3] bs: Set the screen's bs support level to WhenMapped not Always

2013-09-12 Thread Ville Syrjälä
? WhenMapped : NotUseful; > if (serverGeneration == 1) > xf86DrvMsg(pScreen->myNum, from, "Backing store %s\n", > useBS ? "enabled" : "disabled"); > -- > 1.8.3.1 > > _______ > xorg-

Re: An attempt at fixing a bug involving DGA and mouse buttons

2013-01-07 Thread Ville Syrjälä
t; switch (event->subtype) { > case KeyPress: > case KeyRelease: > -- > 1.7.7.6 > > ___ > xorg-devel@lists.x.org: X.Org development > Archives: http://lists.x.org/archives/xorg-devel > Info: http://lists.x.org/mailman/listinfo/xorg-devel -- Ville Syrjälä syrj...@sci.fi http://www.sci.fi/~syrjala/ ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH 5/5] dix: Remove MapUnmapEventsEnabled and friends

2012-09-20 Thread Ville Syrjälä
ime ago, but I suppose it fell through the cracks. But feel free to go with your version ;) Reviewed-by: Ville Syrjälä -- Ville Syrjälä syrj...@sci.fi http://www.sci.fi/~syrjala/ ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org

Re: An attempt at fixing a bug involving DGA and mouse buttons

2012-08-22 Thread Ville Syrjälä
x27;t know the input code very well, so I can't say whether your patch is he right approach or not. But I wonder if it would be enough to move the master check to happen inside DGAProcessKeyboardEvent() and DGAProcessPointerEvent(), after they've called UpdateDeviceState(). -- Ville Syrjäl

Re: [PATCH] dix: Remove DisableMapUnmapEvents code

2012-01-06 Thread Ville Syrjälä
On Sun, Dec 18, 2011 at 06:26:04PM +0200, Ville Syrjälä wrote: > This is now dead code. The only user was eliminated in > commit 193ecc8b453b22b3e60248b9354c768dbd405598. > > Signed-off-by: Ville Syrjälä Ping? -- Ville Syrjälä syrj...@sci.fi http://www.sci

[PATCH 1/4] dri2: Initialize needInvalidate member of DRI2Drawable.

2011-12-18 Thread Ville Syrjälä
From: Rami Ylimäki If the client is not behaving correctly and swaps buffers before getting them, Valgrind will complain about uninitialized memory being used in DRI2InvalidateDrawable. Signed-off-by: Rami Ylimäki Reviewed-by: Ville Syrjälä --- hw/xfree86/dri2/dri2.c |1 + 1 files

[PATCH 4/4] dri2: Invalidate window pixmaps

2011-12-18 Thread Ville Syrjälä
While a redirected window is flipped, its pixmap may still be used as and EGL image and should also get invalidated. When sending invalidate events for a window, also send the events for its pixmap. Signed-off-by: Ville Syrjälä --- glx/glxdri2.c |2 +- hw/xfree86/dri2/dri2.c

[PATCH 2/4] dri2: Always re-generate front buffer information when asked for it.

2011-12-18 Thread Ville Syrjälä
From: Michel Dänzer Otherwise we might keep stale cached information, e.g. after the driver performed page flipping. This is part of the fix for https://bugs.freedesktop.org/show_bug.cgi?id=35452 . Signed-off-by: Michel Dänzer Reviewed-by: Ville Syrjälä Reviewed-by: Mario Kleiner --- hw

DRI2 invalidate patches

2011-12-18 Thread Ville Syrjälä
A bunch of DRI2 invalidate event related patches that fell through the cracks. ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

[PATCH 3/4] dri2: Invalidate DRI2 buffers for all windows with the same pixmap on swap

2011-12-18 Thread Ville Syrjälä
kinds of hilarity. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=35452 . [Original patch by Michel Dänzer ] [Tree walk optimized version by Keith Packard ] Signed-off-by: Ville Syrjälä --- hw/xfree86/dri2/dri2.c | 31 ++- 1 files changed, 30 insertions(

[PATCH] dix: Remove DisableMapUnmapEvents code

2011-12-18 Thread Ville Syrjälä
This is now dead code. The only user was eliminated in commit 193ecc8b453b22b3e60248b9354c768dbd405598. Signed-off-by: Ville Syrjälä --- dix/window.c | 33 +++-- include/window.h |5 - 2 files changed, 3 insertions(+), 35 deletions(-) diff --git a/dix

Re: [PATCH xserver] composite: Update borderClip in compAllocPixmap()

2011-10-20 Thread Ville Syrjälä
want to cherry-pick this for 1.11... -- Ville Syrjälä syrj...@sci.fi http://www.sci.fi/~syrjala/ ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

[PULL xserver] Composite borderClip fix

2011-10-19 Thread Ville Syrjälä
The following changes since commit c8413362049cee8c30e0a9d67f78f9ebefe8e71f: Merge remote-tracking branch 'herrb/master' (2011-10-18 07:45:24 -0700) are available in the git repository at: git://gitorious.org/vsyrjala/xserver.git composite_borderclip Ville Syrjala (1): composite: Upda

Re: [PATCH] Revert "composite: Don't backfill non-MapWindow allocations"

2011-07-29 Thread Ville Syrjälä
draw_x, int > > draw_y, > > pix_h = h + (bw<< 1); > > if (pix_w != pOld->drawable.width || pix_h != pOld->drawable.height) > > { > > - pNew = compNewPixmap (pWin, pix_x, pix_y, pix_w, pix_h, FALSE); > > + pNew = compNewPixmap (pWin, pix_x, pix_y, pix_w, pix_h); > > if (!pNew) > > return FALSE; > > cw->pOldPixmap = pOld; -- Ville Syrjälä syrj...@sci.fi http://www.sci.fi/~syrjala/ ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH xserver] composite: Inhibit window background paint with manual subwindow redirection

2011-07-29 Thread Ville Syrjälä
On Sat, Jul 23, 2011 at 04:00:11PM +0300, Ville Syrjälä wrote: > On Fri, Jul 22, 2011 at 02:49:54PM -0400, Owen Taylor wrote: > > On Thu, 2011-07-21 at 00:24 +0300, Ville Syrjälä wrote: > > > > I did actually have to see it live to figure out what was going on ... > >

Re: [PATCH xserver] composite: Inhibit window background paint with manual subwindow redirection

2011-07-23 Thread Ville Syrjälä
On Fri, Jul 22, 2011 at 02:49:54PM -0400, Owen Taylor wrote: > On Thu, 2011-07-21 at 00:24 +0300, Ville Syrjälä wrote: > > > I did actually have to see it live to figure out what was going on ... > > > but once I saw it, and thought about it a bit, I was able to avoid

Re: [PATCH xserver] composite: Inhibit window background paint with manual subwindow redirection

2011-07-20 Thread Ville Syrjälä
On Wed, Jul 20, 2011 at 05:06:24PM -0400, Owen Taylor wrote: > On Wed, 2011-07-20 at 10:44 -0400, Owen Taylor wrote: > > On Wed, 2011-07-20 at 02:54 +0300, Ville Syrjälä wrote: > > > > > BTW I noticed afterwards that this doesn't help all apps. Evince, for > >

Re: [PATCH xserver] composite: Inhibit window background paint with manual subwindow redirection

2011-07-19 Thread Ville Syrjälä
On Tue, Jul 19, 2011 at 06:01:21PM -0400, Owen Taylor wrote: > On Fri, 2011-05-06 at 18:19 +0300, ville.syrj...@nokia.com wrote: > > From: Ville Syrjälä > > > > The composite extension spec says that window background painting > > should be inhibited when the subwindow

Re: [PATCH xf86-video-ati 2/2] kms: Move flip_count and co. to a per swap structure

2011-06-10 Thread Ville Syrjälä
uint32_t tiling_flags = 0; > >        int height; > > +       drmmode_flipdata_ptr flipdata; > >        drmmode_flipevtcarrier_ptr flipcarrier; > > > >        if (info->allowColorTiling) { > > @@ -1676,6 +1678,12 @@ Bool radeon_do_pageflip(ScrnInfoPtr scrn, st

Re: [PATCH xf86-video-ati 1/2] dri2: Update front buffer pixmap and name before exchanging buffers

2011-05-30 Thread Ville Syrjälä
On Thu, May 05, 2011 at 05:30:23PM +0300, Ville Syrjälä wrote: > On Thu, May 05, 2011 at 12:28:20PM +0200, Michel Dänzer wrote: > > On Mit, 2011-05-04 at 23:51 +0300, Ville Syrjala wrote: > > > Buffer exchange assumes that the front buffer pixmap and name > > > inform

Re: X server merge window extended until 5/31?

2011-05-26 Thread Ville Syrjälä
27663-1-git-send-email-ville.syrj...@nokia.com> Also the DRI2 patches you and Michel bounced around seem to have dropped through the cracks. -- Ville Syrjälä syrj...@sci.fi http://www.sci.fi/~syrjala/ ___ xorg-devel@lists.x.org: X.Org develo

Re: [PATCH xserver] composite: Inhibit window background paint with manual subwindow redirection

2011-05-19 Thread Ville Syrjälä
On Fri, May 06, 2011 at 06:19:34PM +0300, ville.syrj...@nokia.com wrote: > From: Ville Syrjälä > > The composite extension spec says that window background painting > should be inhibited when the subwindow redirection mode is set to > manual. > > This eliminates the ugly

Re: More DRI2 invalidate stuff

2011-05-09 Thread Ville Syrjälä
s its GetBuffers and invalidate events. It's all the other drawables which have a DRI2 drawable and share the same pixmap, that get hammered with the unwanted invalidate events. -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: xf86-video-ati page flipping fixes

2011-05-05 Thread Ville Syrjälä
On Thu, May 05, 2011 at 06:33:11PM +0200, ext Mario Kleiner wrote: > > On May 5, 2011, at 6:06 PM, Ville Syrjälä wrote: > > > On Thu, May 05, 2011 at 05:09:56PM +0200, Mario Kleiner wrote: > >> On May 5, 2011, at 4:23 PM, Ville Syrjälä wrote: > >> > >>

Re: xf86-video-ati page flipping fixes

2011-05-05 Thread Ville Syrjälä
share their back buffers > > when page flipping is on. > > Is this workaround needed on the Intel driver too? Or is this just a > driver bo name tracking bug? I don't have Intel hw for testing, but as the code looks to be simply copy-pasted from one driver to the other, I&

Re: xf86-video-ati page flipping fixes

2011-05-05 Thread Ville Syrjälä
On Thu, May 05, 2011 at 05:09:56PM +0200, Mario Kleiner wrote: > On May 5, 2011, at 4:23 PM, Ville Syrjälä wrote: > > > On Thu, May 05, 2011 at 11:46:45AM +0200, Michel Dänzer wrote: > >> On Mit, 2011-05-04 at 23:51 +0300, Ville Syrjala wrote: > >>> I came to the

Re: [PATCH xf86-video-ati 1/2] dri2: Update front buffer pixmap and name before exchanging buffers

2011-05-05 Thread Ville Syrjälä
>pScreen->DestroyPixmap)(priv->pixmap); > > +front->pitch = pixmap->devKind; > > +front->cpp = pixmap->drawable.bitsPerPixel / 8; > > +priv->pixmap = pixmap; > > + > > +return TRUE; > > +} > > Maybe at least some of this

Re: xf86-video-ati page flipping fixes

2011-05-05 Thread Ville Syrjälä
buffers updated for other windows sharing the same > pixmap? As the real front buffers are not handed out to clients, there isn't that much reason to update them. Making sure the fake front buffer contain a more recent snapshot of the real front would be one reason though. -

[PULL xserver] Composite ClipNotify fix and expose event elimination

2011-05-04 Thread Ville Syrjälä
+++- 3 files changed, 116 insertions(+), 55 deletions(-) -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH xserver 2/2] dri2: Invalidate DRI2 buffers for all windows with the same pixmap on swap.

2011-05-03 Thread Ville Syrjälä
+ (*draw->pScreen->DestroyPixmap)(priv->pixmap); + front->pitch = pixmap->devKind; + front->cpp = pixmap->drawable.bitsPerPixel / 8; + priv->pixmap = pixmap; +} + /* radeon_dri2_frame_event_handler will get called some unknown time in the * future with these buffers.

Re: [PATCH v3 1/6] composite: Call ValidateGC after ChangeGC

2011-04-18 Thread Ville Syrjälä
it > message. Sure, I'll note in in the commit message. -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

[PULL xserver] DRI2 fixes

2011-04-14 Thread Ville Syrjälä
The following changes since commit b2997431fd426ab318bc5dfd2cd43956d733ebec: Send events that were missing from RRSelectInput (2011-04-13 19:04:32 -0700) are available in the git repository at: git://gitorious.org/vsyrjala/xserver.git dri2_fixes Ville Syrjälä (2): dri2: Handle calloc

Re: [PATCH xserver] dri2: Invalidate DRI2 buffers for all windows with the same pixmap on swap.

2011-03-25 Thread Ville Syrjälä
On Fri, Mar 25, 2011 at 03:32:06PM +0100, ext Michel Dänzer wrote: > On Fre, 2011-03-25 at 14:47 +0200, Ville Syrjälä wrote: > > On Fri, Mar 25, 2011 at 12:35:37PM +0100, ext Michel Dänzer wrote: > > > From: Michel Dänzer > > > > > > Without this, when

Re: [PATCH xserver] dri2: Invalidate DRI2 buffers for all windows with the same pixmap on swap.

2011-03-25 Thread Ville Syrjälä
On Fri, Mar 25, 2011 at 06:10:42AM -0700, ext Jakob Bornecrantz wrote: > On Mar 25, 2011, at 13:47, Ville Syrjälä wrote: > > On Fri, Mar 25, 2011 at 12:35:37PM +0100, ext Michel Dänzer wrote: > >> From: Michel Dänzer > >> > >> Without this, when a composit

Re: [PATCH xserver] dri2: Invalidate DRI2 buffers for all windows with the same pixmap on swap.

2011-03-25 Thread Ville Syrjälä
pixmaps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While a redirected window is flipped, it's pixmap may still be used as and EGL image and should also get invalidated. When sending invalidate events for a window, also send the events for it's

Re: ProcDamageCreate emits a damage event - why?

2011-03-23 Thread Ville Syrjälä
clip. There is at least one issue with the current implementation; It sends the event to all clients who are interested in the same window. So if you fire up your vnc screen scraper, your composite manager thinks it has to redraw the window. I think that at least should be fixed. -- Ville Sy

Re: What's up with Xv cliprects?

2011-03-23 Thread Ville Syrjälä
still end up in the correct areas. Well, assuming the drawable serial and scratch GC serial aren't identical. -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH 4/4] dix: Make InputOnly window checking more consistent

2011-03-07 Thread Ville Syrjälä
g that should be fixed anyway. I fear you pretty much have to review every piece of code that checks the drawable type. -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: RandR 1.4 restart

2011-03-01 Thread Ville Syrjälä
owing windows to use the scanout pixmaps as their backing pixmap? I'm mainly interested in something that would allow unredirected 32bpp windows on a 16bpp screen. -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PULL xserver] Composite ClipNotify fix and expose event elimination

2011-02-25 Thread Ville Syrjälä
On Thu, Feb 24, 2011 at 07:17:28PM -0800, ext Keith Packard wrote: > On Thu, 24 Feb 2011 17:38:53 +0200, Ville Syrjälä > wrote: > > > Ville Syrjälä (4): > > composite: Call ValidateGC after ChangeGC > > composite: Initialize borderClip with current values

[PULL xserver] Composite ClipNotify fix and expose event elimination

2011-02-24 Thread Ville Syrjälä
595673: test: write some event → XI1 conversion tests. (2011-02-22 08:08:55 +1000) are available in the git repository at: git://gitorious.org/vsyrjala/xserver.git composite_validatetree Ville Syrjälä (4): composite: Call ValidateGC after ChangeGC composite: Initialize borderClip with

Re: [PATCH v2 08/10] dri2: Send events only to known clients

2011-02-15 Thread Ville Syrjälä
On Tue, Feb 15, 2011 at 09:18:36AM +0200, Pauli Nieminen wrote: > On 14/02/11 21:06 +0200, Ville Syrjälä wrote: > > On Tue, Feb 08, 2011 at 11:42:54PM +0200, ext Pauli wrote: > > > From: Pauli Nieminen > > > > > > If client disconnects and new client

Re: [PATCH v2 03/10] dri2: Change driver interface to support DRI2Drawable

2011-02-14 Thread Ville Syrjälä
On Thu, Feb 10, 2011 at 06:22:24PM +0200, Pauli Nieminen wrote: > On 10/02/11 17:40 +0200, Ville Syrjälä wrote: > > On Tue, Feb 08, 2011 at 11:42:49PM +0200, ext Pauli wrote: > > > From: Pauli Nieminen > > > > > > void > > > -DRI2WaitMSCComplete(C

Re: [PATCH v2 08/10] dri2: Send events only to known clients

2011-02-14 Thread Ville Syrjälä
v, > CARD64 target_msc, > ret = (*ds->ScheduleWaitMSC)(client, pDraw, target_msc, divisor, > remainder, client); > if (!ret) { > pPriv->refcnt--; > + cleanup_client_event(pEvent); > + free(pEvent); > return BadDrawable; > } >

Re: [PATCH v2 09/10] dri2: copy front to fake front in SwapBuffers

2011-02-14 Thread Ville Syrjälä
wable(pPriv); > > +DRI2CopyFrontToFakeFront(pDraw, pPriv); Looks to me like the ati and intel drivers won't like this change since they don't exchange the buffer names until the vblank event is received. I'd say those drivers just need fixing. > return Success; > } > > -- >

Re: [PATCH v2 05/10] dri2: Keep DRI2Drawable resource allocated until creator frees it

2011-02-10 Thread Ville Syrjälä
indow' from the caller. > + > +if (type == DRAWABLE_WINDOW) { > for (i = 0; i < count; i++) { > /* Do not send the real front buffer of a window to the client. > */ > @@ -267,7 +270,7 @@ send_buffers_reply(ClientPtr client, DRI2DrawablePtr > pPriv, > >

Re: [PATCH v2 03/10] dri2: Change driver interface to support DRI2Drawable

2011-02-10 Thread Ville Syrjälä
(pPriv, buffers[i]); > } > > free(buffers); > @@ -684,14 +696,11 @@ DRI2CanExchange(DrawablePtr pDraw) > } > > void > -DRI2WaitMSCComplete(ClientPtr client, DrawablePtr pDraw, int frame, > - unsigned int tv_sec, unsi

Re: [PATCH v4 0/6] xf86/xv: Fixing XV auto key filling to track exposes

2011-01-26 Thread Ville Syrjälä
ets reviewed > I will create more patches to convert other drivers too. > This set looks good to me. Reviewed-by: Ville Syrjälä > Pauli Nieminen (6): > xf86/xv: Remove copy paste code. > xf86/xv: Remove unused GC pointers > xf86/xv: Remove unused variable from XvPortRe

Re: [PATCH v3 4/6] xf86/xv: Fill color key on expose

2011-01-24 Thread Ville Syrjälä
e (pDraw, key, fillboxes); RegionCopy(pPriv->ckeyFilled, clipboxes); if (fillboxes == ®) RegionUninit(®); } -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: Fix DGA events

2011-01-23 Thread Ville Syrjälä
> screen while in DGA2 mode. > > merged the series, thanks. > > fixed up the copy/paste error in 06/11, don't worry about sending another > patch for that. Thanks. Apprently I didn't look at the events too closely on the client side, and my test app's visual feed

Re: [PATCH v3 4/6] xf86/xv: Fill color key on expose

2011-01-20 Thread Ville Syrjälä
nter data, RegionPtr clipboxes, > RegionPtr fillboxes); > > extern _X_EXPORT Bool > xf86XVClipVideoHelper( > diff --git a/hw/xfree86/common/xf86xvpriv.h b/hw/xfree86/common/xf86xvpriv.h > index 4572218..3f1106d 100644 > --- a/hw/xfree86/common/xf86xvpriv.h > +++ b/hw/xfree86/common/xf86xvpriv.h > @@ -68,6 +68,7 @@ typedef struct { > unsigned char type; > unsigned int subWindowMode; > RegionPtr clientClip; > + RegionPtr ckeyFilled; > RegionPtr pCompositeClip; > Bool FreeCompositeClip; > XvAdaptorRecPrivatePtr AdaptorRec; > -- > 1.7.0.4 > > ___ > xorg-devel@lists.x.org: X.Org development > Archives: http://lists.x.org/archives/xorg-devel > Info: http://lists.x.org/mailman/listinfo/xorg-devel -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH v2 4/6] xf86/xv: Fill color key on expose

2011-01-18 Thread Ville Syrjälä
> xf86XVClipVideoHelper( > diff --git a/hw/xfree86/common/xf86xvpriv.h b/hw/xfree86/common/xf86xvpriv.h > index 4572218..563b55a 100644 > --- a/hw/xfree86/common/xf86xvpriv.h > +++ b/hw/xfree86/common/xf86xvpriv.h > @@ -72,6 +72,7 @@ typedef struct { > Bool FreeCompositeClip; > XvAdaptorRecPrivatePtr AdaptorRec; > XvStatus isOn; > + RegionRec exposedAreas; > int vid_x, vid_y, vid_w, vid_h; > int drw_x, drw_y, drw_w, drw_h; > DevUnion DevPriv; > -- > 1.7.0.4 > > ___ > xorg-devel@lists.x.org: X.Org development > Archives: http://lists.x.org/archives/xorg-devel > Info: http://lists.x.org/mailman/listinfo/xorg-devel -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH v2 4/6] xf86/xv: Fill color key on expose

2011-01-18 Thread Ville Syrjälä
boxes, > RegionPtr fillboxes); > > extern _X_EXPORT Bool > xf86XVClipVideoHelper( > diff --git a/hw/xfree86/common/xf86xvpriv.h b/hw/xfree86/common/xf86xvpriv.h > index 4572218..563b55a 100644 > --- a/hw/xfree86/common/xf86xvpriv.h > +++ b/hw/xfree86/common/xf86xvpriv

[PULL xserver] Trigger automatic redirection updates on GetImage and SourceValidate (v5)

2011-01-05 Thread Ville Syrjälä
The following changes since commit 0dede200c9ac7adbe8b8c16efacc3edc1f183cd9: Merge remote branch 'vsyrjala/misc_fixes' (2011-01-05 08:51:46 -0800) are available in the git repository at: git://gitorious.org/vsyrjala/xserver.git composite_getimage_sourcevalidate_v5 Ville

Re: [PATCH v4 1/7] Add subWindowMode parameter to SourceValidate

2011-01-05 Thread Ville Syrjälä
I can resolve the conflicts. -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH v4 6/7] composite: Use DamageSetReportAfterOp

2011-01-05 Thread Ville Syrjälä
On Wed, Jan 05, 2011 at 08:34:12AM -0800, ext Keith Packard wrote: > On Wed, 5 Jan 2011 15:51:36 +0200, ville.syrj...@nokia.com wrote: > > From: Ville Syrjälä > > > > Use the "report after" damage mode for marking the automatically > > redirected as da

Re: [PULL xserver] Misc. DRI2 and RandR fixes

2011-01-05 Thread Ville Syrjälä
On Wed, Jan 05, 2011 at 04:19:28PM +, ext Daniel Stone wrote: > On Wed, Jan 05, 2011 at 06:04:05PM +0200, Ville Syrjälä wrote: > > On Thu, Dec 30, 2010 at 03:49:13PM +0200, Ville Syrjälä wrote: > > > The following changes since commit > > > efcb63d0ce43f

Re: [PULL xserver] Misc. DRI2 and RandR fixes

2011-01-05 Thread Ville Syrjälä
On Thu, Dec 30, 2010 at 03:49:13PM +0200, Ville Syrjälä wrote: > The following changes since commit efcb63d0ce43f96d0ac02b6f4a480dfd2374fc84: > > Render: Fix 'comparing between distinct pointer types' warning (2010-12-27 > 09:44:07 -0800) > > are available in th

Re: [PATCH v3 5/7] composite: Add SourceValidate wrapper

2011-01-04 Thread Ville Syrjälä
On Tue, Jan 04, 2011 at 05:55:51PM +0200, ville.syrj...@nokia.com wrote: > From: Ville Syrjälä > > When SourceValidate is performed on a window with IncludeInferiors > sub-window mode, force an immediate update of all the automatically > redirected windows, so that the current

Re: [PATCH v3 7/7] composite: Provide a CopyArea based compWindowUpdateAutomatic

2011-01-04 Thread Ville Syrjälä
On Tue, Jan 04, 2011 at 08:16:18AM -0800, ext Keith Packard wrote: > On Tue, 4 Jan 2011 17:55:53 +0200, ville.syrj...@nokia.com wrote: > > From: Ville Syrjälä > > > > Use CopyArea in compWindowUpdateAutomatic if the window and parent > > depths match. It appears E

Re: [PATCH v2 5/6] composite: Support updating an arbitrary subtree

2011-01-03 Thread Ville Syrjälä
On Mon, Jan 03, 2011 at 09:21:40AM -0800, Keith Packard wrote: > On Mon, 3 Jan 2011 15:54:54 +0200, Ville Syrjälä > wrote: > > > How about this? Stills leaves the compChildrenUpdate name there > > though. > > Yeah, the structure looks good. I still don't like

Re: [PATCH v2 5/6] composite: Support updating an arbitrary subtree

2011-01-03 Thread Ville Syrjälä
r since the root > > window's 'damagedDescendants' provides the same information. > > > Signed-off-by: Ville Syrjälä > > This seems like a reasonable optimization to me, reducing the cost of > having any CompositeRedirectAutomatic windows on the screen. &g

Re: [PATCH v2 4/6] composite: Add SourceValidate wrapper

2011-01-03 Thread Ville Syrjälä
On Fri, Dec 31, 2010 at 01:42:16PM -0800, ext Keith Packard wrote: > On Fri, 31 Dec 2010 16:49:37 +0200, ville.syrj...@nokia.com wrote: > > From: Ville Syrjälä > > > > When SourceValidate is performed on a window with IncludeInferiors > > sub-window mode, force an

Re: [PATCH v2 5/6] composite: Support updating an arbitrary subtree

2011-01-03 Thread Ville Syrjälä
r since the root > > window's 'damagedDescendants' provides the same information. > > > Signed-off-by: Ville Syrjälä > > This seems like a reasonable optimization to me, reducing the cost of > having any CompositeRedirectAutomatic windows on the screen. &g

Re: Composite ClipNotify fix and expose event elimination (v2)

2011-01-03 Thread Ville Syrjälä
On Mon, Dec 27, 2010 at 03:24:09PM +0200, ville.syrj...@nokia.com wrote: > Patch 4/4 was modified to accomodate the review comments. The rest > remain unchanged. Were there still open issues with this set? -- Ville Syrjälä ___ xorg-devel@lists

Re: [PATCH 2/4] composite: Support updating an arbitrary subtree

2010-12-31 Thread Ville Syrjälä
On Thu, Dec 30, 2010 at 10:34:22AM -0800, ext Keith Packard wrote: > On Thu, 30 Dec 2010 14:56:19 +0200, Ville Syrjälä > wrote: > > On Wed, Dec 29, 2010 at 01:05:02PM -0800, ext Keith Packard wrote: > > > On Wed, 29 Dec 2010 15:04:29 +0200, ville.syrj...@nokia.com wrote

[PULL xserver] Misc. DRI2 and RandR fixes

2010-12-30 Thread Ville Syrjälä
The following changes since commit efcb63d0ce43f96d0ac02b6f4a480dfd2374fc84: Render: Fix 'comparing between distinct pointer types' warning (2010-12-27 09:44:07 -0800) are available in the git repository at: git://gitorious.org/vsyrjala/xserver.git misc_fixes Ville Syrjälä (2):

Re: [PATCH 2/4] composite: Support updating an arbitrary subtree

2010-12-30 Thread Ville Syrjälä
On Wed, Dec 29, 2010 at 01:05:02PM -0800, ext Keith Packard wrote: > On Wed, 29 Dec 2010 15:04:29 +0200, ville.syrj...@nokia.com wrote: > > From: Ville Syrjälä > > > > Rename compScreenUpdate to compChildrenUpdate, and pass a window as > > the parameter. This allows

Re: Trigger automatic redirection updates on GetImage and SourceValidate

2010-12-29 Thread Ville Syrjälä
GetImage works. CopyArea is yet to be tested. Just added a quick CopyArea test to my test app. Without the SourceValidate patch stale pixels are copied, and with the patch I get the correct pixels. So seems to work as expected. -- Ville Syrjälä ___ xorg-de

Re: [PATCH modular 14/14] build.sh: verify PREFIX is a directory and is writable

2010-12-29 Thread Ville Syrjälä
OCALSTATEDIR > > +# This will catch the case where user forgets to set PREFIX > +# and does not have write permission in the /usr/local default location > +check_writable_dir $PREFIX PREFIX Seems like it should check ${DESTDIR}${PREFIX} instead. --

Re: [PATCH 2/4] composite: Support updating an arbitrary subtree

2010-12-29 Thread Ville Syrjälä
gt; > + if (pWin == pScreen->root) > > + cs->damaged = FALSE; > > compWindowUpdate walks all the children itself, so you should be able to > replace the for loop with a simple compWindowUpdate(pWin). compWindowUpdate would cause pWin contents to be copied to it'

Re: [RFC][PATCH] dix/composite: Update windows with automatically redirected children on demand

2010-12-27 Thread Ville Syrjälä
On Mon, Dec 27, 2010 at 11:11:58AM -0800, ext Keith Packard wrote: > On Mon, 27 Dec 2010 20:45:39 +0200, Ville Syrjälä > wrote: > > > Could be overwritten fully, partially, or not at all, depending on > > the operation and GC clipping, I suppose? If any part of it gets >

Re: [RFC][PATCH] dix/composite: Update windows with automatically redirected children on demand

2010-12-27 Thread Ville Syrjälä
On Mon, Dec 27, 2010 at 08:45:39PM +0200, Ville Syrjälä wrote: > On Mon, Dec 27, 2010 at 10:25:17AM -0800, ext Keith Packard wrote: > > On Mon, 27 Dec 2010 15:27:10 +0200, ville.syrj...@nokia.com wrote: > > > Instead of trying to identify all parts of the code that have that >

Re: [PATCH v2 4/4] composite: Copy the window contents back from the pixmap

2010-12-27 Thread Ville Syrjälä
On Mon, Dec 27, 2010 at 10:45:35AM -0800, ext Keith Packard wrote: > On Mon, 27 Dec 2010 20:30:06 +0200, Ville Syrjälä > wrote: > > > We're going through this codepath when getting rid of an implicitly > > redirected window. That is at least one case where the dept

Re: [RFC][PATCH] dix/composite: Update windows with automatically redirected children on demand

2010-12-27 Thread Ville Syrjälä
e calls SourceValidate > sometimes to patch-up the missing calls from CopyArea.) > > I'd say a combination of SourceValidate and GetImage wrappers would do > the trick nicely here. > > -- > keith.pack...@intel.com -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH v2 4/4] composite: Copy the window contents back from the pixmap

2010-12-27 Thread Ville Syrjälä
0x00022f88 in DeleteWindow (value=0x3dded0, wid=4194306) at ../../dix/window.c:905 #6 0x00030030 in FreeClientResources (client=0x3eac88) at ../../dix/resource.c:859 #7 0x0007c700 in CloseDownClient (client=0x3eac88) at ../../dix/dispatch.c:3490 #8 0x00073494 in Dispatch () at ../../dix/dispatch.c:417 #9 0x000207ac in main (argc=16, argv=0xaec4cdd4, envp=0xaec4ce18) at ../../dix/main.c:291 (gdb) p pWin->drawable.depth $5 = 32 ' ' (gdb) p pWin->parent->drawable.depth $6 = 16 '\020' (gdb) -- Ville Syrjälä ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: [PATCH v2 4/4] composite: Copy the window contents back from the pixmap

2010-12-27 Thread Ville Syrjälä
x, y, w, h, 0, 0); > > + FreeScratchGC (pGC); > > + } > > +} > > +} > > It might be nice to get the Render fallback path for non-matching depths > here; AFAICS that shouldn't be needed as unredirecting a non-matching depth window would always

Re: Composite ClipNotify fix and expose event elimination

2010-12-21 Thread Ville Syrjälä
On Mon, Dec 20, 2010 at 10:34:34AM -0800, ext Keith Packard wrote: > On Mon, 20 Dec 2010 20:30:34 +0200, Ville Syrjälä > wrote: > > > Yeah. I'm not 100% sold on that myself yet. miValidateTree & co. don't > > seem to sink in without some conscious effort.

Re: [PATCH 4/4] composite: Copy the window contents back from the pixmap

2010-12-20 Thread Ville Syrjälä
on and the caller should be > responsible for fetching the pixmap beforehand and freeing afterwards. OK. I'll adjust the patch accordingly. > Alternatively, (and I think this is uglier), compCheckRedirect could > bump the pixmap ref count before

Re: Composite ClipNotify fix and expose event elimination

2010-12-20 Thread Ville Syrjälä
the xv stuff etc. You can run it, for example, like so: 'xvredirect -F -d -s -b 10` You can input 'm'/'a'/'u' for manual/automatic/unredirected redirection for the middle sibling. 'M'/'A'/'U' to do the same for the top level window. It will p

Re: [PATCH 3/4] composite: Get rid of the internal UnmapWindow+MapWindow cycle

2010-12-20 Thread Ville Syrjälä
On Mon, Dec 20, 2010 at 01:04:07PM -0500, ext Adam Jackson wrote: > On Mon, 2010-12-20 at 18:05 +0200, ville.syrj...@nokia.com wrote: > > From: Ville Syrjälä > > > > Eliminate the internal MapWindow+UnmapWindow cycle around window > > redirection changes. Instead do t

Re: [PATCH] xfree86/modes: Take rotation into account when checking mode size

2010-12-16 Thread Ville Syrjälä
On Thu, Dec 16, 2010 at 01:50:25PM +0200, ext ville.syrj...@nokia.com wrote: > From: Ville Syrjälä > > Assume that a mode can be used in either landscape or portrait > orientation. I suppose the correct thing to do would be to collect all > the supported rotations from the CRTCs t

  1   2   >