https://bugs.freedesktop.org/show_bug.cgi?id=39572
Summary: Cogs: GPU hang Product: Mesa Version: git Platform: Other URL: http://www.humblebundle.com/ OS/Version: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r600 AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: sa@whiz.se
Created an attachment (id=49589) --> (https://bugs.freedesktop.org/attachment.cgi?id=49589) dmesg output
The game Cogs (from the Humble Indie Bundle) is causing a GPU hang. Unless the process is killed quickly the reset functionality doesn't seem to work so a full reboot is necessary.
The hang only happens if shadows is turned on in the game options, which it is by default so the hang happens right after launching the game.
No difference between 7.11 and git master.
Something else seems to be wrong with the game as it's pegging the CPU at 100% and performance is just a few frames per second.
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.2.902 -- mesa: 860c51d82711936d343b55aafb46befc8c032fe6 -- drm: 2.4.26 -- kernel: 3.0
https://bugs.freedesktop.org/show_bug.cgi?id=39572
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeff.raber@gmail.com
--- Comment #1 from Alex Deucher agd5f@yahoo.com 2011-07-28 06:42:37 PDT --- *** Bug 39617 has been marked as a duplicate of this bug. ***
https://bugs.freedesktop.org/show_bug.cgi?id=39572
--- Comment #2 from Vadim ptpzz@yandex.ru 2011-07-28 07:13:43 PDT --- Created an attachment (id=49666) View: https://bugs.freedesktop.org/attachment.cgi?id=49666 Review: https://bugs.freedesktop.org/review?bug=39572&attachment=49666
[PATCH] r600g: fix vs export count
Does this patch help?
https://bugs.freedesktop.org/show_bug.cgi?id=39572
--- Comment #3 from Sven Arvidsson sa@whiz.se 2011-07-28 13:12:37 PDT --- (In reply to comment #2)
Created an attachment (id=49666)
View: https://bugs.freedesktop.org/attachment.cgi?id=49666 Review: https://bugs.freedesktop.org/review?bug=39572&attachment=49666
[PATCH] r600g: fix vs export count
Does this patch help?
It does! Thank you :)
The game is still really slow, but I'll open another bug about that, possibly first see if it's only on r600g or something common to all Mesa/G3D drivers.
https://bugs.freedesktop.org/show_bug.cgi?id=39572
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #4 from Alex Deucher agd5f@yahoo.com 2011-07-28 16:57:29 PDT --- Pushed: 95ee961f77119826382cfbc617334aed986b72e5
Thanks!
https://bugs.freedesktop.org/show_bug.cgi?id=39572
--- Comment #5 from Vadim ptpzz@yandex.ru 2011-07-29 03:04:49 PDT --- Created an attachment (id=49707) View: https://bugs.freedesktop.org/attachment.cgi?id=49707 Review: https://bugs.freedesktop.org/review?bug=39572&attachment=49707
[PATCH] gallium: vertex buffer optimization
This experimental patch should help with performance in cogs, though it needs more work and testing. I'm not sure if it's the right way to implement such optimization at all.
https://bugs.freedesktop.org/show_bug.cgi?id=39572
--- Comment #6 from Sven Arvidsson sa@whiz.se 2011-07-29 05:23:56 PDT --- (In reply to comment #5)
This experimental patch should help with performance in cogs, though it needs more work and testing. I'm not sure if it's the right way to implement such optimization at all.
It seems to work fine here. There's a night-and-day difference with and without this patch!
https://bugs.freedesktop.org/show_bug.cgi?id=39572
Pavel Ondračka pavel.ondracka@email.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pavel.ondracka@email.cz
--- Comment #7 from Pavel Ondračka pavel.ondracka@email.cz 2011-07-29 07:14:03 PDT --- Just wondering, will this optimization be possible for r300g too?
https://bugs.freedesktop.org/show_bug.cgi?id=39572
--- Comment #8 from Vadim ptpzz@yandex.ru 2011-07-29 21:16:52 PDT --- Created an attachment (id=49735) View: https://bugs.freedesktop.org/attachment.cgi?id=49735 Review: https://bugs.freedesktop.org/review?bug=39572&attachment=49735
r300g support for previous patch (not tested)
(In reply to comment #7)
Just wondering, will this optimization be possible for r300g too?
I think it should be rewritten in more generic way, so that the specific drivers won't need to care about it. I'll look into it.
But if you want to test this in its current state, then you could try attached patch for r300g, it needs to be applied after the previous patch. I can't test without r300 hw though, so I'm not sure it'll work.
https://bugs.freedesktop.org/show_bug.cgi?id=39572
--- Comment #9 from Pavel Ondračka pavel.ondracka@email.cz 2011-07-30 00:14:38 PDT --- (In reply to comment #8)
Created an attachment (id=49735)
View: https://bugs.freedesktop.org/attachment.cgi?id=49735 Review: https://bugs.freedesktop.org/review?bug=39572&attachment=49735
r300g support for previous patch (not tested)
(In reply to comment #7)
Just wondering, will this optimization be possible for r300g too?
I think it should be rewritten in more generic way, so that the specific drivers won't need to care about it. I'll look into it.
But if you want to test this in its current state, then you could try attached patch for r300g, it needs to be applied after the previous patch. I can't test without r300 hw though, so I'm not sure it'll work.
It works fine with my RV530 card.
dri-devel@lists.freedesktop.org