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:
parent
7f46e569e5
commit
dc70dd8c7d
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue