intel: add pixel offset calculator for miptree levels
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Fri, 7 Dec 2012 11:40:35 +0000 (13:40 +0200)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 1 Feb 2013 19:58:12 +0000 (11:58 -0800)
commit163b35e416349c0f079aa6a92eb0bade2cabf5bc
tree761d76894d3b307b40ad737e44953efb84a20641
parent7014df0d1da97b655014eb783fa9f34c78a93631
intel: add pixel offset calculator for miptree levels

Add helper to calculate fine-grained x and y adjustment pixels
to an image within a miptree level for tiled regions.

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