Bug 110575 - [R9 380X] Artifacts in CSGO
Summary: [R9 380X] Artifacts in CSGO
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: git
Hardware: Other Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
Depends on:
Reported: 2019-05-01 20:38 UTC by Danylo
Modified: 2019-09-25 18:49 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:

example of artifacts (1.43 MB, image/png)
2019-05-01 20:38 UTC, Danylo
Artifacts captured with OBS (3.07 MB, image/png)
2019-05-03 21:17 UTC, Danylo

Description Danylo 2019-05-01 20:38:55 UTC
Created attachment 144123 [details]
example of artifacts

Distro: Manjaro
Kernel: 5.0.5
GPU: R9 380X

Reproducible with:
  Mesa: git (07745f94948)
  LLVM: 9 (359393)

Isn't reproducible with:
  Mesa: 19.0.3
  LLVM: 8

Parts of the screen randomly become corrupted for 1 or 2 frames. It's not a rare event.
Doesn't happen when capturing and/or replaying with apitrace.
Doesn't happen when running OBS.

Happens on new Sirocco map, didn't test on other.

Sorry for the image quality - it was taken from video recorded with old phone, the grey squares on a tree branch are the artifacts in question but they could be completely different.

I'm using https://pkgbuild.com/~lcarlier/mesa-git/x86_64/ for mesa and llvm builds.
Comment 1 Timothy Arceri 2019-05-03 01:53:24 UTC
Bit of a stab in the dark but if its related to bug #100239

You could try running steam from the command line with:

R600_DEBUG=zerovram steam
Comment 2 Danylo 2019-05-03 21:17:38 UTC
Created attachment 144152 [details]
Artifacts captured with OBS

No luck with it unfortunately. Also I got one small artifact when captured the game with OBS but it happened only ones.

I'm somehow unable to launch CSGO with non system mesa:

LIBGL_DEBUG=verbose LIBGL_DRIVERS_PATH=path_to_mesa_bin/lib/dri/ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path_to_mesa_bin/lib/ %command% &> ~/csgo.log

CSGO launches and screen remains black forever without any errors in log. However other games work fine e.g. Rocket League. I don't know what I'm missing.
Comment 3 tempel.julian 2019-05-22 15:01:58 UTC
Can you try R600_DEBUG=nohyperz? I have this kind of glitches in almost every game with OpenGL/Gallium Nine on Polaris and this variable seems to help at least in Skyrim with Gallium Nine (haven't tested anything else so far).

My bug report:
Comment 4 Danylo 2019-05-22 15:14:25 UTC
I'll try it later when will come home, thanks. It also happens in Minecraft but much rarer (so I wasn't patient enough to bisect with it).
Comment 5 Danylo 2019-05-22 19:27:59 UTC
It helps, unfortunately  it also reduces fps by around 15 - 20%
Comment 6 tempel.julian 2019-05-26 21:14:35 UTC
It seems R600_DEBUG=nodma helps as well and hardly costs any performance in CS:GO or Skyrim Gallium Nine.
Comment 7 Marek Olšák 2019-07-30 20:54:44 UTC
I plan to disable SDMA image copies by default on dGPUs.
Comment 8 Sylvain BERTRAND 2019-07-30 21:04:50 UTC
On Tue, Jul 30, 2019 at 08:54:44PM +0000, bugzilla-daemon@freedesktop.org wrote:
> I plan to disable SDMA image copies by default on dGPUs.

Is there a plan to "standardize" tiling format of frame buffer?
(to dma the right format properly from one brand of gpus to another)
Comment 9 GitLab Migration User 2019-09-25 18:49:41 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1393.

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.