On 3 May 2012 15:59, Chad Versace <span dir="ltr">&lt;<a href="mailto:chad.versace@linux.intel.com" target="_blank">chad.versace@linux.intel.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class="im"><br>
On 05/02/2012 02:30 PM, Paul Berry wrote:<br>
&gt; This patch adds a new test, &quot;depthstencil-render-miplevels&quot;, which<br>
&gt; verifies that we can render to all miplevels of depth and stencil<br>
&gt; textures.  It exposes two bugs in Mesa&#39;s current i965 driver:<br>
&gt;<br>
&gt; - Miptree offsets aren&#39;t being calculated correctly for HiZ and<br>
&gt;   separate stencil buffers, causing miplevels to overlap in those<br>
&gt;   buffers.<br>
&gt;<br>
&gt; - When binding the same texture to the GL_DEPTH_ATTACHMENT and<br>
&gt;   GL_STENCIL_ATTACHMENT points, Mesa is trying to share internal data<br>
&gt;   structures even if the miplevels don&#39;t match; as a result,<br>
&gt;   transitioning from one miplevel to another doesn&#39;t work.<br>
&gt;<br>
&gt; The test is capable of running at any texture size (including<br>
&gt; non-power-of-two texture sizes).  However, because of some GPU hang<br>
&gt; bugs in Mesa&#39;s current i965 driver, I&#39;ve limited it to test at a<br>
&gt; texture size of 1024x1024 for now.<br>
&gt;<br>
&gt; v2: Added comment &quot;/* Anonymous namespace */&quot; on the final closing<br>
&gt; brace.  Adjusted the naming scheme for the subtests to allow<br>
&gt; additional format combinations to be added in the future.  Also added<br>
&gt; format combinations involving z32f and z32f_s8.<br>
<br>
</div>Thanks for adding tests for the extra formats.<br>
<div class="im"><br>
&gt; ---<br>
&gt;  tests/all.tests                                   |   19 +<br>
&gt;  tests/texturing/CMakeLists.gl.txt                 |    1 +<br>
&gt;  tests/texturing/depthstencil-render-miplevels.cpp |  404 +++++++++++++++++++++<br>
&gt;  3 files changed, 424 insertions(+), 0 deletions(-)<br>
&gt;  create mode 100644 tests/texturing/depthstencil-render-miplevels.cpp<br>
<br>
<br>
</div>[snip]<br>
<div class="im"><br>
&gt; + * Usage: depthstencil-render-miplevels &lt;texture_size&gt; &lt;buffer_combination&gt;<br>
&gt; + *<br>
&gt; + *  buffer_combination:          buffer attachments:<br>
&gt; + *  stencil                      stencil-&gt;DEPTH_STENCIL<br>
&gt; + *  depth_x                      depth-&gt;DEPTH_STENCIL<br>
&gt; + *  depth                        depth-&gt;DEPTH_COMPONENT<br>
&gt; + *  d16                          depth-&gt;DEPTH_COMPONENT16<br>
&gt; + *  depth_x_and_stencil          depth-&gt;DEPTH_STENCIL, stencil-&gt;DEPTH_STENCIL<br>
&gt; + *  stencil_and_depth_x          (as above, but stencil attached first)<br>
&gt; + *  depth_and_stencil            depth-&gt;DEPTH_COMPONENT, stencil-&gt;DEPTH_STENCIL<br>
&gt; + *  stencil_and_depth            (as above, but stencil attached first)<br>
&gt; + *  depth_stencil_shared         depth-&gt;DEPTH_STENCIL&lt;-stencil<br>
&gt; + *  stencil_depth_shared         (as above, but stencil attached first)<br>
&gt; + *  depth_stencil_single_binding depth_stencil-&gt;DEPTH_STENCIL<br>
<br>
</div>This comment needs to be updated.</blockquote><div><br>Whoops, you&#39;re right.  I&#39;ll fix before pushing.<br></div></div>