On Mon, Feb 13, 2012 at 4:33 PM, Brian Paul <span dir="ltr"><<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>></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<<a href="mailto:anuj.phogat@gmail.com" target="_blank">anuj.phogat@gmail.com</a>><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->Width || height != decompress->Height) {<br>
+ if (width> decompress->Width || height> decompress->Height) {<br>
_mesa_RenderbufferStorageEXT(<u></u>GL_RENDERBUFFER_EXT, GL_RGBA,<br>
width, height);<br>
decompress->Width = width;<br>
</blockquote>
<br>
<br></div></div>
Assuming you've tested this and there's no regressions,<br></blockquote><div>yes, I'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 <<a href="mailto:brianp@vmware.com" target="_blank">brianp@vmware.com</a>><br>
</blockquote></div><br>