All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 33172] New: [r600g] ingame rendering broken (black screen) in ut2003
@ 2011-01-15 23:01 bugzilla-daemon
  2011-01-15 23:21 ` [Bug 33172] " bugzilla-daemon
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bugzilla-daemon @ 2011-01-15 23:01 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=33172

           Summary: [r600g] ingame rendering broken (black screen) in
                    ut2003
           Product: DRI
           Version: DRI CVS
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: DRM/Radeon
        AssignedTo: dri-devel@lists.freedesktop.org
        ReportedBy: liquid.acid@gmx.net


Hello!

Found some time to retest this popular game with fresh git pulls and it looks
like that it completly broke. The menu renders fine, but upon entering the
actual game you just get a black screen.

The kernel log then produces these nice messages:
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -12!
...

System:
ATI Technologies Inc Radeon HD 4770 [RV740]

drm-radeon-testing kernel
libdrm, mesa and xf86-video-ati are all git master
xorg-server-1.9.3.901

Greets,
Tobias

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 33172] [r600g] ingame rendering broken (black screen) in ut2003
  2011-01-15 23:01 [Bug 33172] New: [r600g] ingame rendering broken (black screen) in ut2003 bugzilla-daemon
@ 2011-01-15 23:21 ` bugzilla-daemon
  2011-01-16 15:35 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2011-01-15 23:21 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=33172

Jan Buecken <jb.faq@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jb.faq@gmx.de

--- Comment #1 from Jan Buecken <jb.faq@gmx.de> 2011-01-15 15:21:09 PST ---
I have the same problem with ut2004 (r600g-64bit), and my kernel log is filled
with
[drm:radeon_cs_ioctl] *ERROR* Failed to parse relocation -12!
also.
(ut2003 simply crashes ingame with r600g-32bit , its all ok with r600c)

System:
Radeon HD Mobility 2600 (rv630)
amd64 architecture

d-r-t-git and 2.6.37 tested
libdrm, mesa, xf86-video-ati are all git master
xorg-server-1.9.3.901
(gentoo)

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 33172] [r600g] ingame rendering broken (black screen) in ut2003
  2011-01-15 23:01 [Bug 33172] New: [r600g] ingame rendering broken (black screen) in ut2003 bugzilla-daemon
  2011-01-15 23:21 ` [Bug 33172] " bugzilla-daemon
@ 2011-01-16 15:35 ` bugzilla-daemon
  2011-01-19 22:35 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2011-01-16 15:35 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=33172

Alex Deucher <agd5f@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Product|DRI                         |Mesa
            Version|DRI CVS                     |git
          Component|DRM/Radeon                  |Drivers/Gallium/r600

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 33172] [r600g] ingame rendering broken (black screen) in ut2003
  2011-01-15 23:01 [Bug 33172] New: [r600g] ingame rendering broken (black screen) in ut2003 bugzilla-daemon
  2011-01-15 23:21 ` [Bug 33172] " bugzilla-daemon
  2011-01-16 15:35 ` bugzilla-daemon
@ 2011-01-19 22:35 ` bugzilla-daemon
  2011-01-26 19:46 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2011-01-19 22:35 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=33172

--- Comment #2 from Tobias Jakobi <liquid.acid@gmx.net> 2011-01-19 14:35:02 PST ---
We (Jan and me) did some tests today and found out that the issue is probably
related to the use of VBOs (or more specifically: not using them).

In ut2004 there is a option called 'UseVBO' for the OpenGL renderer. I guess
enabling this one lets the engine use the 'ARB_vertex_buffer_object' extension.
It turned out that in my ut2004 config it was enabled, but Jan had it disabled.
So after enabling it for Jan the rendering suddenly worked. And when I disabled
UseVBO on my system it suddenly failed and produced the black screen, plus the
relocation parser errors in the kernel log.

I can only guess here, but maybe the problem is with Gallium's immediate mode
implementation -- if that's how the engine submits vertices when ARB_vbo is not
used.

The next thing we found out is even more interesting: In ut2003 there is no
such option, so he had to stick to the 'immediate mode' rendering path. All the
tests were done on Jan's system. We noticed that is was possible to get ingame
when being logged in as root. This only worked for a short time, maybe like 10
seconds, before the game segfaulted. After it segfaulted, it wasn't possible
any more to get ingame. The game just instantly segfaulted. Restarting X didn't
help, only a full reboot did the trick.

Another thing that worked: Reboot, start ut03 as root, watch some game scenary
for like 3 seconds, quickly exit the game, start ut03 as root, repear
procedure...

The maximum amount of time we managed to get into game was three. After that it
didn't work any more.

It was like we hit some memory leak, maybe in VRAM?

Then we switched over to ut2004 and disabled UseVBO there. We got the black
screen (with the kernel messages) when we got ingame and then we waited a bit.
But just like ut03 the game segfaulted after some seconds and we even managed
it at one time to trigger the kernel OOM killer.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 33172] [r600g] ingame rendering broken (black screen) in ut2003
  2011-01-15 23:01 [Bug 33172] New: [r600g] ingame rendering broken (black screen) in ut2003 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2011-01-19 22:35 ` bugzilla-daemon
@ 2011-01-26 19:46 ` bugzilla-daemon
  2011-01-27 15:28 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2011-01-26 19:46 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=33172

--- Comment #3 from Tobias Jakobi <liquid.acid@gmx.net> 2011-01-26 11:46:00 PST ---
New tests on my system with ut2004. UseVBO is disabled, so I only get a black
screen ingame.

I can still play though (by ear so to speak) and while doing this I watched
memory consumption of the process:
Monitoring ut2004-bin with htop showed that during peak times the process has
more than 50GiB virtual mem (VIRT) allocated. So there's clearly a mem leak
here.

Could valgrind help to detect such a leak?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 33172] [r600g] ingame rendering broken (black screen) in ut2003
  2011-01-15 23:01 [Bug 33172] New: [r600g] ingame rendering broken (black screen) in ut2003 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2011-01-26 19:46 ` bugzilla-daemon
@ 2011-01-27 15:28 ` bugzilla-daemon
  2011-01-27 15:49 ` bugzilla-daemon
  2011-02-01 21:04 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2011-01-27 15:28 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=33172

--- Comment #4 from Henri Verbeet <hverbeet@gmail.com> 2011-01-27 07:28:26 PST ---
(In reply to comment #3)
> Monitoring ut2004-bin with htop showed that during peak times the process has
> more than 50GiB virtual mem (VIRT) allocated. So there's clearly a mem leak
> here.
> 
That's 64-bit ut2004, right?

> Could valgrind help to detect such a leak?
Probably, but it's certainly not going to make it any faster.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 33172] [r600g] ingame rendering broken (black screen) in ut2003
  2011-01-15 23:01 [Bug 33172] New: [r600g] ingame rendering broken (black screen) in ut2003 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2011-01-27 15:28 ` bugzilla-daemon
@ 2011-01-27 15:49 ` bugzilla-daemon
  2011-02-01 21:04 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2011-01-27 15:49 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=33172

--- Comment #5 from Tobias Jakobi <liquid.acid@gmx.net> 2011-01-27 07:49:02 PST ---
(In reply to comment #4)
> That's 64-bit ut2004, right?
Yes.

> Probably, but it's certainly not going to make it any faster.
That's a given. And it didn't work anyway, since it looks like that gentoo
strips the library loader. valgrind apparantly doesn't like that and fails on
startup.

Have to take another look when I find some time.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 33172] [r600g] ingame rendering broken (black screen) in ut2003
  2011-01-15 23:01 [Bug 33172] New: [r600g] ingame rendering broken (black screen) in ut2003 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2011-01-27 15:49 ` bugzilla-daemon
@ 2011-02-01 21:04 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2011-02-01 21:04 UTC (permalink / raw)
  To: dri-devel

https://bugs.freedesktop.org/show_bug.cgi?id=33172

Tobias Jakobi <liquid.acid@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from Tobias Jakobi <liquid.acid@gmx.net> 2011-02-01 13:04:35 PST ---
Looks like the problem got fixed by the recent changes to the vertex buffer
upload code. Both ut2003 and ut2004 now work flawlessly.

Thanks Marek!

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-02-01 21:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-15 23:01 [Bug 33172] New: [r600g] ingame rendering broken (black screen) in ut2003 bugzilla-daemon
2011-01-15 23:21 ` [Bug 33172] " bugzilla-daemon
2011-01-16 15:35 ` bugzilla-daemon
2011-01-19 22:35 ` bugzilla-daemon
2011-01-26 19:46 ` bugzilla-daemon
2011-01-27 15:28 ` bugzilla-daemon
2011-01-27 15:49 ` bugzilla-daemon
2011-02-01 21:04 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.