Bug 41819 - s.t.a.l.k.e.r. SoC has completely messed up geometry
Summary: s.t.a.l.k.e.r. SoC has completely messed up geometry
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r300 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-15 12:20 UTC by almos
Modified: 2013-01-12 12:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description almos 2011-10-15 12:20:21 UTC
Tried with wine 1.3.30 and current mesa master. Tons of this is printed to the console:
radeon: The kernel rejected CS, see dmesg for more information.

dmesg:
[306467.467482] radeon 0000:01:00.0: (PW 1) Vertex array 0 need 729736 dwords have 524288 dwords
[306467.467489] [drm:r100_cs_track_check] *ERROR* Max indices 91217
[306467.467493] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[306467.497490] radeon 0000:01:00.0: (PW 1) Vertex array 0 need 396190 dwords have 203776 dwords
[306467.497500] [drm:r100_cs_track_check] *ERROR* Max indices 79238
[306467.497505] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[306467.732599] radeon 0000:01:00.0: (PW 1) Vertex array 0 need 729736 dwords have 524288 dwords
[306467.732608] [drm:r100_cs_track_check] *ERROR* Max indices 91217
[306467.732612] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[306467.756836] radeon 0000:01:00.0: (PW 1) Vertex array 0 need 396190 dwords have 203776 dwords
[306467.756845] [drm:r100_cs_track_check] *ERROR* Max indices 79238
[306467.756849] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[306467.956614] radeon 0000:01:00.0: (PW 1) Vertex array 0 need 729736 dwords have 524288 dwords
[306467.956623] [drm:r100_cs_track_check] *ERROR* Max indices 91217
[306467.956627] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[306467.980994] radeon 0000:01:00.0: (PW 1) Vertex array 0 need 396190 dwords have 203776 dwords
[306467.981035] [drm:r100_cs_track_check] *ERROR* Max indices 79238
[306467.981038] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[306468.158985] radeon 0000:01:00.0: (PW 1) Vertex array 0 need 729736 dwords have 524288 dwords
[306468.158993] [drm:r100_cs_track_check] *ERROR* Max indices 91217
[306468.158997] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !
[306468.181099] radeon 0000:01:00.0: (PW 1) Vertex array 0 need 396190 dwords have 203776 dwords
[306468.181108] [drm:r100_cs_track_check] *ERROR* Max indices 79238
[306468.181112] [drm:radeon_cs_ioctl] *ERROR* Invalid command stream !

This game worked almost flawlessly with wine 1.3.20 and mesa master of that time. Then I upgraded wine to 1.3.28, and the game started to crash immediately before starting a loaded savegame. Now with 1.3.30 it loads up, but renders garbage. Unfortunately, along the wine upgrades I also upgraded mesa, so I cannot really tell which component is the culprit.

All I could find out is that with wine 1.3.30 and mesa 7.10.3 the loading stops at the last stage (CLIENT: synchronizing...) with this:
err:ntdll:RtlpWaitForCriticalSection section 0xd1a220 "?" wait timed out in thread 0053, blocked by 004e, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7dc01000 "x11drv_main.c: X11DRV_CritSection" wait timed out in thread 0054, blocked by 004e, retrying (60 sec)
fixme:dbghelp:elf_search_auxv can't find symbol in module
fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpFilterMemory
fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpScanMemory
err:ntdll:RtlpWaitForCriticalSection section 0xd1a220 "?" wait timed out in thread 0053, blocked by 004e, retrying (60 sec)
err:ntdll:RtlpWaitForCriticalSection section 0x7dc01000 "x11drv_main.c: X11DRV_CritSection" wait timed out in thread 0054, blocked by 004e, retrying (60 sec)
fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpWithDataSegs
err:seh:raise_exception Unhandled exception code c0000194 flags 0 addr 0x7ef625f2
Comment 1 Marek Olšák 2011-10-15 12:40:41 UTC
Please try again with this environment variable:

MESA_EXTENSION_OVERRIDE=-GL_ARB_draw_elements_base_vertex
Comment 2 almos 2011-10-15 13:50:59 UTC
(In reply to comment #1)
> Please try again with this environment variable:
> 
> MESA_EXTENSION_OVERRIDE=-GL_ARB_draw_elements_base_vertex

With that extension disabled the game runs with wine 1.3.30 and current mesa master as good as it did with wine 1.3.20 and mesa of that time. The only glitch is that every 10th grass is bright green (randomly changes which ones). Of course this is with static lighting.
Comment 3 Marek Olšák 2011-10-15 14:16:09 UTC
What happens if you revert 5506f6ef966b8883e575a3f60ce96ad42ee6ffd2?
Comment 4 almos 2011-10-15 15:17:01 UTC
(In reply to comment #3)
> What happens if you revert 5506f6ef966b8883e575a3f60ce96ad42ee6ffd2?
The problem disappears, and the geometry becomes good.
Comment 5 Tomasz P. 2013-01-11 21:55:20 UTC
Is it still a issue with current wine,mesa ,kernel ?
Comment 6 almos 2013-01-12 00:13:12 UTC
(In reply to comment #5)
> Is it still a issue with current wine,mesa ,kernel ?

Sorry, I don't have the rv350 anymore to test it. I guess Marek committed his patch, so it should be safe to close this.


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.