i965/miptree: Refactor some things to use mt->aux_usage
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 21 Jun 2017 19:10:03 +0000 (12:10 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sun, 23 Jul 2017 03:59:22 +0000 (20:59 -0700)
commite1ce25210644396d0d6ef126df85dd8dd6957c79
tree4591f6a993f8532c46eb13cd3c81fd21569e6acf
parent427d248fbd9c5a5338ad7504214fd6562e7eebd2
i965/miptree: Refactor some things to use mt->aux_usage

Now that we have this field, it's much easier to switch on it than to
walk an if ladder that checks different things.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c