i965: Move the DRIimage -> miptree code to intel_mipmap_tree.c
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 12 Jun 2017 17:25:26 +0000 (10:25 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 13 Jul 2017 04:15:46 +0000 (21:15 -0700)
commit72e7a6b0b6b099520c4aaebdb339b2dff8c15f36
tree4b0f49bb8cf03cd4df1159637f89bf3f4c7d0200
parent3645268748c44825ce8d37bf03f684731eb2652a
i965: Move the DRIimage -> miptree code to intel_mipmap_tree.c

This is mostly a direct port.  The only bit of refactoring that was done
was to make creating a planar miptree be an early return from the
non-planar case.  Alternatively, we could have three functions: two
helpers and a main function to just call the right helper.  Making the
planar case an early return seemed cleaner.

Reviewed-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h
src/mesa/drivers/dri/i965/intel_tex_image.c