Thanks for that. I tried the patch you suggested but still see the same behaviour. I added a printf to nab the values of r/g/b/a in that section of code and get the following:
ah: -1 rh: 14 gh: 9 bh: 4 ah: 15 rh: 14 gh: 9 bh: 4 ah: -1 rh: 11 gh: 7 bh: 3 ah: 15 rh: 11 gh: 7 bh: 3 ah: -1 rh: 15 gh: 10 bh: 4 (!) DirectFB/FBDev: Unsupported pixelformat: rgba 5/11, 6/5, 5/0, 0/16 (16bit) (!!!) *** WARNING [unknown format] *** [fbdev.c:1766 in dfb_fbdev_set_mode()] (!!!) *** ONCE [unsupported destination format] *** [generic.c:7036 in gAcquir e()] (!) [23547: 0.000] --> Caught signal 11 (at 0xe4, invalid address) <-- I still don't understand this code very well; I may try on another box or in a non-parallels environment. If it still fails then, I have a feeling I'll be reading a lot of code soon :) Cheers Eric On Jul 28, 2006, at 6:14 PM, Denis Oliver Kropp wrote: > Eric Maland wrote: >> I'm trying to get a reasonable test/dev environment for DirectFB >> going on my macbook under parallels (http://www.parallels.com). >> I have installed Ubuntu Dapper and built the DFBTutorials etc >> without problem; >> I have modified my kernel boot parameters to include vga=0x317, >> which gives me a 1024x768 16bit frame buffer. >> However, when I run the tutorials and examples, I get nothing but >> a blank screen, and the following warnings/errors in output: >> (!) DirectFB/FBDev: Unsupported pixelformat: rgba 5/11, 6/5, 5/0, >> 0/16 (16bit) > > It's strange to signal 0 bits at 16 :) > >> (!!!) *** WARNING [unknown format] *** [fbdev.c:1763 in >> dfb_fbdev_set_mode()] >> (!!!) *** ONCE [unsupported destination format] *** [generic.c: >> 7036 in gAcquire()] >> (!) [ 9708: 0.000] --> Caught signal 11 (at 0xe4, invalid >> address) <-- >> What am I doing wrong here? I know it wants to work, it's got the >> heart of a champion, am I missing something? > > Maybe the patch helps. > > -- > Best regards, > Denis Oliver Kropp > > .------------------------------------------. > | DirectFB - Hardware accelerated graphics | > | http://www.directfb.org/ | > "------------------------------------------" > Index: systems/fbdev/fbdev.c > =================================================================== > RCS file: /cvs/directfb/DirectFB/systems/fbdev/fbdev.c,v > retrieving revision 1.41 > diff -p -u -r1.41 fbdev.c > --- systems/fbdev/fbdev.c 21 Jun 2006 09:20:59 -0000 1.41 > +++ systems/fbdev/fbdev.c 28 Jul 2006 17:12:31 -0000 > @@ -1448,10 +1448,10 @@ static int dfb_fbdev_compatible_format( > vgh = var->green.length + var->green.offset - 1; > vbh = var->blue.length + var->blue.offset - 1; > > - if (ah == vah && al >= (int)var->transp.length && > - rh == vrh && rl >= (int)var->red.length && > - gh == vgh && gl >= (int)var->green.length && > - bh == vbh && bl >= (int)var->blue.length) > + if ((!al || (ah == vah && al >= (int)var->transp.length)) && > + (!rl || (rh == vrh && rl >= (int)var->red.length)) && > + (!gl || (gh == vgh && gl >= (int)var->green.length)) && > + (!bl || (bh == vbh && bl >= (int)var->blue.length))) > return 1; > > return 0; > _______________________________________________ > directfb-users mailing list > [email protected] > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users _______________________________________________ directfb-users mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
