On Fri, 1 Mar 2002, Barry Branham wrote:

> The Mesa-demos RPM contains 'glxinfo.c' which has the line:
>    glXGetConfig(dpy, vInfo, GLX_LEVEL, &attribs->level);
> 
> which is how it determines the 'level' parameter in the listing below.
> SGI open sourced GLX in Feb '99 for XFree86 so why wouldn't it know 
> about overlays?
> It seems to me this is a Matrox driver problem or something in my 
> configuration.

Probably a driver problem.
Last time I had access to a G400 you couldn't have HAL and overlays
at the same time; chances are whoever added overlays with HAL
didn't add level support.
I haven't yet got overlays to work at all on my G550, or GLX on my 
Millennium, so you are well ahead of me.

Is it a level 0 or a level 1 visual that you can't find ?
Reading this, you seem to be suggesting that glXChooseVisual can't find
a visual with a level which glxinfo reports (or are you just claiming 
that we are reporting the wrong level for overlay visuals) ?

I'm also slightly confused that you have visuals with depth 8 but 
buffsize 24; might this be another bug.

> >>I'm having trouble getting an overlay visual with the following code:
> >>
> >>        int n = 0, list[5];
> >>        list[n++] = GLX_LEVEL;                    // overlay planes
> >>        list[n++] = 0;                            // overlay planes
> >>        list[n++] = GLX_BUFFER_SIZE;            // get at least 2 bits
> >>        list[n++] = 2;
> >>        list[n++] = None;
> >>
> >>        vis = glXChooseVisual(XtDisplay(_mgrWidget),
> >>            XScreenNumberOfScreen(XtScreen(_mgrWidget)), list);

> >>Vis  Vis   Visual Trans  buff lev render DB ste  r   g   b   a  aux dep ste  accum 
>buffers  MS   MS
> >> ID Depth   Type  parent size el   type     reo sz  sz  sz  sz  buf th  ncl  r   g 
>  b   a  num bufs
> 
>>>----------------------------------------------------------------------------------------------------
> >>0x25  8 PseudoColor  0     24  0  ci     1   0   0   0   0   0   0   16 0   0   0  
> 0   0   0   0
> >>0x26  8 GrayScale    0     24  0  ci     1   0   0   0   0   0   0   16 0   0   0  
> 0   0   0   0
> >>0x27 24 TrueColor    0     24  0  rgba   1   0   8   8   8   0   0   16 0   0   0  
> 0   0   0   0
> >>0x28 24 TrueColor    0     24  0  rgba   1   0   8   8   8   0   0   16 8  16  16  
>16   0   0   0
> >>
> >>So there is a PseudoColor visual available.  But it's level is 0.  I 
> >>need a GLX_LEVEL 1 visual.

-- 
Dr. Andrew C. Aitchison         Computer Officer, DPMMS, Cambridge
[EMAIL PROTECTED]   http://www.dpmms.cam.ac.uk/~werdna

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to