From: bugzilla-daemon@freedesktop.org Subject: [Bug 102905] [R600] Miscompilation of TGSI to VLIW causes artifacts in Gallium Nine with Crysis2 bump mapping Date: Tue, 13 Mar 2018 03:31:46 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1138502875==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C317D891F2 for ; Tue, 13 Mar 2018 03:31:45 +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 --===============1138502875== Content-Type: multipart/alternative; boundary="15209119050.C430.15930" Content-Transfer-Encoding: 7bit --15209119050.C430.15930 Date: Tue, 13 Mar 2018 03:31:45 +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 #3 from Roland Scheidegger --- (In reply to iive from comment #2) > 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 >=20 > I think that we should copy the whole register first. > The generated code should looks like this: >=20 > mov r12, |r2| > cndge r0.xy, r1, r12, r3 That analysis looks spot on. I've just sent a patch to mesa-dev which should fix this, can you verify it works? --=20 You are receiving this mail because: You are the assignee for the bug.= --15209119050.C430.15930 Date: Tue, 13 Mar 2018 03:31:45 +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 # 3 on bug 10290= 5 from Roland Scheidegger
(In reply to iive from comment #2)
> The problem that causes this bug is when the fir=
st half of the above code,
> changes the condition check in the second. Something that will not hap=
pen,
> if "cndge" is executed as a single VLIW.
> Aka I have "cndge r0.xy, r0.xx, |r2|, r3" that is turned int=
o:
>   mov  r12.x, |r2|
>   cndge r0.x, r0.x, r12, r3
>   mov  r12.y, |r2|
>   cndge r0.y, r0.x, r12, r3
>=20
> I think that we should copy the whole register first.
> The generated code should looks like this:
>=20
>   mov r12, |r2|
>   cndge r0.xy, r1, r12, r3

That analysis looks spot on. I've just sent a patch to mesa-dev which should
fix this, can you verify it works?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15209119050.C430.15930-- --===============1138502875== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1138502875==--