Re: [compiz] compiz composited video and alpha only GLX pixmaps

2007-03-14 Thread Dennis Kasprzyk
Am Montag, 5. März 2007 12:12 schrieb David Reveman:
> I've added a simple plugin to compiz that provides a way to render video
> efficiently on a composited desktop.
>
> A video playback client basically copies video data to a pixmap and sets
> an X property on a client window that describes the image format of the
> data and where it should be rendered.
>
> The compiz video plugin will scale and perform necessary colorspace
> conversions when compositing the desktop.
>
> It provides very efficient playback of video on a composited desktop and
> it requires much less resources than e.g. XVideo as no intermediate
> buffer is required and hence also no accelerated offscreen rendering.
>
> RGB and YV12 image formats are currently supported but it's of course
> very easy to add support for additional formats.
>
> YV12 format requires GL_ARB_fragment_program and 8 bpp alpha only GLX
> pixmap support. The server doesn't provide alpha only pixmaps today. The
> attached patch adds an alternative PICT_a8 visual to composite and that
> is enough for xgl to support alpha only GLX pixmaps (not sure it will
> work with aiglx or nvidia's driver, I would guess not).
>
> Adding an alpha only X visual might be a bad idea. It doesn't cause any
> issues with the clients I've been running but I've seen that GDK thinks
> the server is broken and spits out some warnings when it finds a visual
> with masks set to 0. Might be a better idea to just add the fbconfig and
> no visual but the current GLX code in the server relies on every
> fbconfig having a matching X visual so it will need a bit more work and
> I'd like some feedback before I start doing anything like that.
>
> I've created a patch to mplayer's xv output code that makes it use
> compiz video interface when available. Works pretty well and it even
> dynamically detects when the compiz video interface isn't available
> anymore and then switches to xv instead. Similar patches can easily be
> created for other video playback clients, of course.
>
> - David

I don't know if this is possible, but could xvideo be extended to support 
software generated xvideo adapters? If this would be possible compiz could 
add itself as video adapter and the video players would not need to be 
changed.

Dennis

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] [BUG] blurred decoration for gwd causes drawing artifacts

2007-03-14 Thread Mirco Müller
Am Mittwoch, den 14.03.2007, 12:25 -0400 schrieb David Reveman:

> > For anybody working on blur-related things, take a look at this glitch
> > I encountered:
> > 
> > https://bugs.freedesktop.org/show_bug.cgi?id=10275
> 
> Partial blur only works when stencil buffer bits are available. There's
> currently no way to get decorations blurred but not the shadows without
> a stencil buffer.

It works just fine when I move around a window only over the
desktop/root-window. I'll attach another screencast showing that, if you
want.

> Blur plugin should output something like "No stencil buffer, region
> based blur disabled" if this is the case. There seems to be some other
> drawing artifacts in your videos, which might be a bug that is exposed
> only when stencil buffer bits are not available.

That's another odd observation. compiz does not report about a missing
stencil-buffer on my system (GeForce7900GT, 1.0-9755 driver). All errors
I get at startup-time are these:

  compiz: Failed to load slide: freedesktop
  compiz: video: no 8 bit GLX pixmap format, disabling YV12 image format

Best regards...

Mirco

-- 
email - [EMAIL PROTECTED]
www - http://macslow.thepimp.net
lowfat - http://macslow.thepimp.net/sponsor-it

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] Crash unloading blur

2007-03-14 Thread David Reveman
On Wed, 2007-03-14 at 18:23 +, Mike Dransfield wrote:
> I am getting this crash when unloading compiz by starting
> kwin.  It seems fairly easy to reproduce here.

Do you get the same crash when unloading the blur plugin?

- David

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


[compiz] Crash unloading blur

2007-03-14 Thread Mike Dransfield

I am getting this crash when unloading compiz by starting
kwin.  It seems fairly easy to reproduce here.

I am using nvidia 9755 drivers

(gdb) bt
#0  0x2b9b20e688b0 in write () from /lib/libc.so.6
#1  0x2b9b2088c7bf in ?? () from /usr/lib/libX11.so.6
#2  0x2b9b208842f9 in ?? () from /usr/lib/libX11.so.6
#3  0x2b9b2088438e in _XReply () from /usr/lib/libX11.so.6
#4  0x2b9b206f5ae2 in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGL.so.1
#5  0x2b9b206d008a in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGL.so.1
#6  0x2b9b206f1a04 in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGL.so.1
#7  0x2b9b2148829d in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGLcore.so.1
#8  0x2b9b21487715 in _nv000122gl () from 
//usr/lib64/opengl/nvidia/lib/libGLcore.so.1
#9  0x2b9b21425920 in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGLcore.so.1
#10 0x2b9b21425705 in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGLcore.so.1
#11 0x2b9b2146c1ba in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGLcore.so.1
#12 0x2b9b2148c39c in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGLcore.so.1
#13 0x2b9b2148ff86 in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGLcore.so.1
#14 0x2b9b21489617 in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGLcore.so.1
#15 0x2b9b211db69c in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGLcore.so.1
#16 0x2b9b21187f9f in _nv000534gl () from 
//usr/lib64/opengl/nvidia/lib/libGLcore.so.1
#17 0x2b9b211da1ac in ?? () from 
//usr/lib64/opengl/nvidia/lib/libGLcore.so.1

#18 0x2f5038c2 in blurFiniScreen (p=0x7, s=0x547800) at blur.c:2765
#19 0x004251ac in finiPluginForDisplay (p=0x76ca30, d=0x532f60) 
at plugin.c:217

#20 0x004259a7 in popPlugin () at plugin.c:320
#21 0x0040c445 in eventLoop () at display.c:2062
#22 0x0040a0d8 in main (argc=3, argv=0x7fff8b2db358) at main.c:260


___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] [PATCH] Bug in decoration matching

2007-03-14 Thread David Reveman
On Wed, 2007-03-14 at 16:14 +0100, Cedric wrote:
> Here a patch to fix a bug in decoration matching (no way to match
> type=dock)
> 
> This patch enable removing shadow from dock with something like this:
> !type=dock | any
> 
> http://hibbert.univ-lille3.fr/~cbellegarde/Compiz/dock_shadow.patch

Hey Cedric,

I meant to get back to you on the decoration matching situation. I found
some issues with the decoration plugin as I was integrating your patch.
There's still some issues but it should be better now. The decoration
matching option I added only allow you to disable decorations for
currently decorated windows, in the same way an application can request
that a specific window shouldn't be decorated. There's no way to disable
shadows for windows that are currently not decorated through this
option. I thought that it would be best to provide this functionality
through an additional matching option. I just added and pushed out such
an option.

E.g. disable shadows on dock windows by setting this new shadow_match
option to: "!type=dock"

- David

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


Re: [compiz] [BUG] blurred decoration for gwd causes drawing artifacts

2007-03-14 Thread David Reveman
On Tue, 2007-03-13 at 10:13 +0100, Mirco Müller wrote:
> Greetings everybody!
> 
>   For anybody working on blur-related things, take a look at this glitch
> I encountered:
> 
>   https://bugs.freedesktop.org/show_bug.cgi?id=10275

Partial blur only works when stencil buffer bits are available. There's
currently no way to get decorations blurred but not the shadows without
a stencil buffer.

Blur plugin should output something like "No stencil buffer, region
based blur disabled" if this is the case. There seems to be some other
drawing artifacts in your videos, which might be a bug that is exposed
only when stencil buffer bits are not available.

- David

___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


[compiz] [PATCH] Bug in decoration matching

2007-03-14 Thread Cedric

Here a patch to fix a bug in decoration matching (no way to match type=dock)

This patch enable removing shadow from dock with something like this:
!type=dock | any

http://hibbert.univ-lille3.fr/~cbellegarde/Compiz/dock_shadow.patch

Cedric
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz


[compiz] compiz segfaults using apps using gtk with kde

2007-03-14 Thread Fredrik Carlsson

Hi,

a bug introduced in the last two days seem to have made its way in to git,
it very often segfaults when playing around with gtk-apps such as
gconf-editor and screenlets when using kde and kwd.
Or is this a local problem?

Regards
___
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz