Bug 111060 - Dying Light does start but doesnt render properly.
Summary: Dying Light does start but doesnt render properly.
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-04 09:56 UTC by Haxk20
Modified: 2019-07-05 09:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Haxk20 2019-07-04 09:56:16 UTC
I have installed Dying Light few days ago. I know there were some issues with mesa and dying light but now i heard that most of them are fixed.
So i started it and it crashed. So i used the dying light shim provided in other bug report and the game launched bug not even the video was rendered properly. It wasnt rendered to entire screen but only to one quarter in down right of the screen. And the entire quarter was displaying only one color as if it was showing only one pixel.
Im using AMD_DEBUG=nir variable so i was thinking that may be the issue. Disabling it didnt help and the same issue happened.
Launching the game from pure executable showed that i was missing one library. Installing that library didnt help and same issue and trying again the executable it shows FATAL ERROR cannot initialize renderer.
Its weird as i have not seen this issue anywhere else.
Hardware:
CPU Ryzen 5 2500U
GPU Radeon RX560X
Using LLVM from git and mesa built from git too.
If you need any logs or anything of that matter im happy to provide it all.
Comment 1 Haxk20 2019-07-04 09:58:14 UTC
Ohhh and when using Proton the game works perfectly fine without any issue just with much lower FPS.
Comment 2 Andre Klapper 2019-07-04 12:52:04 UTC
Which exact driver and driver version is used on which distribution and distribution version?
Comment 3 Haxk20 2019-07-04 12:56:20 UTC
Driver is ofcourse MESA built from git. Latest commit. And distribution is Arch linux.
Comment 4 Timothy Arceri 2019-07-05 03:47:56 UTC
The crash on Arch Linux is due to a game bug not a Mesa bug which is bought to light by Arch using libglvnd, basically the game doesn't check for features it uses correctly.

Recent patches have landed in git that implement the functions Dying Light tries to use and users have reported that this fixes the start-up crash. I suggest you make sure your system is correctly picking up the version of Mesa you have built from git and is not continuing to use your system copy of Mesa.

Either way this in not actually a Mesa bug so I'm going to close this bug report. If you really are correctly using the copy of Mesa you built from git and it is still crashing I suggest waiting a little longer until full support for the EXT_direct_state_access extension lands in Mesa.
Comment 5 Haxk20 2019-07-05 08:49:57 UTC
I dont care about the damn crash. Thats not even why i opened the bug report. The bug report is for not correctly rendering stuff. It renders to one quater of the screen in down right corner and shows only one color as if it was shoring only 1 pixel.
Comment 6 Haxk20 2019-07-05 09:18:08 UTC
(In reply to Timothy Arceri from comment #4)
> The crash on Arch Linux is due to a game bug not a Mesa bug which is bought
> to light by Arch using libglvnd, basically the game doesn't check for
> features it uses correctly.
> 
> Recent patches have landed in git that implement the functions Dying Light
> tries to use and users have reported that this fixes the start-up crash. I
> suggest you make sure your system is correctly picking up the version of
> Mesa you have built from git and is not continuing to use your system copy
> of Mesa.
> 
> Either way this in not actually a Mesa bug so I'm going to close this bug
> report. If you really are correctly using the copy of Mesa you built from
> git and it is still crashing I suggest waiting a little longer until full
> support for the EXT_direct_state_access extension lands in Mesa.

I just opened the 00-mesa file and set the variables manually for dying light and the game launches just OK and works as expected.
How can i check which file is overwritting the variables ?
Comment 7 Haxk20 2019-07-05 09:35:38 UTC
Issue fixed. For some reason i had all the variables that work around bugs set in .drirc as false. Its fixed now.


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.