From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 86663] [radeonsi] Black squares in Sanctum 2
Date: Mon, 24 Nov 2014 14:38:09 +0000
Message-ID:
Bug ID
86663
Summary
[radeonsi] Black squares in Sanctum 2
Product
Mesa
Version
git
Hardware
x86-64 (AMD64)
OS
Linux (All)
Status
NEW
Severity
normal
Priority
medium
Component
Drivers/Gallium/radeonsi
Assignee
dri-devel@lists.freedesktop.org
Reporter
daniel@constexpr.org
Created attachment 109943 [details]
Sanctum 2 (map Trainstation) with highest texture quality setting
(I fail at bugzilla today :/) On some maps in Sanctum 2 I'm getting black squares in some spots. The squares always seem to be the same screen-space size (120=C3=97120 pixe= ls, some are wider/taller but that could just be overlapping squares), but are cente= red around fixed positions in the game world and not aligned to a screen-space grid. Moving the camera or character can cause some of them to disappear/reappear. The squares don't just cover the world geometry, but also the user interface including the hud and menu, and even loading screens. This happens with and without R600_DEBUG=3Dnohyperz. It does not happen with fglrx 14.9. It doesn't happen on all maps, but for those affected (e.g. Trainstation) i= t is 100% reproducible. Lowering texture quality in the game's options reduces the number of black squares. For the screenshots I had all other settings at their lowest value (except bloom turned on as that is required for the game to render correctl= y, even on other drivers). I have tried to create an apitrace showing the problem but glretrace crashes inside glDrawRangeElements() shortly before getting to the buggy part when replaying with either radeonsi or fglrx. I can still provide it if anyone is interested, but it's probably not appropriate to link here.
| What | Removed | Added |
|---|---|---|
| Attachment #109943 is obsolete | 1 |
Created attachment 109944 [details]
Sanctum 2 (map Trainstation) with highest texture quality setting
Created attachment 109945 [details]
Sanctum 2 (map Trainstation) with lowest texture quality setting
Created attachme=
nt 109946 [details]
Deadfall Adventures menu screen
I have also noticed similar black squares in the menu screen of Deadfall
Adventures. In that case, changing the texture quality to the lowest setting
gets rid of them. Changing all other video settings from highest to lowest
reduces the size of the squares from ~104=C2=B2 pixels to 50=C2=B2 pixels.
I guess the root cause might just be single NaN/negative fragments that then
get propagated by a subsequent screen-space filter into a whole square?
Neither game has any VGPR register spilling warnings in their console outpu=
t so
it's not that.
Oh, and this is all with Mesa 10.5.0-devel (git-fecae46), but I remember al=
so
seeing this with older versions.
(In reply to Daniel Scharrer from comment #4) > I guess the root cause might just be single NaN/= negative fragments that then > get propagated by a subsequent screen-space filter into a whole square= ? I think you nailed it. Yes, NaNs must be causing this. The question is how = they occur.
(In reply to Marek Ol=C5=A1=C3=A1k from comment #6) > The question is how they occur. Right, any idea how to track that down? I'll try to figure out why glretrace crashes. (In reply to Christoph Haag from com= ment #7) > Is bug 83510 the same problem? Looks different enough to me. For example in your videos on that bug the HU= D is alpha-blended just fine over the black spots.
FYI, the black squares in Sanctum 2 are also fixed by the legacy RCP workaround [1], so this may be the same root cause as in bug 83510 after all. No change in the Deadfall Adventures menu screen though. [1] http://lists.freedesktop.org/archives/mesa-dev/2014-December/071973.html
Created attachment 110770 [details] Deadfall Adventures menu screen with DX10_CLAMP patch Setting the DX10_CLAMP bit [1] also fixes the black squares in Sanctum 2. In Deadfall Adventures however there are still much smaller black squares as can be seen in the attached screenshot. [1] http://lists.freedesktop.org/archives/mesa-dev/2014-December/072402.html
| What | Removed | Added |
|---|---|---|
| Status | NEW | RESOLVED |
| Resolution | --- | FIXED |
The Sanctum issue has been fixed with commit http://cgit.freedesktop.org/mesa/mesa/commit/?id=2150db4d5daad3781876254d2b440367afd756cd