Bug 105042

Summary: [LLVM Regression] Shadow of Mordor stucks at intro video
Product: Mesa Reporter: Gregor Münch <gr.muench>
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: 0xe2.0x9a.0x9b, adf.lists, m.c.searles
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: game crash dump

Description Gregor Münch 2018-02-11 10:55:18 UTC
Created attachment 137268 [details]
game crash dump

The last thing you see is the WB Games logo. The music still plays but it doesnt get any further, so you cant see the main menu. The CPU is getting 100% load, seems to be stuck in an endless loop. 
In the console you only see this:
Game crashed, if possible email [support@feralinteractive.com] with the crash file.
A dmp file is created and attached here.

The problem seems to be with LLVM, last good for me is 324167 first bad 324807.
Comment 1 Bas Nieuwenhuizen 2018-02-11 19:27:58 UTC
What happens with the range in between? There are quite a few commits ot the AMDGPU backend in there so would be good if we can reduce that range and pinpoint the exact revision that is causing it.
Comment 2 Gregor Münch 2018-02-12 17:32:40 UTC
Im using pre-compiled llvm binaries- thus I have no packages to try in between. I know how to do a bisect with git but I somehow fail to do the same with svn. Maybe solution is actually easy -if someone could guide me here I think I provide a bisect result during this week.

I tried today with nir backend and here it is crashing right away on game start (and even gives some output):
Unknown intrinsic: intrinsic store_shared (ssa_45, ssa_46) () (0, 1) /* base=0 */ /* wrmask=x */
Unknown intrinsic: intrinsic store_shared (ssa_73, ssa_74) () (0, 1) /* base=0 */ /* wrmask=x */
Unknown intrinsic: vec1 32 ssa_75 = intrinsic load_shared (ssa_46) () (0) /* base=0 */
Unknown intrinsic: vec1 32 ssa_76 = intrinsic load_shared (ssa_74) () (0) /* base=0 */
/run/media/greg/Steam_Linux/steamapps/common/ShadowOfMordor/ShadowOfMordor.sh: Zeile 167:  6992 Speicherzugriffsfehler  (Speicherabzug geschrieben) ${GAME_LAUNCH_PREFIX} "${GAMEROOT}/bin/${FERAL_GAME_NAME}" "$@"

It was previously working great with nir before.

Forgot to add:
OpenGL renderer string: AMD Radeon HD 7900 Series (TAHITI / DRM 3.25.0 / 4.15.0-2-amd-staging-drm-next-git, LLVM 7.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.1.0-devel (git-9b9a89cd79)
Comment 3 Bas Nieuwenhuizen 2018-02-12 23:28:22 UTC
There is a git mirror for LLVM:

https://github.com/llvm-mirror/llvm

wrt the nir crash I doubt that is due to LLVM, might be because we only enabled compute shaders for nir somewhat recently.
Comment 4 Andy Furniss 2018-02-13 00:11:12 UTC
I filed a "game hangs" llvm regression here -

https://bugs.llvm.org/show_bug.cgi?id=36332
Comment 5 Gregor Münch 2018-02-18 09:49:25 UTC
The crash with nir in the beginning is gone. It has now exactly the same behavior and freezes right after the intro video is finished (or you press a button to skip).
I think this bug is the same like the one Andy already created. So I wait till a fix appears and retest again. Unlike someone has a link to a arch LLVM git package...
Comment 7 Gregor Münch 2018-02-23 16:20:16 UTC
*** Bug 105228 has been marked as a duplicate of this bug. ***

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.