<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 - Stencil blits from targets other than GL_TEXTURE_2D or GL_TEXTURE_2D_MULTISAMPLE are probably broken"
href="https://bugs.freedesktop.org/show_bug.cgi?id=93704">93704</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Stencil blits from targets other than GL_TEXTURE_2D or GL_TEXTURE_2D_MULTISAMPLE are probably broken
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</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>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>idr@freedesktop.org
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>The setup_program function in brw_meta_stencil_blit.c
(<a href="http://cgit.freedesktop.org/mesa/mesa/tree/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c#n282">http://cgit.freedesktop.org/mesa/mesa/tree/src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c#n282</a>)
can only generate shader variations for GL_TEXTURE_2D and
GL_TEXTURE_2D_MULTISAMPLE. However, if I add an assertion
assert(target == GL_TEXTURE_2D || target == GL_TEXTURE_2D_MULTISAMPLE);
at the single caller of the function, the
arb_stencil_texturing-blit_corrupts_state test
(<a href="http://patchwork.freedesktop.org/patch/70427/">http://patchwork.freedesktop.org/patch/70427/</a>) fails the assertion for every
other target. That indicates to me that blits from those other targets
probably don't work.
We need a test like arb_stencil_texturing-blit_corrupts_state that verifies the
result of blitting from every possible texture target. It shouldn't be too
hard to adapt the existing arb_stencil_texturing-draw test.</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>