From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 80015] Transparency glitches in native Civilization 5 (Civ5) port Date: Sun, 15 Jun 2014 17:13:54 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0681678525==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 33CC36E234 for ; Sun, 15 Jun 2014 10:13:54 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0681678525== Content-Type: multipart/alternative; boundary="1402852434.36fDBA0f1.8961"; charset="us-ascii" --1402852434.36fDBA0f1.8961 Date: Sun, 15 Jun 2014 17:13:54 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=80015 --- Comment #2 from Vadim Girlin --- 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. -- You are receiving this mail because: You are the assignee for the bug. --1402852434.36fDBA0f1.8961 Date: Sun, 15 Jun 2014 17:13:54 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 2 on bug 80015 from
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.


You are receiving this mail because:
  • You are the assignee for the bug.
--1402852434.36fDBA0f1.8961-- --===============0681678525== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0681678525==--