Skip to contentSkip to conversation

New: Transparency glitches in native Civilization 5 (Civ5) port

Bug 80015 [email protected] 1 participant 12 messages Jun 14, 2014 – Sep 6, 2014

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=80015

Priority: medium
Bug ID: 80015
Assignee: [email protected]
Summary: Transparency glitches in native Civilization 5 (Civ5)
port
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
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_info_misleading_for_aspyrs/

-----

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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port

https://bugs.freedesktop.org/show_bug.cgi?id=80015

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

                URL|                            |http://www.reddit.com/r/lin
                   |                            |ux_gaming/comments/28199a/s
                   |                            |teams_opengl_version_info_m
                   |                            |isleading_for_aspyrs/
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80015

--- Comment #1 from smoki <[email protected]> ---
Created attachment 101079
--> https://bugs.freedesktop.org/attachment.cgi?id=101079&action=edit
CivV.png

Confirming this, happens on Radeon 8400 too.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80015

--- Comment #2 from Vadim Girlin <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80015

Paulo Dias <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from Paulo Dias <[email protected]> --- *** Bug 80071 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80015

--- Comment #4 from smoki <[email protected]> --- (In reply to comment #2)

Quoted 7 lines

Created attachment 101111 [details] [review]
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.

Thanks Vadim, that fixed it for me too :).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80015

--- Comment #5 from Alex Deucher <[email protected]> ---
http://lists.freedesktop.org/archives/mesa-dev/2014-June/062167.html

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80015

--- Comment #6 from Rafael Castillo <[email protected]> --- confirmed fix too when running Civ5 in wine

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80015

Tom Stellard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Tom Stellard <[email protected]> --- Fixed in Mesa: b9f501bc6bc52c25bef86a24b49fda4e92fcd924

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80015

tuxicoman <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #8 from tuxicoman <[email protected]> ---
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

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80015

--- Comment #9 from smoki <[email protected]> --- (In reply to comment #8)

Quoted 4 lines

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.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80015

smoki <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel