intel: Keep track of x,y offsets in miptrees and use them for blitting.
authorEric Anholt <eric@anholt.net>
Thu, 9 Jul 2009 16:32:21 +0000 (09:32 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 23 Oct 2009 21:12:24 +0000 (14:12 -0700)
commit2d17dbfb5346b6d75e87c839148cbe125bf5cd6d
tree0d73944611c8c97a37c8e580179505f9fcda0ae1
parentb01937a3c967ed23315c7543f97228be06942b7d
intel: Keep track of x,y offsets in miptrees and use them for blitting.

By just using offsets, we confused the hardware's tiling calculations,
resulting in failures in miptree validation and blit clears.

Fixes piglit fbo-clearmipmap.

Bug #23552. (automatic mipmap generation)
src/mesa/drivers/dri/i965/brw_tex_layout.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_regions.h
src/mesa/drivers/dri/intel/intel_tex_copy.c
src/mesa/drivers/dri/intel/intel_tex_image.c