Bug 110575 - [R9 380X] Artifacts in CSGO
Summary: [R9 380X] Artifacts in CSGO
Status: NEW
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-01 20:38 UTC by Danylo
Modified: 2019-05-26 21:14 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


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

Note You need to log in before you can comment on or make changes to this bug.
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:
https://bugs.freedesktop.org/show_bug.cgi?id=110635
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.


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.