intel/isl: Refactor isl_surf_get_ccs_surf
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 6 Mar 2020 22:49:39 +0000 (16:49 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 16:17:45 +0000 (16:17 +0000)
commit752eefdb3db18389dba56dd7c4f9ca45ebe8fadd
tree4e5a70a37c839e1b858fee4b67cc50bc27c9c705
parent3eb1993625cf14695c352b5996c99bcad041daf2
intel/isl: Refactor isl_surf_get_ccs_surf

This refactor breaks out a new isl_surf_supports_ccs function which does
most of the validity checking.  The isl_surf_get_ccs_surf function calls
this function and then dives right into constructing the CCS aux_surf.

Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4100>
src/intel/isl/isl.c
src/intel/isl/isl.h