opengl pixel format regression

Roderick Colenbrander thunderbird2k at gmx.net
Tue Aug 22 03:48:37 CDT 2006


> Hello 
> > Your pixel format patches caused a regression in half-life 1 for me with
> > the fglrx drivers.
> 
> The same happend to me with opensource Intel drivers on a:
> $ lspci | grep VGA
> 00:02.0 VGA compatible controller: Intel Corporation 82852/855GM
> Integrated 
> Graphics Device (rev 02)
> 
> > It refuses to start in opengl mode and 
> > reports "ChoosePixelFormat failed", and then comes up in software(ddraw)
> > mode. The d3d mode still works fine. This problem also does not occur
> with
> > the open source radeon driver. I tested with fglrx 8.28.8 and fglrx
> > 8.27.10. Other games seem to work fine(appart of a few fglrx bugs)
> 
> Perfectly replicable on my system.
> 
> $ X -version
> X Window System Version 7.1.1
> 
> > What infos do you need to debug this? This is the format table glxinfo
> > reports:
> 
> $ glxinfo
> 
> [cut]
> 
>    visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
>  id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
> ----------------------------------------------------------------------
> 0x23 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
> 0x24 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
> 0x25 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
> 0x26 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
> 0x27 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
> 0x28 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
> 0x29 24 tc  0 32  0 r  y  .  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  8 16 16 16 16  0 0 Slow
> 0x2b 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
> 0x2c 24 dc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
> 0x2d 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
> 0x2e 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
> 0x2f 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
> 0x30 24 dc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
> 0x31 24 dc  0 32  0 r  y  .  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  8 16 16 16 16  0 0 Slow
> 

Both of you try to remove the following code from src/winex11.drv/opengl.c:
    /* Aux buffers */
    pglXGetFBConfigAttrib(gdi_display, cfgs[fmt_index], GLX_AUX_BUFFERS, &value);
    if (ppfd->cAuxBuffers && !value) {
      goto choose_exit;
    }

I compared both glxinfo outputs with the output from Nvidia cards and the main difference is that Nvidia cards advertise aux buffers and others not. Removing the code will likely fix the problem.

Roderick
-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



More information about the wine-devel mailing list