From: bugzilla-daemon@freedesktop.org
Subject: [Bug 102905] [R600] Miscompilation of TGSI to VLIW causes artifacts
in Gallium Nine with Crysis2 bump mapping
Date: Mon, 12 Mar 2018 16:01:33 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2087011320=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id BFF8E6E0FB
for ; Mon, 12 Mar 2018 16:01:32 +0000 (UTC)
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
--===============2087011320==
Content-Type: multipart/alternative; boundary="15208704920.1cba07.25637"
Content-Transfer-Encoding: 7bit
--15208704920.1cba07.25637
Date: Mon, 12 Mar 2018 16:01:32 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
https://bugs.freedesktop.org/show_bug.cgi?id=3D102905
--- Comment #2 from iive@yahoo.com ---
Back when I discovered the bug, glennk suggested that this commit might be
involved:
https://cgit.freedesktop.org/mesa/mesa/commit/?id=3Dacef65503e79ce61a16bdba=
92462f0ed8a7b52c2
"r600g: fix abs() support on ALU 3 source operands instructions
Since alu does not support abs() modifier on source operands, spill
and apply the modifiers to a temp register when needed."
It turns:
cndge r0.xy, r1, |r2|, r3=20=20=20
into:
mov r12.x, |r2|
cndge r0.x, r1, r12, r3
mov r12.y, |r2|
cndge r0.y, r1, r12, r3
This breaks the "cndge" into separate VLIW.=20
The problem that causes this bug is when the first half of the above code,
changes the condition check in the second. Something that will not happen, =
if
"cndge" is executed as a single VLIW.
Aka I have "cndge r0.xy, r0.xx, |r2|, r3" that is turned into:
mov r12.x, |r2|
cndge r0.x, r0.x, r12, r3
mov r12.y, |r2|
cndge r0.y, r0.x, r12, r3
I think that we should copy the whole register first.
The generated code should looks like this:
mov r12, |r2|
cndge r0.xy, r1, r12, r3
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--15208704920.1cba07.25637
Date: Mon, 12 Mar 2018 16:01:32 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
Commen=
t # 2
on bug 10290=
5
from iive@yahoo.com
Back when I discovered the bug, glennk suggested that this com=
mit might be
involved:
https://cgit.freedesktop.org/mesa/mesa/commit=
/?id=3Dacef65503e79ce61a16bdba92462f0ed8a7b52c2
"r600g: fix abs() support on ALU 3 source operands instructions
Since alu does not support abs() modifier on source operands, spill
and apply the modifiers to a temp register when needed."
It turns:
cndge r0.xy, r1, |r2|, r3=20=20=20
into:
mov r12.x, |r2|
cndge r0.x, r1, r12, r3
mov r12.y, |r2|
cndge r0.y, r1, r12, r3
This breaks the "cndge" into separate VLIW.=20
The problem that causes this bug is when the first half of the above code,
changes the condition check in the second. Something that will not happen, =
if
"cndge" is executed as a single VLIW.
Aka I have "cndge r0.xy, r0.xx, |r2|, r3" that is turned into:
mov r12.x, |r2|
cndge r0.x, r0.x, r12, r3
mov r12.y, |r2|
cndge r0.y, r0.x, r12, r3
I think that we should copy the whole register first.
The generated code should looks like this:
mov r12, |r2|
cndge r0.xy, r1, r12, r3
You are receiving this mail because:
- You are the assignee for the bug.
=
--15208704920.1cba07.25637--
--===============2087011320==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============2087011320==--