xmame  

Re: GL, SDL, and DGA questions

scholnik
Sat, 09 Dec 2000 15:04:29 -0800


   SDL driver in my first version supported only 8-bit paletted
   graphics games, and the first allocated surface (this one, on which
   the internal bitmap is displayed) has 8 bit depth and all the blit
   was made via SDL...

   So - send to the list (or to my mailbox):

   0) Output from xmame runtime, compiled with SDL_DEBUG defined
   (define it in CFLAGS and recompile SDL.o and xmame.SDL).
   1) SDL version.
   2) Xmame version.
   3) _exact_ romset name.

Here is the runtime log.  I have SDL 1.1.6 using the rpm from the main
site.  1.1.4 had the same problem.  I've used several xmame versions,
0.37b10.1 (unofficial) is my current, but the same problem exists
under b6 and b7.  I'm using the patch posted to the list a little
while back to allow full screen switching with ctrl-enter.  It really
doesn't matter what romset is used; even the opening window (with rom
and game info) is messed up.  In any case, the roms are listed in the
log, the game is "pacman".

xmame+SDL is certainly not the only app that doesn't seem to handle
24/32 bpp right - I'm not sure I've ever had a video application work
at those depths.  Realplayer, xanim, and mpeg_play all seem to have
the same sort of problem, but work fine at 16 bpp.  My last card did
24 bpp in packed-pixel mode, but the new one appears to use 32
framebuffer bits to hold it: (from X output)

--) NVIDIA(0): Chipset: "RIVATNT2 (Vanta)"
(++) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor

result of "xmame.x11 pacman >& xmame.log" (ignore all that stuff about
bad configuration files):

SDL: Info: SDL initialized
info: trying to parse: /usr/local/games/lib/xmame/xmamerc
error: unknown option x11-mode, on line 35 of file: /usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option cursor, on line 38 of file: /usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option mitshm, on line 39 of file: /usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option xsync, on line 40 of file: /usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option privatecmap, on line 41 of file: 
/usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option xil, on line 42 of file: /usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option mtxil, on line 43 of file: /usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option run-in-root-window, on line 44 of file: 
/usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option root_window_id, on line 45 of file: 
/usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option geometry, on line 46 of file: /usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option keepaspect, on line 51 of file: 
/usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option displayaspectratio, on line 53 of file: 
/usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option grabmouse, on line 56 of file: /usr/local/games/lib/xmame/xmamerc
   ignoring line
error: unknown option winkeys, on line 57 of file: /usr/local/games/lib/xmame/xmamerc
   ignoring line
info: trying to parse: /root/.xmame/xmamerc
info: trying to parse: /usr/local/games/lib/xmame/xmame-SDLrc
info: trying to parse: /root/.xmame/xmame-SDLrc
info: trying to parse: /usr/local/games/lib/xmame/rc/pacmanrc
info: trying to parse: /root/.xmame/rc/pacmanrc
Mouse/Trakball selected.
loading rom 0: namcopac.6e 
loading rom 1: namcopac.6f 
loading rom 2: namcopac.6h 
loading rom 3: namcopac.6j 
loading rom 4: pacman.5e   
loading rom 5: pacman.5f   
loading rom 6: 82s123.7f   
loading rom 7: 82s126.4a   
loading rom 8: 82s126.1m   
loading rom 9: 82s126.3m   
done
SDL: Info: Best matching mode: 
SDL: Info: HW blits 0
SDL: Info: SW blits 0
SDL: Info: Vid mem 0
SDL: Info: Best supported depth 32
SDL: visual w:224 visual h:288
SDL: Info: Found mode 1280 x 1024
SDL: Info: Found mode 1024 x 768
SDL: Info: Found mode 800 x 600
SDL: Info: Found mode 640 x 480
SDL: Info: Found mode 256 x 304
SDL: Info: Found mode 248 x 384
SDL: Info: Found mode 512 x 384
SDL: Info: Found mode 248 x 368
SDL: Info: Found mode 248 x 320
SDL: Info: Found mode 400 x 300
SDL: Info: Best mode found : 400 x 300
SDL: Info: Video mode set as 400 x 300, depth 32
I386 joystick interface initialization...
Joystick: /dev/js0 is SNES pad
Joystick: Built in driver version: 1.2.15
Joystick: Kernel driver version  : 1.2.15
OSD: Info: Joystick 0, 2 axis, 8 buttons
Game uses 13 colors
SDL: sysdep_display_alloc_palette();
SDL: Info: Palette with 15 colors allocated
info: setting fragsize to 512, numfrags to 5
info: fragsize = 512, numfrags = 5
info: audiodevice /dev/dsp set to 16bit linear mono 22050Hz
info: sysdep_dsp: using oss plugin
info: sysdep_mixer: using oss plugin
SDL: Debug: Other event
SDL: Debug: Other event
SDL: Debug: Other event
SDL: Debug: Other event
SDL: Debug: Other event
Key return pressed
Key return released
Key escape pressed


-- 
Dan Scholnik
[EMAIL PROTECTED]
Naval Research Laboratory
Radar Division, Code 5327
4555 Overlook Ave, SW 
Washington, DC 20375
202-404-1943
202-404-7999 (Fax)
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]