intel: Always gather stencil buffer in intel_map_renderbuffer_separate_s8z24()
authorChad Versace <chad.versace@linux.intel.com>
Thu, 17 Nov 2011 00:02:39 +0000 (16:02 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 22 Nov 2011 00:58:29 +0000 (16:58 -0800)
commit190aec75a4362b56b9b311975a777c56e8e6c67d
tree9a622a6a98321da9d9783856dbeb8918b5674652
parentaf35a3523df7f555427de4835ae092d1836c3c95
intel: Always gather stencil buffer in intel_map_renderbuffer_separate_s8z24()

The function gathered the stencil buffer into the depth buffer only when
the map mode contained the read bit. But we must do the gather even if the
map mode is write-only. If we do not, then, when the depth buffer's stencil
bits are scattered into the stencil buffer by intel_unmap_renderbuffer(),
some of the scattered stencil bits would be invalid.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_fbo.c