[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-18 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #16 from Roland Scheidegger --- (In reply to Nicolai Hähnle from comment #14) > I suspect the reason that the blob drivers do it this way is that if you > don't, you're likely to hit a subtle bug with emit inside control flow. And >

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #15 from Jakob Bornecrantz --- (In reply to Nicolai Hähnle from comment #14) > I suspect the reason that the blob drivers do it this way is that if you > don't, you're likely to hit a subtle bug with emit inside control flow. And > m

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #14 from Nicolai Hähnle --- I suspect the reason that the blob drivers do it this way is that if you don't, you're likely to hit a subtle bug with emit inside control flow. And making the effort to exploit the undefined-ness probably

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #13 from Jakob Bornecrantz --- (In reply to Nicolai Hähnle from comment #11) > Actually, I suspect we do have a related bug here in the Mesa state tracker, > but you definitely need to fix that geometry shader. Oh I did not know tha

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #12 from Ilia Mirkin --- (In reply to Nicolai Hähnle from comment #10) > The geometry shader is incorrect. I guess it works on i965 because the NIR > path skips some optimizations that are allowed by the GLSL spec, which has > this t

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #11 from Nicolai Hähnle --- Actually, I suspect we do have a related bug here in the Mesa state tracker, but you definitely need to fix that geometry shader. -- You are receiving this mail because: You are the assignee for the bug.

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-17 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 Nicolai Hähnle changed: What|Removed |Added Resolution|--- |NOTOURBUG Status|NEW

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #9 from Jakob Bornecrantz --- With the LLVM patch it looks the same as you, but its still wrong (should look like Ilias screenshot). -- You are receiving this mail because: You are the assignee for the bug. -- next part

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #8 from Jakob Bornecrantz --- (In reply to Ilia Mirkin from comment #7) > Created attachment 128012 [details] > last frame with i965/SKL mesa 13.0.1 That is how it should look. 17:02 < nha> funny because Prf_Jakob seems to think i

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #7 from Ilia Mirkin --- Created attachment 128012 --> https://bugs.freedesktop.org/attachment.cgi?id=128012&action=edit last frame with i965/SKL mesa 13.0.1 -- You are receiving this mail because: You are the assignee for the bug.

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #6 from Nicolai Hähnle --- Created attachment 128011 --> https://bugs.freedesktop.org/attachment.cgi?id=128011&action=edit Last frame of trace with LLVM patch The patch at https://reviews.llvm.org/D26747 fixes the assertion that I

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 Jakob Bornecrantz changed: What|Removed |Added Attachment #127871|0 |1 is obsolete|

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-16 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #4 from Nicolai Hähnle --- Thanks for trying to reduce the test case as much as possible. Do you have a simple test program that shows the problem? -- You are receiving this mail because: You are the assignee for the bug. -

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 Jakob Bornecrantz changed: What|Removed |Added Attachment #127870|0 |1 is obsolete|

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #2 from Jakob Bornecrantz --- Created attachment 127872 --> https://bugs.freedesktop.org/attachment.cgi?id=127872&action=edit Geometry shader -- You are receiving this mail because: You are the assignee for the bug. --

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 --- Comment #1 from Jakob Bornecrantz --- Created attachment 127871 --> https://bugs.freedesktop.org/attachment.cgi?id=127871&action=edit Vertex shader -- You are receiving this mail because: You are the assignee for the bug. -- n

[Bug 98664] Fragment shader while loop causes geometry corruption

2016-11-09 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=98664 Bug ID: 98664 Summary: Fragment shader while loop causes geometry corruption Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW