i965: Remove unnecessary release/reference of brw_context.state.depth_region
authorChad Versace <chad.versace@intel.com>
Thu, 7 Apr 2011 22:44:24 +0000 (15:44 -0700)
committerChad Versace <chad.versace@intel.com>
Wed, 13 Apr 2011 00:52:09 +0000 (17:52 -0700)
commit9949d2a2511564226e0d68d303a53cf7d80f0c2b
tree708b2713d3d33bacf257b2179f13934637b1946e
parent3f7318c1b8d2ad4f4aef66362cdb7b9e8dc89eac
i965: Remove unnecessary release/reference of brw_context.state.depth_region

Release the old depth region and reference the new one *only* if it has
changed.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@intel.com>
src/mesa/drivers/dri/i965/brw_vtbl.c