From: bugzilla-daemon@freedesktop.org
Subject: [Bug 83510] Graphical glitches in Unreal Engine 4
Date: Thu, 04 Dec 2014 14:01:56 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0528708716=="
Return-path:
Received: from culpepper.freedesktop.org (unknown [131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 736E76EA3E
for ; Thu, 4 Dec 2014 06:01:56 -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
--===============0528708716==
Content-Type: multipart/alternative; boundary="1417701716.3C1c7Da2.4077"; charset="UTF-8"
--1417701716.3C1c7Da2.4077
Date: Thu, 4 Dec 2014 14:01:56 +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 #10 from Marek Ol=C5=A1=C3=A1k ---
(In reply to Henri Verbeet from comment #9)
> (In reply to Marek Ol=C5=A1=C3=A1k from comment #8)
> > (In reply to Christoph Haag from comment #7)
> > > I think in the new "Lightroom Interior" the blackness glitch is visib=
le in a
> > > more interesting way:
> > > https://www.youtube.com/watch?v=3DR9N-srsF_Fg
> >=20
> > I think I've tracked down what's causing the blackness in all Unreal En=
gine
> > demos: Division by zero.
> >=20
> I didn't debug this of course, but it seems suspicious that this would
> depend on division be zero returning zero instead of infinity. I don't th=
ink
> any other driver for current hardware does that with GLSL. Are you sure
> there's not a subsequent multiplication by zero that depends on INF * 0
> returning 0 instead of NAN?
Yes, that's possible. However, some internal documents suggest that Catalyst
always uses the standard IEEE version of MUL. There are also alternative
opcodes for RSQ, RCP and LOG that don't generate NaNs and Infs, which can be
used instead. You can certainly choose which behavior you want on a
case-by-case basis. Sometimes you want 0 instead of NaN, other times you wa=
nt 0
or FLT_MAX instead of Inf. The hardware has RSQ and RCP opcodes that do tha=
t.
However, Tonga and later hardware doesn't have the legacy dx9 opcodes for M=
UL,
MAD, RCP, RSQ, and LOG and they must be emulated with a comparison (or
V_CLASS_F32 that returns whether it's NaN/+-Inf/Denorm/+-0/etc) + condition=
al
assignment. It's better to do the conditional assignment after every RCP th=
an
after every MUL.
--=20
You are receiving this mail because:
You are the assignee for the bug.
--1417701716.3C1c7Da2.4077
Date: Thu, 4 Dec 2014 14:01:56 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Commen=
t # 10
on bug 83510<=
/a>
from Marek Ol=C5=A1=C3=A1k
(In reply to Henri Verbeet from comment #9)
> (In reply to Marek Ol=C5=A1=C3=A1k from comment #8)
> > (In reply to Christoph Haag from comment #7)
> > > I think in the new "Lightroom Interior" the blackn=
ess glitch is visible in a
> > > more interesting way:
> > > ht=
tps://www.youtube.com/watch?v=3DR9N-srsF_Fg
> >=20
> > I think I've tracked down what's causing the blackness in all Unr=
eal Engine
> > demos: Division by zero.
> >=20
> I didn't debug this of course, but it seems suspicious that this would
> depend on division be zero returning zero instead of infinity. I don't=
think
> any other driver for current hardware does that with GLSL. Are you sure
> there's not a subsequent multiplication by zero that depends on INF * 0
> returning 0 instead of NAN?
Yes, that's possible. However, some internal documents suggest that Catalyst
always uses the standard IEEE version of MUL. There are also alternative
opcodes for RSQ, RCP and LOG that don't generate NaNs and Infs, which can be
used instead. You can certainly choose which behavior you want on a
case-by-case basis. Sometimes you want 0 instead of NaN, other times you wa=
nt 0
or FLT_MAX instead of Inf. The hardware has RSQ and RCP opcodes that do tha=
t.
However, Tonga and later hardware doesn't have the legacy dx9 opcodes for M=
UL,
MAD, RCP, RSQ, and LOG and they must be emulated with a comparison (or
V_CLASS_F32 that returns whether it's NaN/+-Inf/Denorm/+-0/etc) + condition=
al
assignment. It's better to do the conditional assignment after every RCP th=
an
after every MUL.
You are receiving this mail because:
=20=20=20=20=20=20
- You are the assignee for the bug.
--1417701716.3C1c7Da2.4077--
--===============0528708716==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0
cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK
--===============0528708716==--