iris: Support the XeHP media compression format

The format on this platform is slightly different from the one used on
TGL. Also it's part of the surface state instead of an aux-map.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14355>
This commit is contained in:
Nanley Chery 2021-09-01 16:39:39 -07:00 committed by Marge Bot
parent 7f46e569e5
commit dc70dd8c7d
1 changed files with 5 additions and 0 deletions

View File

@ -2424,6 +2424,11 @@ fill_surface_state(struct isl_device *isl_dev,
f.aux_usage = aux_usage;
f.clear_color = res->aux.clear_color;
if (aux_usage == ISL_AUX_USAGE_MC)
f.mc_format = iris_format_for_usage(isl_dev->info,
res->external_format,
surf->usage).fmt;
if (res->aux.bo)
f.aux_address = res->aux.bo->address + res->aux.offset;