intel/isl: Clean up some aux surface logic
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 5 Mar 2020 17:30:59 +0000 (11:30 -0600)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 17:51:28 +0000 (17:51 +0000)
commitfeaedc1fbe43ed4ad4978b9ff6815711ffd640a2
tree2ef1ad4e1a2f920aa77e479633598aa15b8c69a4
parent84f97a21a669a42d458d9d8c7f52b65c4af355b5
intel/isl: Clean up some aux surface logic

The first check is redundant because the first thing we do in the "emit
the aux surface" section is assert that we actually have an aux_surf.
The second check involves an exclusion list of things which don't have
aux surfaces on Gen12 but an inclusion list is much simpler because it's
just "does it have MCS?".

Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4056>
src/intel/isl/isl_surface_state.c