Bug 41756

Summary: [wine] Alpha Prime crashes in u_upload_data
Product: Mesa Reporter: Sven Arvidsson <sa>
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: backtrace from gdb

Description Sven Arvidsson 2011-10-13 11:51:08 UTC
Created attachment 52308 [details]
backtrace from gdb

The game Alpha Prime (running with Wine 1.3.30) crashes shortly after start with latest git. With 7.11 I get another crash, so I'm not sure if this is a regression or not.

The backtrace from Wine is below, I also attached a backtrace from gdb but I'm not sure if it's good or not.

=>0 0xb7547aa0 in libc.so.6 (+0x10faa0) (0x0032fd80)
  1 0x7b33aae4 u_upload_data+0x73(upload=0x7caea288, min_out_offset=0x32fd80, size=0x1200, data=0x5d16da0, out_offset=0x7cb5ce48, outbuf=0x7cb5ce4c, flushed="═|") [/home/sa/Programming/gfx/mesa/mesa/src/gallium/auxiliary/util/u_upload_mgr.c:220] in r600_dri.so (0x0032fd80)
  2 0x7b33adce u_vbuf_upload_buffers+0x1dd(mgr=0x7cb5ccc0, min_index=0xcbf6, max_index=0xcc3d, instance_count=0x1) [/home/sa/Programming/gfx/mesa/mesa/src/gallium/auxiliary/util/u_vbuf_mgr.c:575] in r600_dri.so (0x0032fd80)
  3 0x7b33bf04 u_vbuf_draw_begin+0x193(mgrb=0x7cb5ccc0, info=0xb9e98c) [/home/sa/Programming/gfx/mesa/mesa/src/gallium/auxiliary/util/u_vbuf_mgr.c:652] in r600_dri.so (0x00b9e98c)
  4 0x7b13ab1b r600_draw_vbo+0x5a(ctx=0x7ccd1908, info=0xb9e98c) [/home/sa/Programming/gfx/mesa/mesa/src/gallium/drivers/r600/r600_state_common.c:571] in r600_dri.so (0x00000003)
  5 0x7b1fd5f1 st_draw_vbo+0x330(ctx=0x7cd079a0, arrays=0x7cd54fec, prims=0xb9ea20, nr_prims=0x1, ib=0xb9ea34, index_bounds_valid=0, min_index=0, max_index=0x47) [/home/sa/Programming/gfx/mesa/mesa/src/mesa/state_tracker/st_draw.c:798] in r600_dri.so (0x00000003)
  6 0x7b2b8a1e vbo_validated_drawrangeelements+0x13d(ctx=0x7cd079a0, mode=0x4, index_bounds_valid=0, start=0xffffffff, end=0xffffffff, count=0xc0, type=0x1403, indices=0x3a4c7b4, basevertex=0xcbf6, numInstances=0x1) [/home/sa/Programming/gfx/mesa/mesa/src/mesa/vbo/vbo_exec_array.c:860] in r600_dri.so (0x000000c0)
  7 0x7b2b8b34 vbo_exec_DrawElementsBaseVertex+0xa3(mode=0x4, count=0xc0, type=0x1403, indices=0x3a4c7b4, basevertex=0xcbf6) [/home/sa/Programming/gfx/mesa/mesa/src/mesa/vbo/vbo_exec_array.c:1040] in r600_dri.so (0x03a4c7b4)
  8 0x7ea887e4 drawPrimitive+0x11e3(device=0x171740, index_count=0xc0, StartIdx=0x53ca, idxSize=0x2, idxData=0x3a42020) [/home/sa/Programming/wine-test/dlls/wined3d/drawprim.c:44] in wined3d (0x00000002)
  9 0x7ea6955b wined3d_device_draw_indexed_primitive+0xda(device=0x171740, start_idx=0x53ca, index_count=0xc0) [/home/sa/Programming/wine-test/dlls/wined3d/device.c:4158] in wined3d (0x02a17b58)
  10 0x7eb72d5e IDirect3DDevice9Impl_DrawIndexedPrimitive+0xcd(iface=0x171710, PrimitiveType=D3DPT_TRIANGLELIST, BaseVertexIndex=0xcbf6, MinVertexIndex=0, NumVertices=0x48, startIndex=0x53ca, primCount=0x40) [/home/sa/Programming/wine-test/dlls/d3d9/device.c:1941] in d3d9 (0x000053ca)
  11 0x00451479 in alphaprime (+0x51478) (0x7eb8f100)
  12 0x7eb6c840 in d3d9 (+0xc83f) (0x7eb74440)
  13 0xe84c245c (0x895cec83)
err:mmtime:TIME_MMTimeStop Timer still active?!
err:d3d:wined3d_wndproc Window 0xc0024 is not registered with wined3d.


System environment:
-- system architecture: 32-bit
-- Linux distribution: Debian unstable
-- GPU: REDWOOD
-- Model: XFX Radeon HD 5670 1GB
-- Display connector: DVI
-- xf86-video-ati: 6.14.2
-- xserver: 1.11.1
-- mesa: 349e4db99e938f8ee8826b0d27e490c66a1e8356
-- drm: 2.4.26
-- kernel: 3.0
Comment 1 Sven Arvidsson 2011-10-15 13:15:26 UTC
This crash can be worked around by using MESA_EXTENSION_OVERRIDE=-GL_ARB_draw_elements_base_vertex 

This is also true for the 7.11 crash (should I file a separate bug for that?)
Comment 2 Sven Arvidsson 2012-01-05 13:44:10 UTC
Game no longer crashes with latest git, but there's rendering errors if the override isn't used.
Comment 3 Sven Arvidsson 2013-10-11 16:32:12 UTC
With Mesa 9.2.1 this seems fixed, will reopen otherwise.

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.