iris: Use devinfo::has_flat_ccs instead of verx10
The assumption that GFX12.5 devices don't have AUX map is invalid since MTL's introduction. Signed-off-by: Jianxun Zhang <jianxun.zhang@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20043>
This commit is contained in:
@@ -764,7 +764,7 @@ iris_get_ccs_surf_or_support(const struct isl_device *dev,
|
||||
ccs_surf = aux_surf;
|
||||
}
|
||||
|
||||
if (dev->info->verx10 >= 125) {
|
||||
if (dev->info->has_flat_ccs) {
|
||||
/* CCS doesn't require VMA on XeHP. So, instead of creating a separate
|
||||
* surface, we can just return whether CCS is supported for the given
|
||||
* input surfaces.
|
||||
@@ -868,7 +868,7 @@ iris_resource_configure_aux(struct iris_screen *screen,
|
||||
assert(res->aux.usage != ISL_AUX_USAGE_STC_CCS);
|
||||
initial_state =
|
||||
isl_drm_modifier_get_default_aux_state(res->mod_info->modifier);
|
||||
} else if (devinfo->verx10 >= 125) {
|
||||
} else if (devinfo->has_flat_ccs) {
|
||||
assert(res->aux.surf.size_B == 0);
|
||||
/* From Bspec 47709, "MCS/CCS Buffers for Render Target(s)":
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user