This report has been constructed from details from the reddit thread at
Broken transparency in Civ5 (see http://i.imgur.com/z4mFZXE.jpg)
- around oil resources
- around the lighthouse beams
- floodlight shining on active unit
- smoke rising from pillaged tiles and barbarian camps
lspci -v | grep VGA and glxinfo | grep OpenGL output:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Pitcairn XT [Radeon HD 7870 GHz Edition]
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD PITCAIRN
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.3.0-devel (git-0d89448 trusty-oibaf-ppa)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.3.0-devel (git-0d89448 trusty-oibaf-ppa)
OpenGL shading language version string: 1.30
Created attachment 101079 [details]
Confirming this, happens on Radeon 8400 too.
Created attachment 101111 [details] [review]
It seems the game relies on specific behavior of inversesqrt, which is undefined when x <= 0 according to GLSL spec. The attached patch uses V_RSQ_CLAMP_F32 instead of V_RSQ_LEGACY_F32 for int_AMDGPU_rsq, this fixed the issue for me.
*** Bug 80071 has been marked as a duplicate of this bug. ***
(In reply to comment #2)
> Created attachment 101111 [details] [review] [review]
> It seems the game relies on specific behavior of inversesqrt, which is
> undefined when x <= 0 according to GLSL spec. The attached patch uses
> V_RSQ_CLAMP_F32 instead of V_RSQ_LEGACY_F32 for int_AMDGPU_rsq, this fixed
> the issue for me.
Thanks Vadim, that fixed it for me too :).
confirmed fix too when running Civ5 in wine
Fixed in Mesa: b9f501bc6bc52c25bef86a24b49fda4e92fcd924
I have the same withe glitch on Civ5 shown on the CivV.png with AMD radeonsi open source driver.
I don't have the problem with Intel open source drivers.
I use Debian Jessie with mesa 10.2.6
(In reply to comment #8)
> I have the same withe glitch on Civ5 shown on the CivV.png with AMD radeonsi
> open source driver.
> I don't have the problem with Intel open source drivers.
> I use Debian Jessie with mesa 10.2.6
Fix is there for upstream 10.2 but it only aplay if mesa is bulded against llvm 3.5, Debian Jessie version is currently builded against llvm-3.4.
So i think you can request that on Debian bugzilla.
on Mar 27, 2017 at 06:42:04.
(provided by the Example extension).