<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 - GenerateMipmap creates wrong mipmap for sRGB texture"
href="https://bugs.freedesktop.org/show_bug.cgi?id=97322">97322</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>GenerateMipmap creates wrong mipmap for sRGB texture
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/DRI/i965
</td>
</tr>
<tr>
<th>Assignee</th>
<td>idr@freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>qiankun.miao@intel.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>When generating mipmap for texture, bi-linear interpolation is used to get the
next mip level. If the texture is in sRGB format, we should decode sRGB to
linear before the interpolation, and then re-encode it to sRGB after
interpolation. Mesa doesn't follow such rules.
Steps to reproduce this bug:
1. Run latest "google-chrome-unstable" on Skylake Linux with option
"--enable-unsafe-es3-apis" to enable WebGL 2.0 support.
2. open
<a href="https://www.khronos.org/registry/webgl/sdk/tests/conformance2/textures/misc/tex-srgb-mipmap.html?webglVersion=2">https://www.khronos.org/registry/webgl/sdk/tests/conformance2/textures/misc/tex-srgb-mipmap.html?webglVersion=2</a>
3. You will see the test fails due to some result pixles are different with the
reference.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>