https://bugs.freedesktop.org/show_bug.cgi?id=66349
Priority: medium Bug ID: 66349 Assignee: dri-devel at lists.freedesktop.org Summary: Using SB shader optimization caused segfault in Serious Sam 3: BFE Severity: normal Classification: Unclassified OS: Linux (All) Reporter: thomas.lindroth at gmail.com Hardware: x86-64 (AMD64) Status: NEW Version: git Component: Drivers/Gallium/r600 Product: Mesa Created attachment 81666 --> https://bugs.freedesktop.org/attachment.cgi?id=81666&action=edit dmesg, xorg.log When using R600_DEBUG=sb Serious Sam 3 will segfault in mesa during the intro. Running without sb works. I'm using git mesa, libdrm, drm-next and xf86-video-ati-7.1.0. Here is the backtrace. Program received signal SIGSEGV, Segmentation fault. 0xf385b151 in r600_sb::regbits::clear (this=0xffe4b57c, index=4293178748) at sb/sb_ra_init.cpp:131 131 sb/sb_ra_init.cpp: No such file or directory. (gdb) bt #0 0xf385b151 in r600_sb::regbits::clear (this=0xffe4b57c, index=4293178748) at sb/sb_ra_init.cpp:131 #1 0xf385b25b in r600_sb::regbits::from_val_set (this=0xffe4b57c, sh=..., vs=...) at sb/sb_ra_init.cpp:117 #2 0xf385bdaa in regbits (vs=..., sh=..., this=0xffe4b57c) at sb/sb_ra_init.cpp:62 #3 r600_sb::ra_init::color (this=0xffe4bb18, v=0x15c62168) at sb/sb_ra_init.cpp:471 #4 0xf385bf81 in r600_sb::ra_init::process_op (this=0xffe4bb18, n=0x15ca7948) at sb/sb_ra_init.cpp:344 #5 0xf385bfdf in r600_sb::ra_init::ra_node (this=0xffe4bb18, c=0x15cba670) at sb/sb_ra_init.cpp:294 #6 0xf385bff7 in r600_sb::ra_init::ra_node (this=0xffe4bb18, c=0x15cba608) at sb/sb_ra_init.cpp:297 #7 0xf385bff7 in r600_sb::ra_init::ra_node (this=0xffe4bb18, c=0x15c8a4e8) at sb/sb_ra_init.cpp:297 #8 0xf385c03d in r600_sb::ra_init::run (this=0xffe4bb18) at sb/sb_ra_init.cpp:285 #9 0xf3847450 in r600_sb_bytecode_process (rctx=0xa60a300, bc=0x15c6c9f4, pshader=0x15c6c9f0, dump_bytecode=0, optimize=2097152) at sb/sb_core.cpp:220 #10 0xf38209f8 in r600_pipe_shader_create (ctx=0xa60a300, shader=0x15c6c9e8, key=...) at r600_shader.c:179 #11 0xf38335b1 in r600_shader_select (ctx=0xa60a300, sel=<optimized out>, dirty=0x0) at r600_state_common.c:750 #12 0xf38337ea in r600_create_shader_state (ctx=0xa60a300, state=<optimized out>, pipe_shader_type=1) at r600_state_common.c:797 #13 0xf3833834 in r600_create_ps_state (ctx=0xa60a300, state=0x15c43c28) at r600_state_common.c:807 #14 0xf365f051 in st_translate_fragment_program (st=0xa73f748, stfp=0x15c7a060, key=0xffe4c648) at ../../src/mesa/state_tracker/st_program.c:768 #15 0xf365fd20 in st_get_fp_variant (st=0xa73f748, stfp=0x15c7a060, key=0xffe4c648) at ../../src/mesa/state_tracker/st_program.c:805 #16 0xf3626b85 in update_fp (st=0xa73f748) at ../../src/mesa/state_tracker/st_atom_shader.c:92 #17 0xf3623912 in st_validate_state (st=0xa73f748) at ../../src/mesa/state_tracker/st_atom.c:221 #18 0xf36376fc in st_draw_vbo (ctx=0xa6f8b28, prims=0xffe4c7d8, nr_prims=1, ib=0xffe4c7f0, index_bounds_valid=1 '\001', min_index=0, max_index=3, tfb_vertcount=0x0) at ../../src/mesa/state_tracker/st_draw.c:210 #19 0xf360da07 in vbo_handle_primitive_restart (ctx=<optimized out>, prim=<optimized out>, nr_prims=1, ib=0xffe4c7f0, index_bounds_valid=1 '\001', min_index=0, max_index=3) at ../../src/mesa/vbo/vbo_exec_array.c:549 #20 0xf360e8ec in vbo_validated_drawrangeelements (ctx=0xa6f8b28, mode=4, index_bounds_valid=1 '\001', start=0, end=3, count=6, type=5123, indices=0x0, basevertex=0, numInstances=1, baseInstance=0) at ../../src/mesa/vbo/vbo_exec_array.c:968 #21 0xf360eaa7 in vbo_exec_DrawRangeElementsBaseVertex (mode=4, start=0, end=3, count=6, type=5123, indices=0x0, basevertex=0) at ../../src/mesa/vbo/vbo_exec_array.c:1076 #22 0xf360eaeb in vbo_exec_DrawRangeElements (mode=4, start=0, end=3, count=6, type=5123, indices=0x0) at ../../src/mesa/vbo/vbo_exec_array.c:1096 #23 0x08f0bf3d in ?? () #24 0x08a9f8b1 in ?? () #25 0x089a8459 in ?? () #26 0x089a188e in ?? () #27 0x08aadc5a in ?? () #28 0x08a9fb0a in ?? () #29 0x08a9fd56 in ?? () #30 0x08c8e65f in ?? () #31 0x08c9284a in ?? () #32 0x08b52309 in ?? () #33 0x08b66e96 in ?? () #34 0x08b92394 in ?? () ---Type <return> to continue, or q <return> to quit--- #35 0x08b498de in ?? () #36 0x08b49a86 in ?? () #37 0x08b49be1 in ?? () #38 0x08d89685 in ?? () #39 0x08b4a23d in ?? () #40 0x08b45e77 in ?? () #41 0x08b47332 in ?? () #42 0x0888e7fa in ?? () #43 0x0888867e in ?? () #44 0x083e9df5 in ?? () #45 0x083ea964 in ?? () #46 0x0853f143 in ?? () #47 0x089143d0 in ?? () #48 0x083a017f in ?? () #49 0x083a0293 in ?? () #50 0x08a06046 in ?? () #51 0x08d85243 in ?? () #52 0x08d85678 in ?? () #53 0x0804f54b in ?? () #54 0xf755a943 in __libc_start_main (main=0x804f520, argc=1, ubp_av=0xffe4e114, init=0x8f63330, fini=0x8f633a0, rtld_fini=0xf77964e0 <_dl_fini>, stack_end=0xffe4e10c) at libc-start.c:226 #55 0x0838e785 in ?? () -- You are receiving this mail because: You are the assignee for the bug. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20130629/38b59634/attachment-0001.html>