<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Warn about mipmap-incomplete texture being used"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105901">105901</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Warn about mipmap-incomplete texture being used
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>17.2
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Other
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>b7.10110111@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Usage of textures with incomplete mipmap is a common OpenGL pitfall [1], since
by default GL_TEXTURE_MIN_FILTER is GL_NEAREST_MIPMAP_LINEAR. Thus it'd be very
useful if Mesa called debug callbacks on such errors.
A test case can be found in the attachment. When run, it first tries to draw a
full-screen textured quad with a mipmap-incomplete texture, and on a key press
it toggles TEXTURE_MIN_FILTER between NEAREST and NEAREST_MIPMAP_LINEAR.
Binary nvidia driver gives me a useful debug notification, leading to the
following output from the test program on each frame with mipmap-incomplete
texture use:
<span class="quote">> debug callback called, notification: Texture state usage warning: Texture 1 has no mipmaps, while its min filter requires mipmap.</span >
It would be very useful if Mesa also did this. Currently (as of 17.2) it
doesn't emit any relevant messages.
[1]:
<a href="https://www.opengl.org/archives/resources/features/KilgardTechniques/oglpitfall/">https://www.opengl.org/archives/resources/features/KilgardTechniques/oglpitfall/</a></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>