Fw: radeon driver GLX pixmap support

Stephen Winiecki stevewin at us.ibm.com
Mon Feb 11 10:53:04 PST 2008


Michel Dänzer <michel at tungstengraphics.com> wrote on 02/11/2008 11:19:26 
AM:

> 
> On Mon, 2008-02-11 at 10:58 -0500, Stephen Winiecki wrote:
> > Michel Dänzer <michel at tungstengraphics.com> wrote on 02/11/2008 
08:18:30 
> > AM:
> > 
> > > On Fri, 2008-02-08 at 16:34 -0500, Stephen Winiecki wrote: 
> > > > It is my understanding that the current open source radeon driver 
does 
> > not 
> > > > have GLX pixmap support, but it is being worked on?  Can someone 
> > provide 
> > > > status or a pointer to discussion of this support being added?
> > > 
> > > The biggest roadblock is the pending DRI2 rework, and porting the 
radeon
> > > driver(s) to it.
> > 
> > Thanks for your response.  Can you provide a bit more detail on the 
actual 
> > issue?  Are you saying that without the new DRI2 implementation this 
> > function cannot be supported by the driver? 
> 
> Exactly.

OK - Thanks.  I've looked and wasn't able to find any info on the issue of 
the missing pixmap support.  Is there any specific discusion on it you are 
aware of and can point to?  Is it part of a DRI2 definition/discussion?

> 
> > > > Also - someone told me that ARGB8888 cannot be configured in GLX 
(they 
> > 
> > > > were using PPC, Xorg 7.1.1).  Is this true?
> > > 
> > > Not per se - I'm typing this on a PowerBook running compiz with some
> > > partially translucent ARGB8888 windows. :) I'm using more or less
> > > current Git snapshots though, but this has been working at least 
since
> > > xserver 1.3 or thereabouts. We'd need to get more information about 
this
> > > problem.
> > Debian Etch is being used - xserver-xorg = 7.1.0-19, xserver-xorg-core 
= 
> > 1.1.1-21.  So we may need an upgraded xserver for this to work?
> 
> Maybe, though I wouldn't think so.
> 
> > In some test code, glXChooseVisual is failing when configured for 
RGBA8888 
> > as follows:
> > 
> >         int cfg_attr[] = {
> >                 GLX_RGBA,
> >                 GLX_DOUBLEBUFFER,
> > #ifdef RGBA8888
> >                 // RGBA8888: 32bits per pixel
> >                 GLX_BUFFER_SIZE, 32,
> >                 GLX_RED_SIZE, 8,
> >                 GLX_GREEN_SIZE, 8,
> >                 GLX_BLUE_SIZE, 8,
> >                 GLX_ALPHA_SIZE, 8,
> > #else
> 
> I just modified Mesa's progs/xdemos/glxgears.c to use these attributes,
> and it works. Are you running in depth 24 and with AIGLX and the
> Composite extension enabled? What's the output of
> 
> glxinfo | grep 32
> 
Ahhh - depth was not set to 24 (forgot it was set to 16 for another 
unrelated issue).  That fixes the original error.  Thanks.

Now running into something else.  With DRI enabled, getting the following 
error with the testcase (essentially just creating a window) for both 
modes:

libGL warning: 3D driver claims to not support visual 0x4b
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  1 (X_CreateWindow)
  Serial number of failed request:  22
  Current serial number in output stream:  32

glxinfo | grep 32:
libGL warning: 3D driver claims to not support visual 0x4b
OpenGL renderer string: Mesa DRI Radeon 20060327 NO-TCL
0x23 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x24 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None
0x25 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x26 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x27 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x28 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None
0x29 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2a 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x2b 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x2c 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None
0x2d 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2e 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x2f 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x30 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  0  0  0  0  0  0 0 None
0x31 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x32 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  0 16 16 16 16  0 0 Slow
0x4b 32 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 Ncon

With DRI disabled, testcase works with RGB565 configured, but fails with 
RGBA8888:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  1 (X_CreateWindow)
  Serial number of failed request:  15
  Current serial number in output stream:  28

glxinfo | grep 32:
0x25 24 tc  0 32  0 r  y  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x26 24 tc  0 32  0 r  .  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x29 24 dc  0 32  0 r  y  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x2a 24 dc  0 32  0 r  .  .  8  8  8  8  0 16  8 16 16 16 16  0 0 None
0x43 32 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 Ncon





More information about the xorg mailing list