Bug 38581

Summary: [RADEON:KMS:R600G] wine, counter strike source crashes during gameplay
Product: Mesa Reporter: Brian Paterni <bpaterni>
Component: Drivers/Gallium/r600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: medium CC: sa
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: wine steam/cssource log

Description Brian Paterni 2011-06-22 17:44:56 UTC
since bug 35051 no longer seems to be a problem for me, I've been able to play the game somewhat. Now the problem is that the game always crashes during a firefight. I'm not sure what exactly triggers the crash, but for me this bug is always reproducible on the first engagement with the enemy (terrorists/counter terrorists)

Attached should be a complete wine log of the crash. I believe the problematic portion is up near the middle where a few shaders fail validation:

fixme:d3d_shader:print_glsl_info_log Error received from GLSL shader #89:
fixme:d3d_shader:print_glsl_info_log     error: shader uses too many varying components (36 > 32)

Hardware is rv770 (HD 4850) being run on mesa (git)

Let me know if I can provide more info.
Comment 1 Brian Paterni 2011-06-22 17:54:35 UTC
Created attachment 48311 [details]
wine steam/cssource log
Comment 2 Henri Verbeet 2011-06-23 02:47:59 UTC
That's probably due to the driver reporting too few varyings.
Comment 3 Sven Arvidsson 2011-06-23 03:55:22 UTC
Commit de77324d8f14951e4dc17f570e49451a0cd33121introduced this.

Also discussed on mesa-dev:
http://lists.freedesktop.org/archives/mesa-dev/2011-June/008344.html
Comment 4 Roland Scheidegger 2011-06-23 07:39:38 UTC
Should be fixed by 1e5cef96d184b00eb588b48ecd02386998077d82
Comment 5 Brian Paterni 2011-06-23 09:06:29 UTC
Actually, the driver reporting fewer varyings seems to be only a secondary issue and is not the root cause since git-1e5cef9 still experiences the crash.

I would try and upload an apitrace of the crash, but it looks like it has broken that as well. glretrace reports:

60: warning: unknown call glXDestroyContext
5243: warning: unknown call glXDestroyContext
warning: incomplete call 
5244 ()

warning: incomplete call 
5245 ()

Rendered 0 frames in 0.091652 secs, average of 0 fps
Comment 6 Roland Scheidegger 2011-06-23 10:14:19 UTC
No idea what's going on then.
In any case there certainly should be no more reports of the "too many varying components", though this never should have caused a crash neither, so maybe what you're seeing was really totally unrelated to that.
Comment 7 Brian Paterni 2011-06-25 20:47:09 UTC
It appears I didn't investigate this issue thoroughly enough before filing a bug report here. What I've been seeing is just http://bugs.winehq.org/show_bug.cgi?id=7698 .

In case anyone else is wondering I ended up working around 7698 by following the instructions in the 'known issues' section of the counter strike appdb entry: http://appdb.winehq.org/objectManager.php?sClass=version&iId=3731   (the 'ClientScheme.res' method)

CSSource now plays reasonably well. There are a few artifacts popping in and out over time. Though these artifacts are a great deal less of obstruction to gameplay as the ETQW artifacts discussing in bug 38452 on fdo

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.