The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
28.65k
stars
11.84k
forks
source link
Instructions.cpp:1549: llvm::ShuffleVectorInst::ShuffleVectorInst(llvm::Value*, llvm::Value*, llvm::Value*, const llvm::Twine&, llvm::Instruction*): Assertion `isValidOperands(V1, V2, Mask) && "Invalid shuffle vector instruction operands!"' failed. #20093
Closed
vinsonlee closed 10 years ago
Extended Description
mesa: 83b4ec03e77645c537d540a12253b3492bad4b59 (master 10.3.0-devel) llvm: 3.5.0svn r20850
Run piglit cubemap-shader bias test on Mesa llvmpipe.
$ ./bin/cubemap-shader bias -auto cubemap-shader: Instructions.cpp:1549: llvm::ShuffleVectorInst::ShuffleVectorInst(llvm::Value, llvm::Value, llvm::Value, const llvm::Twine&, llvm::Instruction): Assertion `isValidOperands(V1, V2, Mask) && "Invalid shuffle vector instruction operands!"' failed.
(gdb) bt
0 0x00007fdfd0b47f79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
1 0x00007fdfd0b4b388 in __GI_abort () at abort.c:89
2 0x00007fdfd0b40e36 in __assert_fail_base (fmt=0x7fdfd0c92718 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
3 0x00007fdfd0b40ee2 in __GI___assert_fail (
4 0x00007fdfce7440e1 in llvm::ShuffleVectorInst::ShuffleVectorInst(llvm::Value, llvm::Value, llvm::Value, llvm::Twine const&, llvm::Instruction) () from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
5 0x00007fdfce3f4285 in llvm::IRBuilder<true, llvm::TargetFolder, llvm::InstCombineIRInserter>::CreateShuffleVector(llvm::Value, llvm::Value, llvm::Value*, llvm::Twine const&) ()
from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
6 0x00007fdfce3f95b8 in llvm::InstCombiner::SimplifyVectorOp(llvm::BinaryOperator&) ()
from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
7 0x00007fdfce4390eb in llvm::InstCombiner::visitFMul(llvm::BinaryOperator&) ()
from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
8 0x00007fdfce3fe79e in llvm::InstCombiner::DoOneIteration(llvm::Function&, unsigned int) ()
from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
9 0x00007fdfce3ff4c6 in llvm::InstCombiner::runOnFunction(llvm::Function&) ()
from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
10 0x00007fdfce755bb0 in llvm::FPPassManager::runOnFunction(llvm::Function&) ()
from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
11 0x00007fdfce755cd3 in llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) ()
from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
12 0x00007fdfce755e54 in llvm::legacy::FunctionPassManager::run(llvm::Function&) ()
from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
13 0x00007fdfce6abc09 in LLVMRunFunctionPassManager ()
from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
14 0x00007fdfcddad4bb in gallivm_optimize_function (gallivm=0x2448430, func=0x24c9840)
15 0x00007fdfcddad520 in gallivm_verify_function (gallivm=0x2448430, func=0x24c9840)
16 0x00007fdfcd97dbab in generate_fragment (lp=0x201cf10, shader=0x244fad0, variant=0x24493a0, partial_mask=1)
17 0x00007fdfcd97e6e3 in generate_variant (lp=0x201cf10, shader=0x244fad0, key=0x7fff2420d830)
18 0x00007fdfcd97fd1f in llvmpipe_update_fs (lp=0x201cf10) at src/gallium/drivers/llvmpipe/lp_state_fs.c:3171
19 0x00007fdfcd975b79 in llvmpipe_update_derived (llvmpipe=0x201cf10)
20 0x00007fdfcd950210 in llvmpipe_draw_vbo (pipe=0x201cf10, info=0x7fff2420db50)
21 0x00007fdfcdcecde8 in cso_draw_vbo (cso=0x20b62a0, info=0x7fff2420db50)
22 0x00007fdfcdafb14b in st_draw_vbo (ctx=0x7fdfd1436010, prims=0x20a11c8, nr_prims=1, ib=0x0,
23 0x00007fdfcdbd7ede in vbo_exec_vtx_flush (exec=0x20a0a68, keepUnmapped=1 '\001') at src/mesa/vbo/vbo_exec_draw.c:409
24 0x00007fdfcdbcf983 in vbo_exec_FlushVertices_internal (exec=0x20a0a68, unmap=1 '\001')
25 0x00007fdfcdbd165c in vbo_exec_FlushVertices (ctx=0x7fdfd1436010, flags=1) at src/mesa/vbo/vbo_exec_api.c:1168
26 0x00007fdfcda786bf in _mesa_ReadnPixelsARB (x=21, y=21, width=1, height=1, format=6407, type=5126, bufSize=2147483647,
27 0x00007fdfcda78c6f in _mesa_ReadPixels (x=21, y=21, width=1, height=1, format=6407, type=5126, pixels=0x7fff2420dd80)
28 0x00007fdfd0f857d2 in stub_glReadPixels (x=21, y=21, width=1, height=1, format=6407, type=5126, pixels=0x7fff2420dd80)
29 0x00007fdfd0fbda99 in piglit_probe_pixel_rgb (x=21, y=21, expected=0x603110 <colors+48>)
30 0x000000000040182f in test_results (x=5, y=5, size=64, level=3, face=0, mipmapped=1 '\001', color=3, maxlevel=6)
31 0x0000000000401d64 in draw_at_size (size=64, x_offset=0, y_offset=0, mipmapped=1 '\001')
32 0x0000000000401fa0 in piglit_display () at piglit/tests/texturing/cubemap-shader.c:345
33 0x00007fdfd0f4b7e2 in display () at piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:60
34 0x00007fdfd08e8244 in fghRedrawWindow (window=0x201a750) at freeglut_main.c:231
35 fghcbDisplayWindow (window=0x201a750, enumerator=0x7fff2420df80) at freeglut_main.c:248
36 0x00007fdfd08ebaa9 in fgEnumWindows (enumCallback=enumCallback@entry=0x7fdfd08e81d0,
37 0x00007fdfd08e87fd in fghDisplayAll () at freeglut_main.c:271
38 glutMainLoopEvent () at freeglut_main.c:1523
39 0x00007fdfd08e8ffd in glutMainLoop () at freeglut_main.c:1571
40 0x00007fdfd0f4bac4 in run_test (gl_fw=0x7fdfd123a380, argc=2, argv=0x7fff2420e358)
41 0x00007fdfd0f49819 in piglit_gl_test_run (argc=2, argv=0x7fff2420e358, config=0x7fff2420e220)
42 0x00000000004014be in main (argc=2, argv=0x7fff2420e358) at piglit/tests/texturing/cubemap-shader.c:50