[Bug 111241] Shadertoy shader causing hang

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 9 16:22:09 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=111241

--- Comment #3 from Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com> ---
Here's my understanding of the issue.

This shader uses 2 passes:
 - the first pass has BufferA as input and output and does:

if (first frame)
  // init bufferA content
else
  // do something useful

 - the 2nd pass has BufferA as input and does:

N = texelFetch(bufferA)
for(i=0; i < N; i++)
  // do something


The problem here is the "// init bufferA content": it fails to initialize the
buffer content properly, leading to an infinite loop in the 2nd pass.

The exact code is:
   if (iFrame==0) { O -= O; return; }

If one replaces this line with:
   if (iFrame==0) { O = vec4(0.0f); return; }

The shader works fine (you can test the modified version here:
https://www.shadertoy.com/view/wtSXzw ).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190809/d675ee20/attachment.html>


More information about the dri-devel mailing list