[LLVMbugs] [Bug 12494] New: Mesa llvmpipe piglit glean blendFunc regression

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 7 22:38:23 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12494

             Bug #: 12494
           Summary: Mesa llvmpipe piglit glean blendFunc regression
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: vlee at freedesktop.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The piglit glean blendFunc test now fails on llvmpipe with llvm-3.1svn.

$ ./bin/glean -r results -t blendFunc --quick
src/gallium/auxiliary/draw/draw_llvm.c:219:create_jit_context_type: Assertion
`LLVMOffsetOfElement(target, context_type, 1) == __builtin_offsetof (struct
draw_jit_context, gs_constants)' failed.
Trace/breakpoint trap (core dumped)

(gdb) bt
#0  0x00007f26a0e13379 in _debug_assert_fail (
    expr=0x7f26a18d4f40 "LLVMOffsetOfElement(target, context_type, 1) ==
__builtin_offsetof (struct draw_jit_context, gs_constants)",
file=0x7f26a18d4820 "src/gallium/auxiliary/draw/draw_llvm.c", line=219, 
    function=0x7f26a18d5590 "create_jit_context_type") at
src/gallium/auxiliary/util/u_debug.c:278
#1  0x00007f26a0e91977 in create_jit_context_type (gallivm=0x234d670,
texture_type=0x27f1280, 
    struct_name=0x7f26a18d537c "draw_jit_context") at
src/gallium/auxiliary/draw/draw_llvm.c:218
#2  0x00007f26a0e91d82 in create_jit_types (llvm=0x2397c40) at
src/gallium/auxiliary/draw/draw_llvm.c:338
#3  0x00007f26a0e91e41 in get_context_ptr_type (llvm=0x2397c40) at
src/gallium/auxiliary/draw/draw_llvm.c:353
#4  0x00007f26a0e94b97 in draw_llvm_generate (llvm=0x2397c40,
variant=0x2821690, elts=0 '\000')
    at src/gallium/auxiliary/draw/draw_llvm.c:1287
#5  0x00007f26a0e920bf in draw_llvm_create_variant (llvm=0x2397c40,
num_inputs=3, key=0x7fff8eb754a0)
    at src/gallium/auxiliary/draw/draw_llvm.c:456
#6  0x00007f26a0e9811a in llvm_middle_end_prepare (middle=0x23a2bd0, in_prim=7,
opt=3, max_vertices=0x239fdd8)
    at src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c:162
#7  0x00007f26a0df0fca in vsplit_prepare (frontend=0x239fda0, in_prim=7,
middle=0x23a2bd0, opt=3)
    at src/gallium/auxiliary/draw/draw_pt_vsplit.c:175
#8  0x00007f26a0de4c17 in draw_pt_arrays (draw=0x2396c40, prim=7, start=0,
count=4)
    at src/gallium/auxiliary/draw/draw_pt.c:134
#9  0x00007f26a0de58bf in draw_vbo (draw=0x2396c40, info=0x7fff8eb758c0)
    at src/gallium/auxiliary/draw/draw_pt.c:534
#10 0x00007f26a0af41d7 in llvmpipe_draw_vbo (pipe=0x234fb70,
info=0x7fff8eb758c0)
    at src/gallium/drivers/llvmpipe/lp_draw_arrays.c:85
#11 0x00007f26a0c713c0 in st_draw_vbo (ctx=0x23f9270, arrays=0x2472008,
prims=0x247059c, nr_prims=64, ib=0x0, 
    index_bounds_valid=1 '\001', min_index=0, max_index=255, tfb_vertcount=0x0)
    at src/mesa/state_tracker/st_draw.c:1126
#12 0x00007f26a0d1220b in vbo_exec_vtx_flush (exec=0x246fd60, keepUnmapped=0
'\000')
    at src/mesa/vbo/vbo_exec_draw.c:407
#13 0x00007f26a0d0c903 in vbo_exec_End () at src/mesa/vbo/vbo_exec_api.c:766
#14 0x00000000004c0c91 in drawQuad (x=1, y=3, color=0x7fff8eb75d00)
    at piglit/tests/glean/tblend.cpp:161
#15 0x00000000004c2037 in GLEAN::BlendFuncTest::runFactors (this=0x846aa0,
srcFactorRGB=776, srcFactorA=32770, 
    dstFactorRGB=768, dstFactorA=771, opRGB=32774, opA=32774,
constantColor=0x7fff8eb75f18, config=..., 
    env=..., rgbTolerance=1, alphaTolerance=1) at
piglit/tests/glean/tblend.cpp:547
#16 0x00000000004c2a16 in GLEAN::BlendFuncTest::runCombo (this=0x846aa0, r=...,
w=..., p=..., env=..., 
    rgbTolerance=1, alphaTolerance=1) at piglit/tests/glean/tblend.cpp:627
#17 0x00000000004c33e2 in GLEAN::BlendFuncTest::runOne (this=0x846aa0, r=...,
w=...)
    at piglit/tests/glean/tblend.cpp:883
#18 0x00000000004c6358 in GLEAN::BaseTest<GLEAN::BlendFuncResult>::run
(this=0x846aa0, environment=...)
    at piglit/tests/glean/tbase.h:331
#19 0x00000000004ad65c in main (argc=7, argv=0x7fff8eb763c8) at
piglit/tests/glean/main.cpp:141

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list