i965/miptree: Unify aux buffer allocation
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 1 May 2018 00:00:32 +0000 (17:00 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 17 May 2018 14:06:41 +0000 (07:06 -0700)
commitbb18af82c30f702788108e67270b3f473dfaec80
treead3b7ecf8264c45ee1b77e4385b563029c1d03e2
parent6c41a2ef3b72f9465646fea7ac941e8deb14444b
i965/miptree: Unify aux buffer allocation

There isn't much that changes between the aux allocation functions.
Remove the duplicated code.

v2: Inline the switch statement (Jason).

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c
src/mesa/drivers/dri/i965/intel_mipmap_tree.h