i965/miptree: Make aux_state work in terms of logical layers
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 17 Jul 2017 23:16:41 +0000 (16:16 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sun, 23 Jul 2017 03:59:22 +0000 (20:59 -0700)
commit18a69bbc0f93f27629f9eb834fbe347195299be4
tree19eb1402868aaa2428d2f81d60681f38fe5184cc
parentc9cb37b2a6c3a63eb1caeb8eafe1c14b538056b4
i965/miptree: Make aux_state work in terms of logical layers

This commit changes layer_range_length to return locical layers and also
changes the way we allocate the aux_state field to not allocate extra
layers for MCS.  This will be important as we're about to start doing
significantly more detailed tracking of MCS state.

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