Previous Thread
Next Thread
Print Thread
#56949 12/09/09 09:02 PM
Joined: Mar 2007
Posts: 28
R
Member
OP Offline
Member
R
Joined: Mar 2007
Posts: 28
For some reason SDLMAME doesn't even want to touch shaders now, it seems. At some point I got it to at least open() the relevant files but I don't know how, and now it's not even trying.

I take the example from PluggableShader.txt:
Code:
sdlmame -gl_glsl \
        -glsl_shader_mame0 /shader/glsl_plain \
        -glsl_shader_mame1 /shader/custom/glsl_add_mamebm_bilinear \
        puckman

Throw in my rompath, and tag it with strace:
Code:
strace -o "|grep shader" sdlmame -rompath /mnt/roothorick/mame/roms \
-gl_glsl -glsl_shader_mame0 /shader/glsl_plain -glsl_shader_mame1 \
/shader/custom/glsl_add_mamebm_bilinear puckman

In the console output I only get one line:
Code:
execve("/home/roothorick/opt/bin/sdlmame", ["sdlmame", "-rompath",
 "/mnt/roothorick/mame/roms", "-gl_glsl", "-glsl_shader_mame0", 
"/shader/glsl_plain", "-glsl_shader_mame1", 
"/shader/custom/glsl_add_mamebm_b"..., "puckman"], [/* 51 vars */]) = 0

Uh huh. So it's not trying to open the shaders, or even see if they're there. Why?

SDLMAME runs, the game boots, but no filters are applied, of course. What am I doing wrong?

Last edited by roothorick; 12/09/09 09:18 PM.
roothorick #56950 12/09/09 09:05 PM
Joined: Mar 2001
Posts: 16,911
Likes: 56
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,911
Likes: 56
Try adding -gl_glsl_filter.

R. Belmont #56951 12/09/09 09:16 PM
Joined: Mar 2007
Posts: 28
R
Member
OP Offline
Member
R
Joined: Mar 2007
Posts: 28
The plot thickens:
Code:
sdlmame -rompath /mnt/roothorick/mame/roms -video opengl -gl_glsl puckman
== black screen. Same with sf2, but rsgun and s1945ii work.

So, trying the obvious:
Code:
strace -f -o "|grep shader" sdlmame -verbose -rompath /mnt/roothorick/mame/roms \
-video opengl -gl_glsl -gl_glsl_filter 1 -glsl_shader_mame0 ~/.mame/shader/glsl_plain \
-glsl_shader_mame1 ~/.mame/shader/custom/glsl_add_mamebm_bilinear \
s1945ii


Aaaaand... nope. Everything looks right in the console:
Code:
27518 execve("/home/roothorick/opt/bin/sdlmame", ["sdlmame", "-verbose",
 "-rompath", "/mnt/roothorick/mame/roms", "-video", "opengl", "-gl_glsl", "-gl_glsl_filter",
 "1", "-glsl_shader_mame0", "/home/roothorick/.mame/shader/gl"..., "-glsl_shader_mame1",
 "/home/roothorick/.mame/shader/cu"..., "s1945ii"], [/* 51 vars */]) = 0
Build version:      0.135u2 (Dec  9 2009)
Build architecure:  SDLMAME_ARCH= 
Build defines 1:    SDLMAME_UNIX=1 SDLMAME_X11=1 SDLMAME_LINUX=1 
Build defines 1:    LSB_FIRST=1 PTR64=1 NDEBUG=1 DISTRO=generic SYNC_IMPLEMENTATION=tc 
SDL/OpenGL defines: SDL_COMPILEDVERSION=1213 USE_OPENGL=1 USE_DISPATCH_GL=1 
Compiler defines A: __GNUC__=4 __GNUC_MINOR__=3 __GNUC_PATCHLEVEL__=3 __VERSION__="4.3.3" 
Compiler defines B: __amd64__=1 __x86_64__=1 __unix__=1 
Compiler defines C: __USE_FORTIFY_LEVEL=0 
SDL Device Driver     : x11
SDL Monitor Dimensions: 1680 x 1050
Using SDL single-window OpenGL driver (SDL 1.2)
Loaded opengl shared library: <default>
OpenGL: ATI Technologies Inc.
OpenGL: ATI Radeon HD 4800 Series
OpenGL: 2.1.9116
OpenGL: texture rectangle supported
OpenGL: non-power-of-2 textures supported (new method)
OpenGL: vertex buffer supported
OpenGL: pixel buffers supported
OpenGL: framebuffer object supported
OpenGL: GLSL supported
OpenGL: max texture size 8192 x 8192
Keyboard: Start initialization
Input: Adding Kbd #1: System keyboard
Keyboard: Registered System keyboard
Keyboard: End initialization
Mouse: Start initialization
Input: Adding Mouse #1: System mouse
Mouse: Registered System mouse
Mouse: End initialization
Joystick: Start initialization
Joystick: End initialization
Audio initialized - driver: alsa, frequency: 48000, channels: 2, samples: 1088
sdl_create_buffers: creating stream buffer of 57344 bytes
ouput: unable to open output notifier file /tmp/sdlmame_out
OpenGL: VBO supported
OpenGL: PBO supported
OpenGL: FBO supported
27518 open("/home/roothorick/.mame/shader/glsl_plain.vsh", O_RDONLY) = 11
27518 open("/home/roothorick/.mame/shader/glsl_plain_idx16_lut.fsh", O_RDONLY) = 11
27518 open("/home/roothorick/.mame/shader/glsl_plain_rgb32_lut.fsh", O_RDONLY) = 11
27518 open("/home/roothorick/.mame/shader/glsl_plain_rgb32_dir.fsh", O_RDONLY) = 11
OpenGL: GLSL using mame bitmap shader filter 0: '/home/roothorick/.mame/shader/glsl_plain'
27518 open("/home/roothorick/.mame/shader/custom/glsl_add_mamebm_bilinear.vsh", O_RDONLY) = 11
27518 open("/home/roothorick/.mame/shader/custom/glsl_add_mamebm_bilinear_idx16_lut.fsh", O_RDONLY) = 11
27518 open("/home/roothorick/.mame/shader/custom/glsl_add_mamebm_bilinear_rgb32_lut.fsh", O_RDONLY) = 11
27518 open("/home/roothorick/.mame/shader/custom/glsl_add_mamebm_bilinear_rgb32_dir.fsh", O_RDONLY) = 11
OpenGL: GLSL using mame bitmap shader filter 1: '/home/roothorick/.mame/shader/custom/glsl_add_mamebm_bilinear'
OpenGL: GLSL direct brightness, contrast setting for RGB games
GL texture: copy 0, shader 0, dynamic 0, 320x224 320x224 [RGB32, Equal: 1, Palette: 0,
            scale 1x1 (eff: 0), border 0, pitch 512,320/8192], colors: 5120, bytes/pix 4
27518 write(1, "GL texture: copy 0, shader 0, dyn"..., 176) = 176
GL texture: copy 0, shader 0, dynamic 0, 320x224 320x224 [RGB32, Equal: 1, Palette: 0,
            scale 1x1 (eff: 0), border 0, pitch 512,320/8192], colors: 5120, bytes/pix 4
27518 write(1, "GL texture: copy 0, shader 0, dyn"..., 176) = 176


But the image is very clearly pixelated -- no bilinear in sight.

Last edited by roothorick; 12/09/09 09:19 PM.
roothorick #56953 12/10/09 02:18 AM
Joined: Feb 2003
Posts: 168
Senior Member
Offline
Senior Member
Joined: Feb 2003
Posts: 168
> ATI Radeon HD 4800 Series

I am no expert, but historically ATI drivers suck hard.


Moderated by  R. Belmont 

Link Copied to Clipboard
Who's Online Now
1 members (Golden Child), 27 guests, and 6 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,086
Posts119,087
Members5,014
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com