Bug 101969

Summary: Massive graphics corruption with World of Warcraft
Product: Mesa Reporter: Chris Rankin <rankincj>
Component: Drivers/Gallium/radeonsiAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact: Default DRI bug account <dri-devel>
Severity: major    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: possible fix

Description Chris Rankin 2017-07-29 12:03:40 UTC
World of Warcraft's login screen has become jumbled garbage with the latest Mesa from git. I don't recognise anything as being rendered by WoW, although there are elements from other applications and windows dancing all over the place.

I have performed a git bisect, and have identified this commit as the cause:

commit 064550238ef0b44e341b2a50c3147f83c2a6d5b0
Author: Marek Olšák <marek.olsak@amd.com>
Date:   Thu Jul 27 02:40:34 2017 +0200

    radeonsi: use CLEAR_STATE to initialize some registers
    
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>

:040000 040000 621668e602ccd2f36299e329b096586baa920ba0 68d43945fde8fbbfad6ae444546a981af2507b03 M	src

Mesa describes my setup as:

Extended renderer info (GLX_MESA_query_renderer):
    Vendor: X.Org (0x1002)
    Device: AMD BONAIRE (DRM 2.50.0 / 4.12.4, LLVM 5.0.0) (0x665f)
    Version: 17.3.0
    Accelerated: yes
    Video memory: 2048MB
    Unified memory: no
Comment 1 Anton Petrov 2017-07-30 07:52:22 UTC
It's not only WoW. After reboot i see garbage instead of sddm login screen.
Here is a photo https://ibb.co/fQ7dqQ

Radeon HD 7750

Device: AMD CAPE VERDE (DRM 2.50.0 / 4.12.3-gentoo, LLVM 4.0.1) (0x683f)
Version: 17.3.0
Accelerated: yes
Video memory: 1024MB
Unified memory: no
Comment 2 Marek Olšák 2017-07-31 01:09:34 UTC
Created attachment 133143 [details] [review]
possible fix

Can you please test this patch?
Comment 3 Anton Petrov 2017-07-31 03:16:18 UTC
(In reply to Marek Olšák from comment #2)
> Created attachment 133143 [details] [review] [review]
> possible fix
> 
> Can you please test this patch?

Patch did not helped for me. By the way thanks for your great work
Comment 4 Chris Rankin 2017-07-31 19:37:05 UTC
(In reply to Marek Olšák from comment #2)
> Can you please test this patch?

No, it doesn't work for me either.
Comment 5 Chris Rankin 2017-08-01 19:20:18 UTC
Ah, this is now fixed in the latest Mesa-git. I am assuming that this is the relevant commit:

author	Marek Olšák <marek.olsak@amd.com>	2017-07-30 01:37:21 (GMT)
committer	Marek Olšák <marek.olsak@amd.com>	2017-08-01 15:06:38 (GMT)
commit	b9fc9d3f241758ed8a274be7abf68bf448653508 (patch)
tree	982cbf445d27083138874d22599c3fbdb11e0a57
parent	b99dcbfeb344390fea9919199b34e5504f7c84e3 (diff)
radeonsi: fix various CLEAR_STATE issues
Fixes: 064550238ef0 ("radeonsi: use CLEAR_STATE to initialize some registers")
Comment 6 Marek Olšák 2017-08-01 23:53:27 UTC
Yes. Thanks for the bug report. Closing.

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.