Intel GLSL /w sdlmame (Was: Re: dga does't work correctly)

Steven Newbury steve at snewbury.org.uk
Mon Jan 12 11:47:11 PST 2009


On Saturday 10 January 2009 04:33:36 tom fogal wrote:
> Steven Newbury <steve at snewbury.org.uk> writes:
> [snip]
>
> > (including using GLSL shaders for overlay effects, though sadly the
> > shader fails to compile with the intel driver for some reason [1])
>
> [snip]
>
> > [1]
> > src/osd/sdl/gl_shader_tool.c:375: GL Error: object 0x3 compilation failed
> > src/osd/sdl/gl_shader_tool.c:375 glInfoLog: Error:
> > Error: failed to preprocess the source.
> >
> > failed to process shader: <
> > #pragma optimize (on)
> > #pragma debug (off)
>
> Try removing the pragma; doesn't look like it's supported yet in Mesa.
>
>     tf at tomasu dev grep -i pragma mesa/src/mesa/shader/slang/*.c
>     mesa/src/mesa/shader/slang/slang_preprocess.c:#define TOKEN_PRAGMA    8
>
> vs. `if', which seems to have an implementation:
>
>     tf at tomasu dev grep -i token_if mesa/src/mesa/shader/slang/*.c
>     mesa/src/mesa/shader/slang/slang_preprocess.c:#define TOKEN_IF        3
>     mesa/src/mesa/shader/slang/slang_preprocess.c:         case TOKEN_IF:
>
> Just a guess.
That got it running, although there is a serious problem with the colour-space 
conversion shader.  Vector games seem to be fine though, with working overlay.



More information about the xorg mailing list