mesa: fddcc67f5cb41f70d1d11827eb9190a5caec13c5 (master) Run piglit varying-packing-simple test on llvmpipe. $ ./bin/varying-packing-simple float array -auto src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c:75:analyse_src: Assertion `src->Index < (sizeof(ctx->imm)/sizeof((ctx->imm)[0]))' failed. (gdb) bt #0 0x00007ffbe8fb5761 in _debug_assert_fail (expr=0x7ffbe98ce1e8 "src->Index < (sizeof(ctx->imm)/sizeof((ctx->imm)[0]))", file=0x7ffbe98ce1b0 "src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c", line=75, function=0x7ffbe98ce4a0 "analyse_src") at src/gallium/auxiliary/util/u_debug.c:278 #1 0x00007ffbe904230f in analyse_src (ctx=0x7fff62f25ee0, chan_info=0x7fff62f25e50, src=0x7fff62f26538, chan=0) at src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c:75 #2 0x00007ffbe904289c in analyse_instruction (ctx=0x7fff62f25ee0, inst=0x7fff62f26508) at src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c:266 #3 0x00007ffbe9042fc1 in lp_build_tgsi_info (tokens=0xdae5b0, info=0xe63170) at src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c:435 #4 0x00007ffbe8c898db in llvmpipe_create_fs_state (pipe=0xb67b50, templ=0xe621a0) at src/gallium/drivers/llvmpipe/lp_state_fs.c:2231 #5 0x00007ffbe8f7ae0b in aaline_create_fs_state (pipe=0xb67b50, fs=0xe621a0) at src/gallium/auxiliary/draw/draw_pipe_aaline.c:855 #6 0x00007ffbe8f7d1f1 in aapoint_create_fs_state (pipe=0xb67b50, fs=0xe621a0) at src/gallium/auxiliary/draw/draw_pipe_aapoint.c:840 #7 0x00007ffbe8f819bb in pstip_create_fs_state (pipe=0xb67b50, fs=0xe621a0) at src/gallium/auxiliary/draw/draw_pipe_pstipple.c:668 #8 0x00007ffbe8dd85c8 in st_translate_fragment_program (st=0xc1b800, stfp=0x111e8c0, key=0x7fff62f26a50) at src/mesa/state_tracker/st_program.c:746 #9 0x00007ffbe8dd8701 in st_get_fp_variant (st=0xc1b800, stfp=0x111e8c0, key=0x7fff62f26a50) at src/mesa/state_tracker/st_program.c:783 #10 0x00007ffbe8eb2203 in update_fp (st=0xc1b800) at src/mesa/state_tracker/st_atom_shader.c:91 #11 0x00007ffbe8eacc33 in st_validate_state (st=0xc1b800) at src/mesa/state_tracker/st_atom.c:205 #12 0x00007ffbe8dd39d0 in st_draw_vbo (ctx=0xbd4650, prims=0x7fff62f26bc0, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=3, tfb_vertcount=0x0) at src/mesa/state_tracker/st_draw.c:200 #13 0x00007ffbe8e8c5d7 in vbo_draw_arrays (ctx=0xbd4650, mode=7, start=0, count=4, numInstances=1, baseInstance=0) at src/mesa/vbo/vbo_exec_array.c:619 #14 0x00007ffbe8e8c6b0 in vbo_exec_DrawArrays (mode=7, start=0, count=4) at src/mesa/vbo/vbo_exec_array.c:649 #15 0x00007ffbeb4a934a in stub_glDrawArrays (mode=7, first=0, count=4) at piglit/tests/util/generated_dispatch.c:5061 #16 0x00007ffbeb4ffe49 in piglit_draw_rect (x=-1, y=-1, w=2, h=2) at piglit/tests/util/piglit-util-gl.c:872 #17 0x0000000000401cd6 in piglit_display () at piglit/tests/spec/glsl-1.10/execution/varying-packing/simple.c:407 #18 0x00007ffbeb49e180 in display () at piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:60 #19 0x00007ffbeac55137 in fghRedrawWindow (window=0xb65690) at freeglut_main.c:210 #20 fghcbDisplayWindow (window=0xb65690, enumerator=0x7fff62f26db0) at freeglut_main.c:227 #21 0x00007ffbeac58889 in fgEnumWindows (enumCallback=0x7ffbeac550d0 <fghcbDisplayWindow>, enumerator=0x7fff62f26db0) at freeglut_structure.c:394 #22 0x00007ffbeac555fa in fghDisplayAll () at freeglut_main.c:249 #23 glutMainLoopEvent () at freeglut_main.c:1450 #24 0x00007ffbeac55f05 in glutMainLoop () at freeglut_main.c:1498 #25 0x00007ffbeb49e358 in run_test (gl_fw=0x7ffbeb7677c0, argc=3, argv=0x7fff62f27178) at piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:127 #26 0x00007ffbeb49c49e in piglit_gl_test_run (argc=3, argv=0x7fff62f27178, config=0x7fff62f27060) at piglit/tests/util/piglit-framework-gl.c:127 #27 0x000000000040137e in main (argc=4, argv=0x7fff62f27178) at piglit/tests/spec/glsl-1.10/execution/varying-packing/simple.c:108 (gdb) frame 1 #1 0x00007ffbe904230f in analyse_src (ctx=0x7fff62f25ee0, chan_info=0x7fff62f25e50, src=0x7fff62f26538, chan=0) at src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c:75 75 assert(src->Index < Elements(ctx->imm)); (gdb) print src->Index $1 = 33 (gdb) print ctx->imm $2 = {{0, -nan(0x7fffff), 0, 0}, {1.40129846e-45, 2.80259693e-45, 4.20389539e-45, 5.60519386e-45}, {7.00649232e-45, 8.40779079e-45, 9.80908925e-45, 1.12103877e-44}, {1.26116862e-44, 1.40129846e-44, 1.54142831e-44, 1.68155816e-44}, {1.821688e-44, 1.96181785e-44, 2.1019477e-44, 2.24207754e-44}, {2.38220739e-44, 2.52233724e-44, 2.66246708e-44, 2.80259693e-44}, {2.94272678e-44, 3.08285662e-44, 3.22298647e-44, 3.36311631e-44}, {3.50324616e-44, 3.64337601e-44, 3.78350585e-44, 3.9236357e-44}, {4.06376555e-44, 4.20389539e-44, 4.34402524e-44, 4.48415509e-44}, {4.62428493e-44, 4.76441478e-44, 4.90454463e-44, 5.04467447e-44}, {5.18480432e-44, 5.32493416e-44, 5.46506401e-44, 5.60519386e-44}, {5.7453237e-44, 5.88545355e-44, 6.0255834e-44, 6.16571324e-44}, {6.30584309e-44, 6.44597294e-44, 6.58610278e-44, 6.72623263e-44}, {6.86636248e-44, 7.00649232e-44, 7.14662217e-44, 7.28675201e-44}, {7.42688186e-44, 7.56701171e-44, 7.70714155e-44, 7.8472714e-44}, {7.98740125e-44, 8.12753109e-44, 8.26766094e-44, 8.40779079e-44}, {8.54792063e-44, 8.68805048e-44, 8.82818033e-44, 8.96831017e-44}, {9.10844002e-44, 9.24856986e-44, 9.38869971e-44, 9.52882956e-44}, {9.6689594e-44, 9.80908925e-44, 9.9492191e-44, 1.00893489e-43}, {1.02294788e-43, 1.03696086e-43, 1.05097385e-43, 1.06498683e-43}, {1.07899982e-43, 1.0930128e-43, 1.10702579e-43, 1.12103877e-43}, {1.13505176e-43, 1.14906474e-43, 1.16307773e-43, 1.17709071e-43}, {1.19110369e-43, 1.20511668e-43, 1.21912966e-43, 1.23314265e-43}, {1.24715563e-43, 1.26116862e-43, 1.2751816e-43, 1.28919459e-43}, {1.30320757e-43, 1.31722056e-43, 1.33123354e-43, 1.34524653e-43}, {1.35925951e-43, 1.3732725e-43, 1.38728548e-43, 1.40129846e-43}, {1.41531145e-43, 1.42932443e-43, 1.44333742e-43, 1.4573504e-43}, {1.47136339e-43, 1.48537637e-43, 1.49938936e-43, 1.51340234e-43}, {1.52741533e-43, 1.54142831e-43, 1.5554413e-43, 1.56945428e-43}, {1.58346726e-43, 1.59748025e-43, 1.61149323e-43, 1.62550622e-43}, {1.6395192e-43, 1.65353219e-43, 1.66754517e-43, 1.68155816e-43}, {1.69557114e-43, 1.70958413e-43, 1.72359711e-43, 1.7376101e-43}} (gdb) print sizeof(ctx->imm) $3 = 512 (gdb) print sizeof(ctx->imm) / sizeof(ctx->imm[0]) $4 = 32
Fixed with 1b6ba9c4c840e291cbbe19a8601b56d1d103179c
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.