Mesa (master): intel: Flag NEW_BUFFERS when changing draw buffers.

Eric Anholt anholt at
Tue Jun 8 20:42:22 UTC 2010

Module: Mesa
Branch: master
Commit: bcf63dbbd8fd31b724294b34a62a0e6c565dce87

Author: Eric Anholt <eric at>
Date:   Mon Jun  7 17:42:03 2010 -0700

intel: Flag NEW_BUFFERS when changing draw buffers.

There were entries to this function (most imporantly, prepare_render
-> update_renderbuffers) that wouldn't have had NEW_BUFFERS set, but
brw_wm_surface_state (the i965 state tracking the drawing regions)
expected this to change.


 src/mesa/drivers/dri/intel/intel_buffers.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_buffers.c b/src/mesa/drivers/dri/intel/intel_buffers.c
index 0480770..1bff344 100644
--- a/src/mesa/drivers/dri/intel/intel_buffers.c
+++ b/src/mesa/drivers/dri/intel/intel_buffers.c
@@ -231,6 +231,7 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
    intel->vtbl.set_draw_region(intel, colorRegions, depthRegion, 
+   intel->NewGLState |= _NEW_BUFFERS;
    /* update viewport since it depends on window size */
 #ifdef I915

More information about the mesa-commit mailing list