http://bugs.freedesktop.org/show_bug.cgi?id=11404
------- Comment #2 from [EMAIL PROTECTED] 2007-07-06 16:40 PST -------
Now I immediately get to the SIGABRT:
(gdb) bt
#0 0x00002b00b4108cab in raise () from /lib/libc.so.6
#1 0x00002b00b410a660 in abort () from /lib/libc.so.6
#2 0x00002b00b4102436 in __assert_fail () from /lib/libc.so.6
#3 0x00002b00b6bd525c in emit_move (emitInfo=0x7ffff7c6de20, n=0x387b1840)
at shader/slang/slang_emit.c:960
#4 0x00002b00b6bd2fb9 in emit (emitInfo=0x7ffff7c6de20, n=0x33fb)
at shader/slang/slang_emit.c:1676
This value of n looks odd.
#5 0x00002b00b6bd2c20 in emit (emitInfo=0x7ffff7c6de20, n=0x387b18b0)
at shader/slang/slang_emit.c:1517
#6 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387b59a8)
at shader/slang/slang_emit.c:1516
#7 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387b9aa0)
at shader/slang/slang_emit.c:1516
#8 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387b9ce8)
at shader/slang/slang_emit.c:1516
#9 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387b9fb8)
at shader/slang/slang_emit.c:1516
#10 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387ba288)
at shader/slang/slang_emit.c:1516
#11 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387ba368)
at shader/slang/slang_emit.c:1516
#12 0x00002b00b6bd2c49 in emit (emitInfo=0x7ffff7c6de20, n=0x387ba3d8)
at shader/slang/slang_emit.c:1527
#13 0x00002b00b6bd2c20 in emit (emitInfo=0x7ffff7c6de20, n=0x387ba448)
at shader/slang/slang_emit.c:1517
#14 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387ba528)
at shader/slang/slang_emit.c:1516
#15 0x00002b00b6bd4f0c in emit_move (emitInfo=0x7ffff7c6de20, n=0x387ba598)
at shader/slang/slang_emit.c:930
#16 0x00002b00b6bd2fb9 in emit (emitInfo=0x7ffff7c6de20, n=0x33fb)
at shader/slang/slang_emit.c:1676
#17 0x00002b00b6bd2c20 in emit (emitInfo=0x7ffff7c6de20, n=0x387ba608)
at shader/slang/slang_emit.c:1517
#18 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387ba6e8)
at shader/slang/slang_emit.c:1516
#19 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387ba918)
at shader/slang/slang_emit.c:1516
#20 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387baad8)
at shader/slang/slang_emit.c:1516
#21 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387bad90)
at shader/slang/slang_emit.c:1516
#22 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387bae70)
at shader/slang/slang_emit.c:1516
#23 0x00002b00b6bd2c49 in emit (emitInfo=0x7ffff7c6de20, n=0x387baee0)
at shader/slang/slang_emit.c:1527
#24 0x00002b00b6bd2c20 in emit (emitInfo=0x7ffff7c6de20, n=0x387baf50)
at shader/slang/slang_emit.c:1517
#25 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387bb030)
at shader/slang/slang_emit.c:1516
#26 0x00002b00b6bd4f0c in emit_move (emitInfo=0x7ffff7c6de20, n=0x387bb0a0)
at shader/slang/slang_emit.c:930
#27 0x00002b00b6bd2fb9 in emit (emitInfo=0x7ffff7c6de20, n=0x33fb)
at shader/slang/slang_emit.c:1676
#28 0x00002b00b6bd2c20 in emit (emitInfo=0x7ffff7c6de20, n=0x387bb110)
at shader/slang/slang_emit.c:1517
#29 0x00002b00b6bd2c20 in emit (emitInfo=0x7ffff7c6de20, n=0x387bb180)
at shader/slang/slang_emit.c:1517
#30 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387c06d8)
at shader/slang/slang_emit.c:1516
#31 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387ebec8)
at shader/slang/slang_emit.c:1516
#32 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387f5870)
at shader/slang/slang_emit.c:1516
#33 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387f8f50)
at shader/slang/slang_emit.c:1516
#34 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x387ff100)
at shader/slang/slang_emit.c:1516
#35 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x38803ec8)
at shader/slang/slang_emit.c:1516
#36 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x38808768)
at shader/slang/slang_emit.c:1516
#37 0x00002b00b6bd2c49 in emit (emitInfo=0x7ffff7c6de20, n=0x388087d8)
at shader/slang/slang_emit.c:1527
#38 0x00002b00b6bd2c14 in emit (emitInfo=0x7ffff7c6de20, n=0x388088b8)
at shader/slang/slang_emit.c:1516
#39 0x00002b00b6bd414f in _slang_emit_code (n=0x388088b8, vt=0x3878dbe0,
prog=0x33ac0600, withEnd=1 '\001', log=0x7ffff7c702c0)
at shader/slang/slang_emit.c:1828
#40 0x00002b00b6bcb22a in _slang_codegen_function (A=0x7ffff7c6df50,
fun=<value optimized out>) at shader/slang/slang_codegen.c:3127
#41 0x00002b00b6bd0319 in parse_function (C=0x7ffff7c70270, O=0x7ffff7c6e010,
definition=1, parsed_func_ret=0x7ffff7c6e048)
at shader/slang/slang_compile.c:1777
#42 0x00002b00b6bd0b63 in parse_code_unit (C=0x7ffff7c70270,
unit=0x7ffff7c6e210, program=<value optimized out>)
at shader/slang/slang_compile.c:1847
#43 0x00002b00b6bd139e in _slang_compile (ctx=0x24c187c0, shader=0x33f09be0)
at shader/slang/slang_compile.c:1899
#44 0x00002b00b6b6ee49 in _mesa_compile_shader (ctx=0x24c187c0,
shaderObj=<value optimized out>) at shader/shader_api.c:994
#45 0x00000000004790ee in GL_Backend_CompileShader (programobject=1,
shadertypeenum=35632, shadertype=0x5b19ca "fragment", numstrings=15,
strings=0x7ffff7c78c60) at gl_backend.c:874
In frame 45, I did:
(gdb) print *(char*[15]*)strings
$6 = {0x5b6c27 "#define FRAGMENT_SHADER\n", 0x5b6c40 "\n",
0x5b69e8 "#define MODE_LIGHTDIRECTIONMAP_MODELSPACE\n", 0x5b6c40 "\n",
0x5b6c40 "\n", 0x5b6c40 "\n", 0x5b6c40 "\n", 0x5b6c40 "\n", 0x5b6c40 "\n",
0x5b6b25 "#define USECONTRASTBOOST\n", 0x5b6b4e "#define USESPECULAR\n",
0x5b6c40 "\n", 0x5b6c40 "\n", 0x5b6c40 "\n",
0x5b3dc8 "// ambient+diffuse+specular+normalmap+attenuation+cubemap+fog
shader\n// written by Forest 'LordHavoc' Hale\n\n// common definitions between
vertex shader and fragment shader:\n\n#ifdef __GLSL_CG_DATA_TYPE"...}
I will attach an archive with the GLSL shader that DP uses, and a version that
Mesa accepts without an abort (mainly by splitting expressions into multiple
lines and removing casts that only are necessary on nvidia cards to use half
precision floats). There seems to be a problem with the preprocessor too, but I
can't figure it out.
BTW, good news: Nexuiz works in Mesa with acceptable frame rates (about 60fps)
on 320x240 with r_showsurfaces 1 (textureless flat rendering). At the lowest
possible "real" settings, I get 7fps. Good work, now if you could get this up
to 15fps... doing a 320x240 r_showsurfaces 1 timedemo (tdem demo1)... resulted
in actually "just playable" performance:
1910 frames 56.9229441 seconds 33.5541324 fps, one-second min/avg/max: 21 34 50
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev