<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:t_arceri@yahoo.com.au" title="Timothy Arceri <t_arceri@yahoo.com.au>"> <span class="fn">Timothy Arceri</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Shadertoy shader causing hang"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111241">bug 111241</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Shadertoy shader causing hang"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111241#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Shadertoy shader causing hang"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111241">bug 111241</a>
from <span class="vcard"><a class="email" href="mailto:t_arceri@yahoo.com.au" title="Timothy Arceri <t_arceri@yahoo.com.au>"> <span class="fn">Timothy Arceri</span></a>
</span></b>
<pre>(In reply to Dieter Nützel from <a href="show_bug.cgi?id=111241#c12">comment #12</a>)
<span class="quote">> (In reply to Pierre-Eric Pelloux-Prayer from <a href="show_bug.cgi?id=111241#c11">comment #11</a>)
> > (In reply to Dieter Nützel from <a href="show_bug.cgi?id=111241#c8">comment #8</a>)
> > > BTW
> > >
> > > Pierre-Eric can you look into this
> > >
> > > Shadertoy shader corruption, too?
> > > <a href="https://www.shadertoy.com/view/Xt3cWS">https://www.shadertoy.com/view/Xt3cWS</a>
> > >
> >
> > The "Buffer A" shader doesn't write fragColor when uv.y is < 0.1 or > 0.9.
> >
> > So the content is undefined and may be black on some platform or random.
> >
> > radeonsi is correct here, but we might want to replace undef values with 0x0
> > to get a default value instead of random.
>
> Cool to have you around for bug hunting...;-)
>
> Any hints where I shoud change 'undef values with 0x0' for testing?
>
> And sorry that I 'hijacked' this thread - should I open a new ticket?</span >
I don't think you need to open a bug for it at all. As its not a bug in Mesa
its a shader bug.
Closing this bug report as it should be fixed by:
commit 47cc660d9c19572e5ef2dce7c8ae1766a2ac9885
glsl: replace 'x + (-x)' with constant 0
This fixes a hang in shadertoy for radeonsi where a buffer was initialized
with:
value -= value
with value being undefined.
In this case LLVM replace the operation with an assignment to NaN.
Cc: 19.1 19.2 <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>>
Bugzilla: <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Shadertoy shader causing hang"
href="show_bug.cgi?id=111241">https://bugs.freedesktop.org/show_bug.cgi?id=111241</a>
Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>