Created attachment 134281 [details]
Video of the colours bug during transition to daytime
See the attached mp4. The flashing is at its worst during day-night or night-day transitions, but will still happen at random throughout the day/night. The game is still playable, but it can be rather distracting. This is with the RX Vega 56, using the open source amdgpu driver.
Possibly related to https://bugs.freedesktop.org/show_bug.cgi?id=99413 but doesn't look like the same thing.
could you provide trace file (apitrace) of this?
Created attachment 134328 [details]
This is my first time working with apitrace, so I am unsure of how to trim the file properly. This trace includes the loading of the game, and then a couple flashes during a day to night transition.
on i965 driver there is no 'flashing' (tested on KBL), this is probably amd/gallium bug
Is there anything that I can do to help?
Please attach your xorg log, dmesg output, and glxinfo output.
There is no 'flashing' on rx470 either on mesa git + llvm r311849 (~month old).
No flashing on Raven either with latest Mesa + LLVM. Most likely this is fixed already.
try running the game outside steam and see if it solves the problem... in the past running the game via steam in linux was forcing a compatibility profile and breaking the game
I'm still experiencing this issue on the latest mesa-git and llvm. It looks like this bug is related to the amdgpu support for my card (RX Vega 56) rather than being a general bug.
I have tried running the game outside of steam and it sadly makes no difference.
I can confirm similar weird color flashes as shown in the video when playing the trace on RX Vega 64. So oddly enough, this seems Vega-specific, as I didn't observe it on Raven. I'm going to take a closer look.
Created attachment 134808 [details] [review]
Please try the attached patch. It fixes the issue in the trace for me.
Using the patch I now no longer have the flashes occurring in game. (In reply to Nicolai Hähnle from comment #11)
> Created attachment 134808 [details] [review] [review]
> possible fix
> Please try the attached patch. It fixes the issue in the trace for me.
Author: Nicolai Hähnle <firstname.lastname@example.org>
Date: Thu Oct 12 11:21:26 2017 +0200
amd/common/gfx9: workaround DCC corruption more conservatively
Fixes KHR-GL45.texture_swizzle.smoke and others on Vega.
Reviewed-by: Marek Olšák <email@example.com>