On Mon, Feb 13, 2012 at 4:33 PM, Brian Paul <span dir="ltr">&lt;<a href="mailto:brianp@vmware.com">brianp@vmware.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">

<div class="HOEnZb"><div class="h5">On 02/13/2012 12:34 PM, Anuj Phogat wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Reallocate/resize decompress FBO only if texture image width/height is<br>
greater than existing decompress FBO width/height.<br>
<br>
Signed-off-by: Anuj Phogat&lt;<a href="mailto:anuj.phogat@gmail.com" target="_blank">anuj.phogat@gmail.com</a>&gt;<br>
---<br>
  src/mesa/drivers/common/meta.c |    2 +-<br>
  1 files changed, 1 insertions(+), 1 deletions(-)<br>
<br>
diff --git a/src/mesa/drivers/common/<u></u>meta.c b/src/mesa/drivers/common/<u></u>meta.c<br>
index f3f5d85..c3b2367 100644<br>
--- a/src/mesa/drivers/common/<u></u>meta.c<br>
+++ b/src/mesa/drivers/common/<u></u>meta.c<br>
@@ -3292,7 +3292,7 @@ decompress_texture_image(<u></u>struct gl_context *ctx,<br>
     }<br>
<br>
     /* alloc dest surface */<br>
-   if (width != decompress-&gt;Width || height != decompress-&gt;Height) {<br>
+   if (width&gt;  decompress-&gt;Width || height&gt;  decompress-&gt;Height) {<br>
        _mesa_RenderbufferStorageEXT(<u></u>GL_RENDERBUFFER_EXT, GL_RGBA,<br>
                                     width, height);<br>
        decompress-&gt;Width = width;<br>
</blockquote>
<br>
<br></div></div>
Assuming you&#39;ve tested this and there&#39;s no regressions,<br></blockquote><div>yes, I&#39;ve tested with piglit quick.tests. No regressions. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Reviewed-by: Brian Paul &lt;<a href="mailto:brianp@vmware.com" target="_blank">brianp@vmware.com</a>&gt;<br>
</blockquote></div><br>