intel: Push face/level -> slice handling to the caller of get_image_offset().
authorEric Anholt <eric@anholt.net>
Thu, 1 Nov 2012 00:00:21 +0000 (17:00 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 19 Nov 2012 23:07:22 +0000 (15:07 -0800)
commitbe9e66430763aa2785cbd12d483c7eb9e7055436
tree2a35b537765e2c089791f0ab06e22463cc7924d3
parentc1fabea1c5a40c60176201f55253bd463fd146f5
intel: Push face/level -> slice handling to the caller of get_image_offset().

We were always passing 0 for one of the two fields, and the code just used
whichever one wasn't 0.

Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i915/i830_texstate.c
src/mesa/drivers/dri/i965/brw_blorp.cpp
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_copy.c
src/mesa/drivers/dri/intel/intel_tex_image.c
src/mesa/drivers/dri/intel/intel_tex_subimage.c
src/mesa/drivers/dri/intel/intel_tex_validate.c