[Bug 43771] New: [i915g] src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c:821:lp_build_sample_mipmap: Assertion `img_filter == 1' failed.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 12 17:12:27 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=43771

             Bug #: 43771
           Summary: [i915g]
                    src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c:821:
                    lp_build_sample_mipmap: Assertion `img_filter == 1'
                    failed.
    Classification: Unclassified
           Product: Mesa
           Version: git
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: critical
          Priority: medium
         Component: Drivers/Gallium/i915g
        AssignedTo: dri-devel at lists.freedesktop.org
        ReportedBy: vlee at vmware.com


mesa: 23895cc006f3dbf96a502ddd15e291e071aff25a (master)

Run piglit fragment-and-vertex-texturing on i915g. The test triggers an assert
on i915g but passes on llvmpipe.

$ ./bin/fragment-and-vertex-texturing -autoThe result should be a solid block
of half-bright yellow color
src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c:821:lp_build_sample_mipmap:
Assertion `img_filter == 1' failed.
Trace/breakpoint trap (core dumped)

(gdb) bt
#0  0x01131e18 in _debug_assert_fail (expr=0x1ac1858 "img_filter == 1",
file=0x1ac1824 "src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c", line=821, 
    function=0x1ac19d1 "lp_build_sample_mipmap") at
src/gallium/auxiliary/util/u_debug.c:278
#1  0x011bddd1 in lp_build_sample_mipmap (bld=0xbfa61d08, img_filter=2,
mip_filter=2, s=0x866a61c, t=0x866a2ec, r=0x862a480, ilevel0=0x866f4d4,
ilevel1=0x0, 
    lod_fpart=0x0, colors_lo_var=0x8665344, colors_hi_var=0x85e570c) at
src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c:821
#2  0x011be85f in lp_build_sample_aos (bld=0xbfa61d08, unit=0, s=0x866a61c,
t=0x866a2ec, r=0x862a480, ddx=0xbfa61f40, ddy=0xbfa61f4c, lod_bias=0x0, 
    explicit_lod=0x866b224, texel_out=0xbfa61fb0) at
src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c:1067
#3  0x011a89ae in lp_build_sample_soa (gallivm=0x8431fb8,
static_state=0x86654d4, dynamic_state=0x8664490, type=..., unit=0,
num_coords=2, 
    coords=0xbfa61f34, ddx=0xbfa61f40, ddy=0xbfa61f4c, lod_bias=0x0,
explicit_lod=0x866b224, texel_out=0xbfa61fb0)
    at src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c:1253
#4  0x0116fe1f in draw_llvm_sampler_soa_emit_fetch_texel (base=0x8664488,
gallivm=0x8431fb8, type=..., unit=0, num_coords=2, coords=0xbfa61f34, 
    ddx=0xbfa61f40, ddy=0xbfa61f4c, lod_bias=0x0, explicit_lod=0x866b224,
texel=0xbfa61fb0) at src/gallium/auxiliary/draw/draw_llvm_sample.c:186
#5  0x011aceb4 in emit_tex (bld=0xbfa62060, inst=0x86b6a98,
modifier=LP_BLD_TEX_MODIFIER_EXPLICIT_LOD, texel=0xbfa61fb0)
    at src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c:1145
#6  0x011b06e5 in emit_instruction (bld=0xbfa62060, inst=0x86b6a98,
info=0x1d949e0, pc=0xbfa64758) at
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c:2169
#7  0x011b13c9 in lp_build_tgsi_soa (gallivm=0x8431fb8, tokens=0x8680678,
type=..., mask=0x0, consts_ptr=0x866bfcc, system_values_array=0x86648a4,
pos=0x0, 
    inputs=0xbfa64aac, outputs=0xbfa648ac, sampler=0x8664488, info=0x865abd8)
at src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c:2498
#8  0x0116c2e7 in generate_vs (llvm=0x848a6c8, builder=0x848a690,
outputs=0xbfa648ac, inputs=0xbfa64aac, system_values_array=0x86648a4, 
    context_ptr=0x86260a8, draw_sampler=0x8664488, clamp_vertex_color=1 '\001')
at src/gallium/auxiliary/draw/draw_llvm.c:492
#9  0x0116ef0a in draw_llvm_generate (llvm=0x848a6c8, variant=0x8665490, elts=0
'\000') at src/gallium/auxiliary/draw/draw_llvm.c:1348
#10 0x0116c13e in draw_llvm_create_variant (llvm=0x848a6c8, num_inputs=3,
key=0xbfa65078) at src/gallium/auxiliary/draw/draw_llvm.c:447
#11 0x01171d71 in llvm_middle_end_prepare (middle=0x8494c50, in_prim=7, opt=3,
max_vertices=0x849204c)
    at src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline_llvm.c:174
#12 0x01115ec2 in vsplit_prepare (frontend=0x8492030, in_prim=7,
middle=0x8494c50, opt=3) at src/gallium/auxiliary/draw/draw_pt_vsplit.c:175
#13 0x0110bbaf in draw_pt_arrays (draw=0x84333f8, prim=7, start=0, count=4) at
src/gallium/auxiliary/draw/draw_pt.c:111
#14 0x0110c746 in draw_vbo (draw=0x84333f8, info=0xbfa65494) at
src/gallium/auxiliary/draw/draw_pt.c:501
#15 0x010d7a48 in i915_draw_vbo (pipe=0x84388d0, info=0xbfa65494) at
src/gallium/drivers/i915/i915_context.c:88
#16 0x0195b45f in st_draw_vbo (ctx=0x84d1538, arrays=0x852aa00,
prims=0xbfa6553c, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0,
max_index=3)
    at src/mesa/state_tracker/st_draw.c:1058
#17 0x019ee5ff in vbo_draw_arrays (ctx=0x84d1538, mode=7, start=0, count=4,
numInstances=1) at src/mesa/vbo/vbo_exec_array.c:620
#18 0x019ee757 in vbo_exec_DrawArrays (mode=7, start=0, count=4) at
src/mesa/vbo/vbo_exec_array.c:651
#19 0x0809612e in piglit_draw_rect (x=-1, y=-1, w=2, h=2) at
piglit/tests/util/piglit-util-gl.c:647
#20 0x0806c960 in display () at
piglit/tests/texturing/fragment-and-vertex-texturing.c:147
#21 0x0806c9ab in piglit_display () at
piglit/tests/texturing/fragment-and-vertex-texturing.c:163
#22 0x0806d053 in display () at piglit/tests/util/piglit-framework.c:56
#23 0x00a75c1e in fghRedrawWindow (window=0x8430a38) at freeglut_main.c:210
#24 fghcbDisplayWindow (window=0x8430a38, enumerator=0xbfa65778) at
freeglut_main.c:227
#25 0x00a79590 in fgEnumWindows (enumCallback=0xa75b20 <fghcbDisplayWindow>,
enumerator=0xbfa65778) at freeglut_structure.c:394
#26 0x00a7602e in fghDisplayAll () at freeglut_main.c:249
#27 glutMainLoopEvent () at freeglut_main.c:1450
#28 0x00a76935 in glutMainLoop () at freeglut_main.c:1498
#29 0x0806d78a in main (argc=1, argv=0xbfa659e4) at
piglit/tests/util/piglit-framework.c:294
(gdb) frame 1
#1  0x011bddd1 in lp_build_sample_mipmap (bld=0xbfa61d08, img_filter=2,
mip_filter=2, s=0x866a61c, t=0x866a2ec, r=0x862a480, ilevel0=0x866f4d4,
ilevel1=0x0, 
    lod_fpart=0x0, colors_lo_var=0x8665344, colors_hi_var=0x85e570c) at
src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c:821
821          assert(img_filter == PIPE_TEX_FILTER_LINEAR);
(gdb) l
816                                        row_stride0_vec, img_stride0_vec,
817                                        data_ptr0, s, t, r,
818                                        &colors0_lo, &colors0_hi);
819       }
820       else {
821          assert(img_filter == PIPE_TEX_FILTER_LINEAR);
822          lp_build_sample_image_linear(bld,
823                                       size0,
824                                       row_stride0_vec, img_stride0_vec,
825                                       data_ptr0, s, t, r,

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the dri-devel mailing list