intel: Always downsample in intel_miptree_map_multisample
authorChad Versace <chad.versace@linux.intel.com>
Thu, 9 Aug 2012 20:55:07 +0000 (13:55 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Thu, 9 Aug 2012 22:21:02 +0000 (15:21 -0700)
commit6cb9e99a757bd5a9d908ed6c5515a9ae5fb041ba
treee3b893f45bfc94cd747632ce6d44243b26b01f48
parent04a11b5f5e22155e5816e2da560b485eb0eaaec9
intel: Always downsample in intel_miptree_map_multisample

Always downsample before mapping, even if the map mode contains
GL_MAP_INVALIDATE_RANGE_BIT. If we neglect to downsample when only
a subrect is mapped then the upsample in intel_miptree_unmap_multisample
may write garbage to the region outside the subrect.

(Eric gave my patch e88cfbb a conditional reviewed-by with the condition
that it always downsample before mapping. I forgot to make that change
before pushing the patch.)

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c