intel: Refactor intel_map_renderbuffer()
authorChad Versace <chad.versace@linux.intel.com>
Wed, 9 Nov 2011 02:17:33 +0000 (18:17 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 15 Nov 2011 14:41:49 +0000 (06:41 -0800)
commitf911cac7a7a8ebcad711587200c7f66ab61d1ccf
tree35215fd9adffa129d59734e4bf4a4874519a4237
parent9d4d9d34d82646e4e7781bb25a64174d35680578
intel: Refactor intel_map_renderbuffer()

The function already implements 3 cases (map through GTT, blit to
a temporary, and detile stencil buffer to temporary), and a 4th will be
added soon: scatter/gather for depthstencil buffers using separate
stencil.  For sanity's sake, this factors each case out into its own
function.

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