mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 23:08:18 +02:00
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:
parent
888ea50760
commit
6f7baf4e7d
1 changed files with 15 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue