i965: Stop flagging viewport/scissor change on drawbuffers change. 32/7132/1
authorEric Anholt <eric@anholt.net>
Thu, 20 Jun 2013 15:41:19 +0000 (08:41 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 26 Jun 2013 02:19:21 +0000 (19:19 -0700)
The viewport (ctx->Viewport._WindowMap) doesn't change with drawable size
changes, and we update scissor (ctx->DrawBuffer->_Xmin and friends) on
_NEW_BUFFERS in things like brw_sf_state.c.

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

index ba5fadf..a47b7a3 100644 (file)
@@ -141,9 +141,6 @@ brw_update_draw_buffer(struct intel_context *intel)
     * renderbuffers' buffer objects.
     */
    intel->NewGLState |= _NEW_BUFFERS;
-
-   /* update viewport/scissor since it depends on window size */
-   intel->NewGLState |= _NEW_VIEWPORT | _NEW_SCISSOR;
 }
 
 /**