I don't recall if I've ever tried that case. I'd suggest two things:
1. try a newer version of Mesa (there's been lots of GLSL fixes since 7.0.4)
2. provide a self-contained glut test program and file a bug report.
-Brian
Nathan Cournia wrote:
> Should I be able to pass a sampler to a function? For instance the
> following code aborts when compiled in Mesa 7.0.4:
>
> uniform sampler2D uMap0;
> varying vec4 vUV0;
>
> void foo(in sampler2D iTexture, in vec4 iUV) {
> return texture2D(iTexture, iUV.st);
> }
>
> void main(void)
> {
> gl_FragColor = foo(uMap0, uUV0);
> }
>
> The following assertion fails:
>
> voodoo: shader/slang/slang_codegen.c:1832: _slang_gen_var_decl:
> Assertion `!is_sampler_type(&var->type)' failed.
>
> Here's the stacktrace:
>
> [0xffffe405]
> /lib/tls/libc.so.6(gsignal+0x51)[0x591952c1]
> /lib/tls/libc.so.6(abort+0x1a5)[0x59196b75]
> /lib/tls/libc.so.6(__assert_fail+0x103)[0x5918e903]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1[0x5802c411]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1[0x5802fbaf]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1[0x5802e672]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1[0x5802e7b2]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1[0x5802e69c]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1[0x5802d6c2]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1[0x5802d900]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1[0x5802d8dc]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1[0x5802e7b2]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1(_slang_codegen_function+0xa8)[0x5802f1c8]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1[0x58034495]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1[0x5803476b]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1(_slang_compile+0x8c1)[0x58035201]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1(_mesa_compile_shader+0x34)[0x57fc5214]
> /software/thalia/external/Mesa-7.0.4/lib/libGL.so.1(_mesa_CompileShaderARB+0x2a)[0x57f247da]
> ...
>
> Thanks!
>
> nathan
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Mesa3d-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev