https://bugs.freedesktop.org/show_bug.cgi?id=80015
Priority: medium Bug ID: 80015 Assignee: dri-devel@lists.freedesktop.org Summary: Transparency glitches in native Civilization 5 (Civ5) port Severity: normal Classification: Unclassified OS: Linux (All) Reporter: mikelnx@hmamail.com Hardware: x86-64 (AMD64) Status: NEW Version: git Component: Drivers/Gallium/radeonsi Product: Mesa
This report has been constructed from details from the reddit thread at
http://www.reddit.com/r/linux_gaming/comments/28199a/steams_opengl_version_i...
-----
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
https://bugs.freedesktop.org/show_bug.cgi?id=80015
mikelnx@hmamail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.reddit.com/r/lin | |ux_gaming/comments/28199a/s | |teams_opengl_version_info_m | |isleading_for_aspyrs/
https://bugs.freedesktop.org/show_bug.cgi?id=80015
--- Comment #1 from smoki smoki00790@gmail.com --- Created attachment 101079 --> https://bugs.freedesktop.org/attachment.cgi?id=101079&action=edit CivV.png
Confirming this, happens on Radeon 8400 too.
https://bugs.freedesktop.org/show_bug.cgi?id=80015
--- Comment #2 from Vadim Girlin ptpzz@yandex.ru --- Created attachment 101111 --> https://bugs.freedesktop.org/attachment.cgi?id=101111&action=edit patch
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.
https://bugs.freedesktop.org/show_bug.cgi?id=80015
Paulo Dias paulo.miguel.dias@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |paulo.miguel.dias@gmail.com
--- Comment #3 from Paulo Dias paulo.miguel.dias@gmail.com --- *** Bug 80071 has been marked as a duplicate of this bug. ***
https://bugs.freedesktop.org/show_bug.cgi?id=80015
--- Comment #4 from smoki smoki00790@gmail.com --- (In reply to comment #2)
Thanks Vadim, that fixed it for me too :).
https://bugs.freedesktop.org/show_bug.cgi?id=80015
--- Comment #5 from Alex Deucher agd5f@yahoo.com --- http://lists.freedesktop.org/archives/mesa-dev/2014-June/062167.html
https://bugs.freedesktop.org/show_bug.cgi?id=80015
--- Comment #6 from Rafael Castillo jrch2k10@gmail.com --- confirmed fix too when running Civ5 in wine
https://bugs.freedesktop.org/show_bug.cgi?id=80015
Tom Stellard tstellar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #7 from Tom Stellard tstellar@gmail.com --- Fixed in Mesa: b9f501bc6bc52c25bef86a24b49fda4e92fcd924
https://bugs.freedesktop.org/show_bug.cgi?id=80015
tuxicoman debian@jesuislibre.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |---
--- Comment #8 from tuxicoman debian@jesuislibre.net --- 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
https://bugs.freedesktop.org/show_bug.cgi?id=80015
--- Comment #9 from smoki smoki00790@gmail.com --- (In reply to comment #8)
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.
https://bugs.freedesktop.org/show_bug.cgi?id=80015
smoki smoki00790@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED
dri-devel@lists.freedesktop.org