i965/miptree: Refactor is_mcs_supported
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 2 Aug 2017 17:41:18 +0000 (10:41 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 7 Aug 2017 16:31:11 +0000 (09:31 -0700)
commit7659f8c9043c0f8d04966d8c7b591f07e568ff5e
tree7cf7d606c96e7260bf64ae1aea2480183a90f8c6
parent0e4d9a4b371f33646ef0779d811ac91ab676ea27
i965/miptree: Refactor is_mcs_supported

We rename it to intel_miptree_supports_mcs and make the function
signature match intel_miptree_supports_ccs/hiz.  We also move the sample
count check into the function so it returns false for single-sampled
surfaces.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c