Bug 104190

Summary: Artifacts in CSGO map de_cache when shader level is "high" or "very high (default)"
Product: Mesa Reporter: Kristian Nyborg Dahl <krdahl>
Component: Drivers/Gallium/radeonsiAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact: Default DRI bug account <dri-devel>
Severity: normal    
Priority: medium CC: network723
Version: 17.2   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
See Also: https://github.com/ValveSoftware/csgo-osx-linux/issues/1567
Whiteboard:
i915 platform: i915 features:
Attachments: screenshot of artifacts

Description Kristian Nyborg Dahl 2017-12-10 11:28:43 UTC
Created attachment 136066 [details]
screenshot of artifacts

I posted this bug on the valve github page first. They confirmed it, but asked me to report it here.

https://github.com/ValveSoftware/csgo-osx-linux/issues/1567

Your system information

    System information from steam (Steam -> Help -> System Information) in a gist:

Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected

Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 1600X Six-Core Processor
CPU Family: 0x17
CPU Model: 0x1
CPU Stepping: 0x1
CPU Type: 0x0
Speed: 3600 Mhz
12 logical processors
6 physical processors
HyperThreading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Supported
SSE41: Supported
SSE42: Supported
AES: Supported
AVX: Supported
CMPXCHG16B: Supported
LAHF/SAHF: Supported
PrefetchW: Unsupported

Operating System Version:
Linux 4.x (64 bit)
Kernel Name: Linux
Kernel Version: 4.14.4-1-ARCH
X Server Vendor: The X.Org Foundation
X Server Release: 11905000
X Window Manager: KWin
Steam Runtime Version: steam-runtime-beta-release_2017-07-24

Video Card:
Driver: X.Org Radeon RX 580 Series (AMD POLARIS10 / DRM 3.19.0 / 4.14.4-1-ARCH, LLVM 5.0.0)
Driver Version: 3.0 Mesa 17.2.5
OpenGL Version: 3.0
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 144 Hz
VendorID: 0x1002
DeviceID: 0x67df
Revision Not Detected
Number of Monitors: 1
Number of Logical Video Cards: 1
Primary Display Resolution: 1920 x 1080
Desktop Resolution: 1920 x 1080
Primary Display Size: 20.91" x 11.77" (23.98" diag)
53.1cm x 29.9cm (60.9cm diag)
Primary VRAM: 8171 MB

Sound card:
Audio device: ATI R6xx HDMI

Memory:
RAM: 16045 Mb

Miscellaneous:
UI Language: English
LANG: en_US.UTF-8
Total Hard Disk Space Available: 468427 Mb
Largest Free Hard Disk Block: 413929 Mb
VR Headset: None detected

Recent Failure Reports:

    Have you checked for system updates?: Yes and I have tried reinstalling mesa and xf86-video-amdgpu

Please describe your issue in as much detail as possible:

There are artifacts in the rendered ground (so far I have only seen it on de_cache). Two offset black squares with glitches appear around the player in certain areas.

Steps for reproducing this issue:

    Join any game on de_cache
    Set shader level to "high" or "very high (default)"
    Look at artifacts in rendering the ground.
Comment 1 Kristian Nyborg Dahl 2017-12-10 11:30:34 UTC
This was kisak-valve's comment on their github: 

"Hello @Heis, on my AMD test box, mesa 17.2.6 built against llvm 5.0.0 is affected, while llvm 4.0.1 is not affected.

This should also be brought to the attention of your driver vendor if it has not been already."
Comment 2 network723 2017-12-10 19:58:27 UTC
I had same issue on my RX480 (bug 103056), but it appears the video card had a dead VRAM chip. Now I'm back to HD7950 with amdgpu kernel driver, and it looks like TAHITI card is not affected.
Comment 3 Tommy Vestermark 2018-01-31 20:35:06 UTC
I can confirm seeing the same artifacts in CSGO on a R9 285 (Tonga) using Ubuntu 17.10 with Mesa 17.3.2, LLVM 5.0 (Padoka Stable PPA).
Comment 4 Timothy Arceri 2018-04-02 10:43:30 UTC
*** Bug 103056 has been marked as a duplicate of this bug. ***
Comment 5 Kristian Nyborg Dahl 2018-04-02 12:46:44 UTC
(In reply to Kristian Nyborg Dahl from comment #1)
> This was kisak-valve's comment on their github: 
> 
> "Hello @Heis, on my AMD test box, mesa 17.2.6 built against llvm 5.0.0 is
> affected, while llvm 4.0.1 is not affected.
> 
> This should also be brought to the attention of your driver vendor if it has
> not been already."

I just tested with latest available mesa (17.3.7) and llvm (6.0.0.4). Seems to be solved.
Comment 6 Timothy Arceri 2018-04-12 05:37:38 UTC
(In reply to Kristian Nyborg Dahl from comment #5)
> (In reply to Kristian Nyborg Dahl from comment #1)
> > This was kisak-valve's comment on their github: 
> > 
> > "Hello @Heis, on my AMD test box, mesa 17.2.6 built against llvm 5.0.0 is
> > affected, while llvm 4.0.1 is not affected.
> > 
> > This should also be brought to the attention of your driver vendor if it has
> > not been already."
> 
> I just tested with latest available mesa (17.3.7) and llvm (6.0.0.4). Seems
> to be solved.

Great! Thanks for retesting.
Comment 7 Gregor Münch 2018-04-12 09:59:35 UTC
Is it a good idea to close this bug? There seem to be a number of bugs affected by a problem with llvm 5.0. Unfortunatly, LLVM 5.0 series releases no stable builds, so a fix cant be backported there.
I guess it would be also too hard to code somekind of workaround in mesa. Maybe restrict the use of LLVM 5.0 in stable releases?

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.