Created attachment 124580 [details]
screenshot
When motion blur effect is enabled in the game, the screen is filled with red,
yellow and green colors (both the menus and midgame).
The problem doesn't exist with the software renderer.
Bisecting revealed that the problem is present since
commit 7752bbc44e78e982de3cd4c34862adc38a338234
Author: Ilia Mirkin <imirkin@alum.mit.edu>
Date: Thu Dec 10 18:19:44 2015 -0500
gk104/ir: simplify and fool-proof texbar algorithm
With the current algorithm, we only look at tex uses. However there's a
write-after-write hazard where we might decide to, on some path, not use
a texture's output at all, but instead to write a different value to
that register. However without the barrier, the texture might complete
later and overwrite that value.
This fixes Unreal Elemental demo on GK110/GK208, flightgear on GK10x,
and likely other random-looking failures.
The game renders properly with the previous commit.
Trace (uncompressed 138M):
https://drive.google.com/open?id=0B-tTbLKBl-tOaVRvNmMwQW8zYlk
OpenGL vendor string: nouveau
OpenGL renderer string: Gallium 0.4 on NV106
OpenGL core profile version string: 4.3 (Core Profile) Mesa 12.1.0-devel
(git-5a64549)
OpenGL core profile shading language version string: 4.30
Fedora 23
Libdrm 2.4.68+git
Linux kernel 4.7.0-rc3