|Summary:||Parkitect (Unity Game) dispalys artifacts and black screens with Vega hardware|
|Product:||Mesa||Reporter:||Juyas Yove <yovejuyas>|
|Component:||Drivers/Gallium/radeonsi||Assignee:||Default DRI bug account <dri-devel>|
|Status:||NEW ---||QA Contact:||Default DRI bug account <dri-devel>|
|Priority:||medium||CC:||alex, andreas, megatog615, mw, t_arceri|
|i915 platform:||i915 features:|
Screenshot of one of the possible outcomes of starting the game
Another artifact example
renderdoc black screen from toggling vsync
Description Juyas Yove 2018-12-02 16:50:05 UTC
Created attachment 142689 [details] Screenshot of one of the possible outcomes of starting the game Issue: Vega hardware not working with Parkitect. The game is based on Unity. Lots of artifacts, particularly with ambient occlusion turned up in game's settings Steps to reproduce: Start a game in parkitect with Vega hardware. Turn the graphics settings to max and you will experience issues. Sometimes it's playable, but always with artifacts Happy to provide logs and feedback. Some notes: https://www.reddit.com/r/ThemeParkitect/comments/a0oboe/black_screen_on_linux_with_rx_vega_56/ Tested this with Mesa 18.2.4 and 18.3 in Fedora 29 (also had issues in Fedora 28). Happy to donate a copy of the game to a known dev.
Comment 1 Juyas Yove 2018-12-02 16:55:12 UTC
Created attachment 142690 [details] Another artifact example
Comment 2 Andreas Backx 2018-12-03 18:29:12 UTC
I am the creator of the reddit post mentioned in the opening comment of the issue. The 3 images (1 on the reddit post, and the 2 attachments posted) show exactly what I get when I start the game, depending on what settings are used. I cannot get it to any playable state though. I'm running Arch Linux 4.19.4, mesa 18.2.5-1 (along with the same lib32 version), and running on i3 (Xorg) with xf86-video-amdgpu 18.1.0-1. Here are also some logs from when I started the game: https://paste.ubuntu.com/p/fRt54ftVD4/
Comment 3 Markus 2018-12-03 23:01:55 UTC
Similar issue with black flickering reported here on an RX480 with Mesa 18.2.2 and ambient occlusion turned on: https://old.reddit.com/r/ThemeParkitect/comments/a1mt60/graphics_issue_black_flickering_all_over_the_place/
Comment 4 Evan Goers 2018-12-07 07:44:05 UTC
I am using an RX580 and also have this issue. Forcing OpenGL 4.2(4.3 and above causes the issue) with the mesa environment variable allows the game to run without artifacts but some shaders do not work, such as ambient occlusion.
Comment 5 Timothy Arceri 2018-12-10 02:48:54 UTC
Can somebody try to get an apitrace of the issue ? Thanks.  https://github.com/apitrace/apitrace/wiki/Steam
Comment 7 Alexander Walker 2018-12-10 19:41:24 UTC
(In reply to Timothy Arceri from comment #5) > Can somebody try to get an apitrace of the issue ? Thanks. > >  https://github.com/apitrace/apitrace/wiki/Steam Never used that tool before but I uploaded a trace that shows it immediately visible on the main menu. Lots of these in the console if they're relevant: apitrace: warning: _gl_param_size: unknown GLenum 0x8267 apitrace: warning: _gl_param_size: unknown GLenum 0x92F5
Comment 8 Timothy Arceri 2018-12-10 23:15:47 UTC
(In reply to Alexander Walker from comment #7) > (In reply to Timothy Arceri from comment #5) > > Can somebody try to get an apitrace of the issue ? Thanks. > > > >  https://github.com/apitrace/apitrace/wiki/Steam > > Never used that tool before but I uploaded a trace that shows it immediately > visible on the main menu. > > Lots of these in the console if they're relevant: > apitrace: warning: _gl_param_size: unknown GLenum 0x8267 > apitrace: warning: _gl_param_size: unknown GLenum 0x92F5 I'm not sure, I don't see these when replying the trace. Aside from some calls to unsupported debug functions I don't see any obvious issues in the trace. Do you think you could try grabbing a capture in renderdoc ? Once you unzip it somewhere you can add the following to the launch options for the game in steam: LD_PRELOAD=/your path to renderdoc here/renderdoc_1.2/lib/librenderdoc.so %command% When you lanuch the game you should see some text overlayed at the top of the screen saying you can create a capture by pressing F12. Once you have a capture you can find it in a folder in the /tmp/ directory.  https://renderdoc.org/
Comment 9 Alexander Walker 2018-12-11 11:21:55 UTC
Created attachment 142775 [details] renderdoc capture
Comment 10 Alexander Walker 2018-12-11 11:27:13 UTC
(In reply to Timothy Arceri from comment #8) > Do you think you could try grabbing a capture in renderdoc ? Once you > unzip it somewhere you can add the following to the launch options for the > game in steam: > > LD_PRELOAD=/your path to renderdoc here/renderdoc_1.2/lib/librenderdoc.so > %command% > > When you lanuch the game you should see some text overlayed at the top of > the screen saying you can create a capture by pressing F12. Once you have a > capture you can find it in a folder in the /tmp/ directory. > >  https://renderdoc.org/ I've attached a capture. It's a flickering issue so hopefully it was captured in that 1 frame.
Comment 11 Alexander Walker 2018-12-11 12:39:21 UTC
Created attachment 142776 [details] renderdoc black screen from toggling vsync
Comment 12 Adam Lyall 2018-12-14 13:11:37 UTC
Just adding this same bug affects Tonga based GPUs as well.
Comment 13 andrew.m.mcmahon 2019-04-09 09:53:11 UTC
I thought I'd try this one out as I always loved Bullfrog's Theme Park back on my AMIGA 500+ -- Parkitect 1.3 -- I've captured a more up-to-date trace: (1.8GB) https://drive.google.com/open?id=1DaekuBy9fBdQr4ceqskx_5w2m5BDt_CV > Debian Testing > Linux-drm-fixes-5.1 > Mesa 19.1.0 (4e802089) https://tinyurl.com/mesacommit > Device: AMD Radeon R9 200 Series (TONGA, DRM 3.30.0, 5.1.0-rc1+, LLVM 8.0.0) The game appears to be quite playable now. Ambient occlusion appears to be the main cause of some heavy graphical glitches - which I've shown in my trace by lowering the slider. Alien Isolation is another game that suffers from glitches with HDAO enabled but otherwise works fine with it turned off.