From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
Subject: [Bug 91056] The Bard's Tale (2005,
native) has rendering issues
Date: Tue, 30 Jun 2015 05:37:45 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1538567309=="
Return-path:
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Sender: "Nouveau"
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
List-Id: nouveau.vger.kernel.org
--===============1538567309==
Content-Type: multipart/alternative; boundary="1435642665.7Eb8b1.13528"; charset="UTF-8"
--1435642665.7Eb8b1.13528
Date: Tue, 30 Jun 2015 05:37:45 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=91056
--- Comment #5 from Ilia Mirkin ---
(In reply to Ilia Mirkin from comment #4)
> Created attachment 116707 [details] [review]
> provisional fix
>
> OK, so this patch appears to fix it. The shaders at the end of that opt
> trace have
>
> 00000028: b5000409 08000780 add rn f32 $r2 $r2 neg c0[$a1]
> 00000040: b500060d 08004780 add rn f32 $r3 $r3 neg c0[$a1+0x4]
>
> etc in them. Which seems innocuous enough, but... something about it is bad.
> Perhaps the neg + indirect. Perhaps just indirect. Perhaps... who knows.
> Needs testing.
uniform vec4 colors[4];
uniform int index;
void main() { gl_FragColor = -vec4(0.2, 0.2, 0.2, 0) - colors[index]; }
generates
00000000: 10002001 2400c780 ld $r0 b32 c0[0x40]
00000008: 100d8009 0be4cccf mov b32 $r2 0xbe4ccccd
00000010: 00040005 c0000780 shl $a1 $r0 0x4
00000018: b5000401 08000780 add rn f32 $r0 $r2 neg c0[$a1]
00000020: b5000405 08004780 add rn f32 $r1 $r2 neg c0[$a1+0x4]
00000028: b5000409 08008780 add rn f32 $r2 $r2 neg c0[$a1+0x8]
00000030: 1400060d 2400c780 ld $r3 b32 c0[$a1+0xc]
Which works fine. There's something even more subtle going on :(
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
--1435642665.7Eb8b1.13528
Date: Tue, 30 Jun 2015 05:37:45 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 5
on bug 91056
from Ilia Mirkin
(In reply to Ilia Mirkin from comment #4)
> Created attachment 116707 [details] [review] [review]
> provisional fix
>
> OK, so this patch appears to fix it. The shaders at the end of that opt
> trace have
>
> 00000028: b5000409 08000780 add rn f32 $r2 $r2 neg c0[$a1]
> 00000040: b500060d 08004780 add rn f32 $r3 $r3 neg c0[$a1+0x4]
>
> etc in them. Which seems innocuous enough, but... something about it is bad.
> Perhaps the neg + indirect. Perhaps just indirect. Perhaps... who knows.
> Needs testing.
uniform vec4 colors[4];
uniform int index;
void main() { gl_FragColor = -vec4(0.2, 0.2, 0.2, 0) - colors[index]; }
generates
00000000: 10002001 2400c780 ld $r0 b32 c0[0x40]
00000008: 100d8009 0be4cccf mov b32 $r2 0xbe4ccccd
00000010: 00040005 c0000780 shl $a1 $r0 0x4
00000018: b5000401 08000780 add rn f32 $r0 $r2 neg c0[$a1]
00000020: b5000405 08004780 add rn f32 $r1 $r2 neg c0[$a1+0x4]
00000028: b5000409 08008780 add rn f32 $r2 $r2 neg c0[$a1+0x8]
00000030: 1400060d 2400c780 ld $r3 b32 c0[$a1+0xc]
Which works fine. There's something even more subtle going on :(
You are receiving this mail because:
- You are the QA Contact for the bug.
- You are the assignee for the bug.
--1435642665.7Eb8b1.13528--
--===============1538567309==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt
YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cDovL2xpc3RzLmZy
ZWVkZXNrdG9wLm9yZy9tYWlsbWFuL2xpc3RpbmZvL25vdXZlYXUK
--===============1538567309==--