intel: Add a helper function for getting miptree size from a texture image.
authorEric Anholt <eric@anholt.net>
Thu, 29 Sep 2011 18:30:18 +0000 (11:30 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 3 Oct 2011 20:29:38 +0000 (13:29 -0700)
commitfd99cd0e10849205749aad580fea8c970fb46a31
tree1e46fc0564c8f4d958d90a75c173cfd909a5e2a5
parent2e0aefc1b9023a3d4003c1974489252d29b1d65b
intel: Add a helper function for getting miptree size from a texture image.

With 1D array textures, we no longer agree between the GL information
about width/height/depth of a texture and how we lay out a miptree.
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_blit.c
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h
src/mesa/drivers/dri/intel/intel_tex_image.c
src/mesa/drivers/dri/intel/intel_tex_validate.c