<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:michel@daenzer.net" title="Michel Dänzer <michel@daenzer.net>"> <span class="fn">Michel Dänzer</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - Incorrect texture filtering when using GL_LINEAR_MIPMAP_LINEAR"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94882">bug 94882</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>NOTOURBUG
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - Incorrect texture filtering when using GL_LINEAR_MIPMAP_LINEAR"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94882#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - Incorrect texture filtering when using GL_LINEAR_MIPMAP_LINEAR"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94882">bug 94882</a>
from <span class="vcard"><a class="email" href="mailto:michel@daenzer.net" title="Michel Dänzer <michel@daenzer.net>"> <span class="fn">Michel Dänzer</span></a>
</span></b>
<pre>Looking at the fragment shader:
// check if in [-1;1]
if(any(lessThan ( vec3(1.0), projTexCoords ))
|| any(greaterThan( vec3(-1.0), projTexCoords )))
return vec3(0.0, 0.0, 0.3);
projTexCoords = 0.5 * projTexCoords + vec3(0.5); // transform to [0;1]
return texture( u_Texture, projTexCoords.xy ).xyz;
texture() is only called conditionally, i.e. within non-uniform control flow,
but for mip-mapping it has to implicitly calculate derivatives. Section 8.7 of
the GLSL spec explains that this is undefined:
"Some texture functions (non-“Lod” and non-“Grad” versions) may require
implicit derivatives. Implicit derivatives are undefined within non-uniform
control flow [...]."</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>