Bug 25177 - [r6xx][RV635] mipmap crash with secondlife
Summary: [r6xx][RV635] mipmap crash with secondlife
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Radeon (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-18 21:03 UTC by Shawn Starr
Modified: 2009-11-25 22:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Shawn Starr 2009-11-18 21:03:22 UTC
enable VBOs with secondlife then app will crash when rendering stuff

bt:
==

#0  0x00007ffff0672f25 in raise () from /lib/libc.so.6
#1  0x00007ffff0675d60 in abort () from /lib/libc.so.6
#2  0x00007ffff066c04a in __assert_fail () from /lib/libc.so.6
#3  0x00007fffe2d0cf4b in migrate_image_to_miptree (ctx=<value optimized out>, texObj=0x5631a00)
    at radeon_mipmap_tree.c:422
#4  radeon_validate_texture_miptree (ctx=<value optimized out>, texObj=0x5631a00)
    at radeon_mipmap_tree.c:585
#5  0x00007fffe2d038ce in r600_validate_texture (ctx=0x40d0150) at r600_texstate.c:726
#6  r600ValidateBuffers (ctx=0x40d0150) at r600_texstate.c:772
#7  0x00007fffe2d00820 in r700TryDrawPrims (ctx=0x40d0150, arrays=0x40c1aa8, prim=0x7fffffffd160,
    nr_prims=1, ib=0x7fffffffd140, index_bounds_valid=<value optimized out>, min_index=0, max_index=288)
    at r700_render.c:879
#8  r700DrawPrims (ctx=0x40d0150, arrays=0x40c1aa8, prim=0x7fffffffd160, nr_prims=1, ib=0x7fffffffd140,
    index_bounds_valid=<value optimized out>, min_index=0, max_index=288) at r700_render.c:966
#9  0x00007fffe2da0aa6 in vbo_validated_drawrangeelements (ctx=0x40d0150, mode=4,
    index_bounds_valid=1 '\001', start=0, end=288, count=1536, type=5123, indices=0x0, basevertex=0)
    at vbo/vbo_exec_array.c:662
#10 0x00007fffe2da0d0f in vbo_exec_DrawRangeElementsBaseVertex (mode=4, start=0, end=288, count=1536,
    type=5123, indices=0x0, basevertex=0) at vbo/vbo_exec_array.c:758
#11 0x00007fffe2da0db0 in vbo_exec_DrawRangeElements (mode=4760, start=4760, end=6, count=-1,
    type=142879792, indices=0x67616d69203d3d20) at vbo/vbo_exec_array.c:775
#12 0x0000000001920829 in LLVertexBuffer::drawRange(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) const ()
#13 0x00000000006b027e in LLRenderPass::pushBatch(LLDrawInfo&, unsigned int, int) ()
#14 0x00000000006acb23 in LLRenderPass::pushBatches(unsigned int, unsigned int, int) ()
#15 0x00000000006bd970 in LLDrawPoolSimple::render(int) ()
#16 0x0000000001689f95 in LLPipeline::renderGeom(LLCamera&, int) ()
#17 0x000000000128fd22 in display(int, float, int, int) ()
#18 0x00000000005b8201 in LLAppViewer::mainLoop() ()
#19 0x0000000001720a59 in main ()

full bt
====

#3  0x00007fffe2d0cf4b in migrate_image_to_miptree (ctx=<value optimized out>, texObj=0x5631a00)
    at radeon_mipmap_tree.c:422
        dest = 0x170000010d <Address 0x170000010d out of bounds>
        __PRETTY_FUNCTION__ = "migrate_image_to_miptree"
#4  radeon_validate_texture_miptree (ctx=<value optimized out>, texObj=0x5631a00)
    at radeon_mipmap_tree.c:585
        dst_miptree = 0x7f6f53a
        faces = 1
        face = 0
        level = 0
        img = 0x6532110
        __func__ = "radeon_validate_texture_miptree"
#5  0x00007fffe2d038ce in r600_validate_texture (ctx=0x40d0150) at r600_texstate.c:726
No locals.
#6  r600ValidateBuffers (ctx=0x40d0150) at r600_texstate.c:772
        t = <value optimized out>
        rmesa = 0x4017930
        rrb = 0x0
        i = 0
        ret = <value optimized out>
#7  0x00007fffe2d00820 in r700TryDrawPrims (ctx=0x40d0150, arrays=0x40c1aa8, prim=0x7fffffffd160,
    nr_prims=1, ib=0x7fffffffd140, index_bounds_valid=<value optimized out>, min_index=0, max_index=288)
    at r700_render.c:879
        __func__ = "r700TryDrawPrims"
        __warn_once = 1
#8  r700DrawPrims (ctx=0x40d0150, arrays=0x40c1aa8, prim=0x7fffffffd160, nr_prims=1, ib=0x7fffffffd140,
    index_bounds_valid=<value optimized out>, min_index=0, max_index=288) at r700_render.c:966
No locals.
#9  0x00007fffe2da0aa6 in vbo_validated_drawrangeelements (ctx=0x40d0150, mode=4,
    index_bounds_valid=1 '\001', start=0, end=288, count=1536, type=5123, indices=0x0, basevertex=0)
    at vbo/vbo_exec_array.c:662
        ib = {count = 1536, type = 5123, obj = 0x891adc0, ptr = 0x0}
        prim = {{mode = 4, indexed = 1, begin = 1, end = 1, weak = 0, pad = 0, start = 0, count = 1536,
            basevertex = 0}}
#10 0x00007fffe2da0d0f in vbo_exec_DrawRangeElementsBaseVertex (mode=4, start=0, end=288, count=1536,
    type=5123, indices=0x0, basevertex=0) at vbo/vbo_exec_array.c:758
        ctx = 0x40d0150
        warnCount = 0
#11 0x00007fffe2da0db0 in vbo_exec_DrawRangeElements (mode=4760, start=4760, end=6, count=-1,
    type=142879792, indices=0x67616d69203d3d20) at vbo/vbo_exec_array.c:775
No locals.
...
Comment 1 Shawn Starr 2009-11-18 21:05:27 UTC
Seems to happen w or w/o VBOs enabled, setting texture memory to 256MB triggers it
Comment 2 Shawn Starr 2009-11-18 21:07:52 UTC
Forget about memory, this is just crashing period :/
Comment 3 Maciej Cencora 2009-11-19 00:56:22 UTC
Could you retest it with newest mesa_7_7_branch? I've merged many miptree fixes just yesterday.
Comment 4 Shawn Starr 2009-11-19 12:30:57 UTC
That was from yesterday's merges around 2009-11-18 23:55
Comment 5 Maciej Cencora 2009-11-19 13:18:55 UTC
(In reply to comment #4)
> That was from yesterday's merges around 2009-11-18 23:55
> 

I'll try reproducing this bug on my machine.
Comment 6 Maciej Cencora 2009-11-23 13:10:17 UTC
Please check if commit 960464e42dce138fde11c379ce7744bc4be14aa2 on mesa_7_7_branch fixes the problem.
Comment 7 Shawn Starr 2009-11-25 22:13:34 UTC
Looks fixed to me, closing.


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.