Skip to contentSkip to conversation

Random lines being rendered when playing Dolphin on radeonsi (w/ apitrace)

Bug 93648 [email protected] 1 participant 8 messages Jan 9, 2016 – Jan 25, 2016

lore
Share & tools
lore
#0 lore raw

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

Bug ID: 93648
Summary: Random lines being rendered when playing Dolphin on
radeonsi (w/ apitrace)
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

We recently setup Dolphin's automated rendering tests on Fiji XT with Mesa/amdgpu. It started detected a random rendering issue which I think we can attribute to a driver bug.

See https://fifoci.dolphin-emu.org/compare/1086020-1085934/ . Left side has the "bad" rendering, right side the "good" rendering.

The issue is properly captured in this apitrace:
http://delroth.net/radeon-unpredictable.trace -- rendering it on my Fiji XT system shows the lines but rendering it on i965 doesn't.

We have also had reports of users seeing this in action on Pitcairn GPUs:
https://bugs.dolphin-emu.org/issues/9239

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

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

--- Comment #1 from Pierre Bourdon <[email protected]> --- Someone on IRC just reported something that sounds like the same issue, but on r600.

It's likely that this issue comes from geometry shaders, which we are using to generate stripes from lines. Disabling the use of geometry shaders breaks some features in Dolphin but fixes that particular problem.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

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

Pierre Bourdon <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|Drivers/Gallium/radeonsi    |Mesa core
           Assignee|[email protected] |[email protected].
                   |.org                        |org
         QA Contact|[email protected] |[email protected].
                   |.org                        |org

--- Comment #2 from Pierre Bourdon <[email protected]> ---
I haven't been able to test that myself, but other Dolphin users have reported the same symptoms on Intel Sandybridge IGPs. Our automated tests on Broadwell don't seem see that issue however, and my own laptop on Haswell doesn't see that issue either.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 93648] Random lines being rendered when playing Dolphin (geometry shaders related, w/ apitrace)

In reply to [email protected]

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

Ilia Mirkin <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|Mesa core                   |Drivers/Gallium/radeonsi
           Assignee|[email protected]. |[email protected]
                   |org                         |.org
         QA Contact|[email protected]. |[email protected]
                   |org                         |.org

--- Comment #3 from Ilia Mirkin <[email protected]> ---
I tested on a SNB and couldn't reproduce any artifacts on the apitrace (after forcing ARB_conservative_depth on). Even if I could, it'd be very surprising if the issues were related. Unless you have concrete evidence to the contrary, I'd keep it to one bug per issue that you see. Issues can be combined later on, but are difficult to break apart. Switching this one back to radeonsi.

Any issues you see on other hardware should include an apitrace taken on that hw.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 93648] Random lines being rendered when playing Dolphin (geometry shaders related, w/ apitrace)

In reply to [email protected]

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

--- Comment #4 from Timothy Arceri <[email protected]> --- (In reply to Ilia Mirkin from comment #3)

Quoted 9 lines

I tested on a SNB and couldn't reproduce any artifacts on the apitrace (after forcing ARB_conservative_depth on). Even if I could, it'd be very surprising if the issues were related. Unless you have concrete evidence to the contrary, I'd keep it to one bug per issue that you see. Issues can be combined later on, but are difficult to break apart. Switching this one back to radeonsi.

Any issues you see on other hardware should include an apitrace taken on that hw.

I think Pierre was referring to bug #93418 it already has an apitrace for SNB I tried it a while ago on my Ivy Bridge and it also worked fine there.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 93648] Random lines being rendered when playing Dolphin (geometry shaders related, w/ apitrace)

In reply to [email protected]

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

--- Comment #5 from Nicolai H�hnle <[email protected]> ---
Thanks again for the report. Analysing the apitrace suggests we're not handling geometry shader primitive types correctly, I'm looking into it.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 93648] Random lines being rendered when playing Dolphin (geometry shaders related, w/ apitrace)

In reply to [email protected]

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

--- Comment #6 from Nicolai H�hnle <[email protected]> --- Found the bug: we didn't properly update a piece of state in a specific (but not all that unusual) sequence of operations involving geometry shaders.

I have a preliminary series containing the fix at
http://cgit.freedesktop.org/~nh/mesa/log/?h=shader-state

I remember that you mentioned other rendering bugs in Dolphin that showed up using your automated tests, but I don't think you've filed bug reports for them. Of course they may well have had the same root cause, but if any of them persist after the fix for this bug, I appreciate similarly high quality bug reports in the future :)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 93648] Random lines being rendered when playing Dolphin (geometry shaders related, w/ apitrace)

In reply to [email protected]

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

Nicolai H�hnle <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Nicolai H�hnle <[email protected]> --- The fix is now in Mesa master:

commit 004fcd423011d45f746d571be47062feeea75455

Author: Nicolai H�hnle <[email protected]>
Date:   Fri Jan 22 17:04:48 2016 -0500

radeonsi: ensure that VGT_GS_MODE is sent when necessary

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel