i965: Stop recomputing drawbuffer bounds on drawbuffer change.
authorEric Anholt <eric@anholt.net>
Thu, 20 Jun 2013 16:49:32 +0000 (09:49 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 26 Jun 2013 02:19:21 +0000 (19:19 -0700)
For winsys FBOs, the bounds are appropriately updated immediately upon
_mesa_resize_framebuffer().  For user FBOs, they're updated as part of the
normal draw path state update due to _NEW_BUFFERS having been flagged.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vtbl.c

index 99d661f97b8057df18530eb3483e03cdfefdf7ac..4bf1ba93cd16f5e0292dd71241b1b28ee7e9daa6 100644 (file)
@@ -118,8 +118,6 @@ brw_update_draw_buffer(struct intel_context *intel)
    if (ctx->NewState & _NEW_BUFFERS) {
       /* this updates the DrawBuffer->_NumColorDrawBuffers fields, etc */
       _mesa_update_framebuffer(ctx);
-      /* this updates the DrawBuffer's Width/Height if it's a FBO */
-      _mesa_update_draw_buffer_bounds(ctx);
    }
 
    if (fb->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) {