Bug 38220

Summary: [wine] Left 4 Dead: Crash in r600_set_constant_buffer with multicore rendering
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 of crash

Description Sven Arvidsson 2011-06-12 13:04:28 UTC
Created attachment 47874 [details]
backtrace of crash

The game Left 4 Dead (running in Wine) crashes in r600_set_constant_buffer if the option "Multicore rendering" is enabled.

Backtrace from Wine:

=>0 0x7b343de7 r600_set_constant_buffer+0x117(ctx=0x7c1b2728, shader=0, index=0,  buffer=0x7cc3fbfc)  [/home/sa/Programming/gfx/mesa/mesa/src/gallium/drivers/r600/r600_state_common.c:413] in  r600_dri.so (0x7c1bd880)
  1 0x7b4aecd6 st_upload_constants+0xe5(st=0x651138b8, params=0x7c11d8f8, shader_type=0) [/home/sa/Programming/gfx/mesa/mesa/src/mesa/state_tracker/st_atom_constbuf.c:92] in r600_dri.so (0x00000000)

(A backtrace made with gdb is also attached).

Not sure if it's a regression or not, the game suffered from recurring GPU hangs until just recently.

The following messages are found in the kernel log:

[15632.113691] [drm:evergreen_cs_packet_next_reloc] *ERROR* Relocs at 44 after relocations chunk end 32 !
[15632.113695] [drm:evergreen_packet3_check] *ERROR* bad SET_RESOURCE (tex)
[15632.113697] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[15632.115005] [drm:evergreen_cs_packet_next_reloc] *ERROR* Relocs at 44 after relocations chunk end 36 !
[15632.115007] [drm:evergreen_packet3_check] *ERROR* bad SET_RESOURCE (tex)
[15632.115009] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[15632.118327] [drm:evergreen_cs_packet_next_reloc] *ERROR* Relocs at 44 after relocations chunk end 36 !
[15632.118330] [drm:evergreen_packet3_check] *ERROR* bad SET_RESOURCE (tex)
[15632.118331] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[15632.121651] [drm:evergreen_cs_packet_next_reloc] *ERROR* Relocs at 44 after relocations chunk end 36 !
[15632.121654] [drm:evergreen_packet3_check] *ERROR* bad SET_RESOURCE (tex)
[15632.121655] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[15632.124992] [drm:evergreen_cs_packet_next_reloc] *ERROR* Relocs at 44 after relocations chunk end 36 !
[15632.124994] [drm:evergreen_packet3_check] *ERROR* bad SET_RESOURCE (tex)
[15632.124996] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[15632.128348] [drm:evergreen_cs_packet_next_reloc] *ERROR* Relocs at 44 after relocations chunk end 36 !
[15632.128351] [drm:evergreen_packet3_check] *ERROR* bad SET_RESOURCE (tex)
[15632.128352] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[15632.131666] [drm:evergreen_cs_packet_next_reloc] *ERROR* Relocs at 44 after relocations chunk end 36 !
[15632.131668] [drm:evergreen_packet3_check] *ERROR* bad SET_RESOURCE (tex)
[15632.131670] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
Comment 1 Sven Arvidsson 2011-06-12 13:05:08 UTC
And I'm currently running:

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.10.1
-- mesa: git-4176025
-- drm: 2.4.25
-- kernel: 2.6.39.1
Comment 2 Sven Arvidsson 2012-01-08 13:22:02 UTC
This is no longer a problem with current git master.

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.