anv: Skip some CCS performance warnings on gfx9-11

These platforms don't support CCS on MCS/HIZ/STC. There's nothing we can
do about this. So, stop warning about it.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41712>
This commit is contained in:
Nanley Chery 2026-05-19 10:20:12 -04:00 committed by Marge Bot
parent 888ea50760
commit 6f7baf4e7d

View file

@ -748,9 +748,11 @@ add_aux_surface_if_supported(struct anv_device *device,
}
if (!isl_surf_supports_ccs(&device->isl_dev, main_surf)) {
anv_perf_warn(VK_LOG_OBJS(&device->vk.base),
"Depth surface does not support CCS, "
"falling back to HIZ without compression");
if (device->info->ver >= 12) {
anv_perf_warn(VK_LOG_OBJS(&device->vk.base),
"Depth surface does not support CCS, "
"falling back to HIZ without compression");
}
image->planes[plane].aux_usage = ISL_AUX_USAGE_HIZ;
} else if (want_hiz_wt_for_image(device->info, image)) {
assert(device->info->ver >= 12);
@ -782,9 +784,11 @@ add_aux_surface_if_supported(struct anv_device *device,
}
} else if (main_surf->usage & (ISL_SURF_USAGE_STENCIL_BIT | ISL_SURF_USAGE_CPB_BIT)) {
if (!isl_surf_supports_ccs(&device->isl_dev, main_surf)) {
anv_perf_warn(VK_LOG_OBJS(&device->vk.base),
"Skipping aux surface creation: "
"stencil/cpb surface does not support CCS");
if (device->info->ver >= 12) {
anv_perf_warn(VK_LOG_OBJS(&device->vk.base),
"Skipping aux surface creation: "
"stencil/cpb surface does not support CCS");
}
return VK_SUCCESS;
}
@ -878,9 +882,11 @@ add_aux_surface_if_supported(struct anv_device *device,
if (isl_surf_supports_ccs(&device->isl_dev, main_surf)) {
image->planes[plane].aux_usage = ISL_AUX_USAGE_MCS_CCS;
} else {
anv_perf_warn(VK_LOG_OBJS(&device->vk.base),
"MSAA color surface does not support CCS, "
"falling back to MCS without compression");
if (device->info->ver >= 12) {
anv_perf_warn(VK_LOG_OBJS(&device->vk.base),
"MSAA color surface does not support CCS, "
"falling back to MCS without compression");
}
image->planes[plane].aux_usage = ISL_AUX_USAGE_MCS;
}