intel: Refactor creation of hiz and mcs miptrees
authorChad Versace <chad.versace@linux.intel.com>
Fri, 20 Jul 2012 21:56:16 +0000 (14:56 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 7 Aug 2012 16:30:33 +0000 (09:30 -0700)
commit4eba67285fb6b5d2dd4927e8dc4b3e2945435309
tree50666c2f7400469a21fee1bc9179432e09ba0ec1
parente2f2376e884225705e2369caee4a8c4e90e938f3
intel: Refactor creation of hiz and mcs miptrees

Move the logic for creating the ancillary hiz and mcs miptress for winsys
and non-texture renderbuffers from intel_alloc_renderbuffer_storage to
intel_miptree_create_for_renderbuffer. Let's try to isolate complex
miptree logic to intel_mipmap_tree.c.

Without this refactor, code duplication would be required along the
intel_process_dri2_buffer codepath in order to create the mcs miptree.

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