From: bugzilla-daemon@freedesktop.org
Subject: [Bug 101442] Piglit shaders@ssa@fs-if-def-else-break fails with sb
but passes with R600_DEBUG=nosb
Date: Sat, 27 Jan 2018 10:49:19 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0305402582=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[IPv6:2610:10:20:722:a800:ff:fe98:4b55])
by gabe.freedesktop.org (Postfix) with ESMTP id 300F8892C5
for ; Sat, 27 Jan 2018 10:49:19 +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
--===============0305402582==
Content-Type: multipart/alternative; boundary="15170501590.ddddF.25587"
Content-Transfer-Encoding: 7bit
--15170501590.ddddF.25587
Date: Sat, 27 Jan 2018 10:49:19 +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=3D101442
--- Comment #4 from Gert Wollny ---
After reviewing the byte code of fs-if-def-else-break I found that the pro=
blem
is a bit different:=20
In the original code BREAK is called in the loop when (KC0[0].x !=3D 0) jus=
t like
implemented in the glsl code:=20
0002 LOOP_START_DX10 @36
0004 ALU_PUSH_BEFORE 2 @48 KC0[CB0:0-15]
0048 2 x: MOV R2.x, 1
0050 3 MP x: PRED_SETNE_INT R6.x, KC0[0].x, 0
0006 JUMP @10 << JUMP is called if condition fails=
=20
0008 ALU 2 @52
0052 4 x: MOV R2.x, [0x00000002 2.8026e-45].x
0054 00000002=20
0010 ELSE @16 POP:1
0012 LOOP_BREAK @34
0014 POP @16 POP:1
however, in the optimized code the assignment and its branch is optimized a=
way,
and BREAK is called when (KC0[0].x =3D=3D 0), i.e. exactly the opposite of =
the=20
0002 LOOP_START_DX10 @30
0004 PUSH @6
0006 ALU 1 @38 KC0[CB0:0-15]
0038 2 M x: PRED_SETNE_INT __.x, KC0[0].x, 0
0008 JUMP @14 POP:1 << JUMP is called if condition fails=20
0010 LOOP_BREAK @28
0012 POP @14 POP:1
i.e. the optimizer removed the if branch, keeps the else branch but acts as=
if
it were the if branch, hence the failure.
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--15170501590.ddddF.25587
Date: Sat, 27 Jan 2018 10:49:19 +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 # 4
on bug 10144=
2
from Gert Wollny
After reviewing the byte code of fs-if-def-else-break I found=
that the problem
is a bit different:=20
In the original code BREAK is called in the loop when (KC0[0].x !=3D 0) jus=
t like
implemented in the glsl code:=20
0002 LOOP_START_DX10 @36
0004 ALU_PUSH_BEFORE 2 @48 KC0[CB0:0-15]
0048 2 x: MOV R2.x, 1
0050 3 MP x: PRED_SETNE_INT R6.x, KC0[0].x, 0
0006 JUMP @10 << JUMP is called if condit=
ion fails=20
0008 ALU 2 @52
0052 4 x: MOV R2.x, [0x00000002 2.8026e-45].x
0054 00000002=20
0010 ELSE @16 POP:1
0012 LOOP_BREAK @34
0014 POP @16 POP:1
however, in the optimized code the assignment and its branch is optimized a=
way,
and BREAK is called when (KC0[0].x =3D=3D 0), i.e. exactly the opposite of =
the=20
0002 LOOP_START_DX10 @30
0004 PUSH @6
0006 ALU 1 @38 KC0[CB0:0-15]
0038 2 M x: PRED_SETNE_INT __.x, KC0[0].x, 0
0008 JUMP @14 POP:1 << JUMP is called if condition fai=
ls=20
0010 LOOP_BREAK @28
0012 POP @14 POP:1
i.e. the optimizer removed the if branch, keeps the else branch but acts as=
if
it were the if branch, hence the failure.
You are receiving this mail because:
- You are the assignee for the bug.
=
--15170501590.ddddF.25587--
--===============0305402582==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============0305402582==--