intel: Allow src == NULL and *dst != NULL in intel_miptree_reference().
authorEric Anholt <eric@anholt.net>
Wed, 21 Sep 2011 22:38:32 +0000 (15:38 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 26 Sep 2011 22:33:42 +0000 (15:33 -0700)
commit32fe506ae14efa055f4773f422e2edd9fd1cffee
tree16b1319587e099ab713f41580c193ee25e4b424a
parentdb3ada6055814a4bd5aa95fc9505fc101864391d
intel: Allow src == NULL and *dst != NULL in intel_miptree_reference().

This makes this API consistent with intel_region_reference, and the
consumers wanted it this way.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_tex_image.c
src/mesa/drivers/dri/intel/intel_tex_validate.c