intel: Add offset field to miptree
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Jul 2012 03:09:14 +0000 (23:09 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 11 Jul 2012 19:28:35 +0000 (15:28 -0400)
commit02ebad900db4ef1ac42cbfb41b433919a4c857a2
tree581006f315275f6f7a9a6b7e1756b819e0d5100b
parent44a2b57f93ab68f873eab543f1ecb9dc7f230a7e
intel: Add offset field to miptree

This lets us specify an offset into the bo where the miptree starts,
which will let us set up a texture for a single plane in a planar buffer.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i915/i915_texstate.c
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_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h
src/mesa/drivers/dri/intel/intel_tex_image.c