From: bugzilla-daemon@freedesktop.org Subject: [Bug 83510] Graphical glitches in Unreal Engine 4 Date: Thu, 04 Dec 2014 12:32:44 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0822147101==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 866AE6E9B8 for ; Thu, 4 Dec 2014 04:32:44 -0800 (PST) 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 --===============0822147101== Content-Type: multipart/alternative; boundary="1417696364.04fE2.1704"; charset="UTF-8" --1417696364.04fE2.1704 Date: Thu, 4 Dec 2014 12:32:44 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D83510 --- Comment #8 from Marek Ol=C5=A1=C3=A1k --- (In reply to Christoph Haag from comment #7) > I think in the new "Lightroom Interior" the blackness glitch is visible i= n a > more interesting way: > https://www.youtube.com/watch?v=3DR9N-srsF_Fg I think I've tracked down what's causing the blackness in all Unreal Engine demos: Division by zero. There are several options to fix this: 1) Use V_RCP_LEGACY_F32 instead of V_RCP_F32 (not available on Tonga and la= ter chips). 2) Emulate V_RCP_LEGACY_F32(x) using (x !=3D 0 ? 1/x : 0). This can be done= in Mesa or LLVM. For LLVM, a new intrinsic rcp.legacy needs to be added. 3) Disable lowering DIV_TO_MUL_RCP in glsl-to-tgsi and see what happens. Not sure if this will change anything, but at least LLVM doesn't need the lower= ing and we might need to do the same workaround for TGSI_OPCODE_DIV. I've implemented (2) in Mesa and it fixes the Lightroom Interior demo. I'm = not sure if that's the best solution. --=20 You are receiving this mail because: You are the assignee for the bug. --1417696364.04fE2.1704 Date: Thu, 4 Dec 2014 12:32:44 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Comment= # 8 on bug 83510<= /a> from Marek Ol=C5=A1=C3=A1k
(In reply to Christoph Haag from comment #7)
> I think in the new "Lightroom Interior"=
; the blackness glitch is visible in a
> more interesting way:
> https://www.=
youtube.com/watch?v=3DR9N-srsF_Fg

I think I've tracked down what's causing the blackness in all Unreal Engine
demos: Division by zero.

There are several options to fix this:

1) Use V_RCP_LEGACY_F32 instead of V_RCP_F32 (not available on Tonga and la=
ter
chips).

2) Emulate V_RCP_LEGACY_F32(x) using (x !=3D 0 ? 1/x : 0). This can be done=
 in
Mesa or LLVM. For LLVM, a new intrinsic rcp.legacy needs to be added.

3) Disable lowering DIV_TO_MUL_RCP in glsl-to-tgsi and see what happens. Not
sure if this will change anything, but at least LLVM doesn't need the lower=
ing
and we might need to do the same workaround for TGSI_OPCODE_DIV.


I've implemented (2) in Mesa and it fixes the Lightroom Interior demo. I'm =
not
sure if that's the best solution.


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1417696364.04fE2.1704-- --===============0822147101== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0822147101==--