i965/miptree: Call alloc_aux in create_for_bo
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 2 Aug 2017 18:07:36 +0000 (11:07 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 7 Aug 2017 16:31:11 +0000 (09:31 -0700)
commit8e5808fc0c9d9da19a0c7f683c156386d4648842
tree200b59b36e99c07135d236973f86a0dfbcfa4ffe
parenta5a673dfa7ecd46698b7d4bbf3013fe747a2d42a
i965/miptree: Call alloc_aux in create_for_bo

Originally, I had moved it to the caller to make some things easier when
adding the CCS modifier.  However, this broke DRI2 because
intel_process_dri2_buffer calls intel_miptree_create_for_bo but never
calls intel_miptree_alloc_aux.  Also, in hindsight, it should be pretty
easy to make the CCS modifier stuff work even if create_for_bo allocates
the CCS when DISABLE_AUX is not set.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c