[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Has anyone a working XF86Config-4 for ibook2 with dri enabled?



Geez, what happens when I'm not looking for a minute ;)

On Thu, 2001-10-18 at 23:58, Tom Rini wrote:
> On Thu, Oct 18, 2001 at 02:07:11PM -0700, Nicolas Lopez wrote:
> > On Thu, Oct 18, 2001 at 12:46:18PM -0700, Tom Rini wrote:
> > > On Thu, Oct 18, 2001 at 12:25:09PM -0700, Nicolas Lopez wrote:
> > > But does the iBook have enough VRAM to do DRI on even 640x480 at >16bpp?
> >   Um, yeah. 640x480@24bpp is less than a 1M framebuffer. There's 8M there.
> 
> Yeah, but doesn't DRI need a whole lot more?  You can run X at 1024x768
> at 24/32, but not w/ DRI.  1024x768@16 w/ DRI is a go tho.  Last I tried
> anyhow. :)

The DRI needs twice w*h*bpp/8 (front and back buffer) plus w*h*16/8
(depth buffer). 8 MB is slightly too little for 1024x768x32, barely
enough for 800x600x32, but there's not much left for textures.


> >   And I just refreshed my xfree86 source tree, r128_dri.c still says:
> >     case 8:  /* 8bpp mode is not support */
> >     case 15: /* FIXME */
> >     case 24: /* FIXME */
> >         xf86DrvMsg(pScreen->myNum, X_ERROR,
> >                    "[dri] R128DRIScreenInit failed (depth %d not supported). 
> > "
> >                    "Disabling DRI.\n", info->CurrentLayout.pixel_code);
> >         return FALSE;
> > 
> >   So it wouldn't even try if it did have the vram.

Have you bothered looking further down? There's a case for 32...
info->CurrentLayout.pixel_code is bits per pixel, so this code is
slightly broken in this regard, but nevertheless DRI works in depth 24,
32 bpp.


-- 
Earthling Michel Dänzer (MrCooper)/ Debian GNU/Linux (powerpc) developer
XFree86 and DRI project member   /  CS student, Free Software enthusiast



Reply to: