i965: When an RB gets a new region, clear the old from the state cache.
authorEric Anholt <eric@anholt.net>
Wed, 5 May 2010 05:02:18 +0000 (22:02 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 5 May 2010 05:06:12 +0000 (22:06 -0700)
commitce914fff0817cb3c25a2d715f8435c6b6d6fbcdd
treec03fc98efdec6226bfa078c5811cda3bf69cac00
parent453f0b1f243b26e02b371293e9c8bbf09362c14a
i965: When an RB gets a new region, clear the old from the state cache.

This prevents memory usage explosion in blender due to the state cache
hanging on to old fake frontbuffer regions.  Sigh at blender still
using frontbuffer rendering.

Bug #24119.
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h
src/mesa/drivers/dri/intel/intel_pixel_draw.c