anv/image: Don't assert that HiZ can be added

HiZ isn't yet enabled for Tile4/64.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12132>
This commit is contained in:
Nanley Chery 2021-07-21 12:06:28 -07:00 committed by Marge Bot
parent 0022a11ff4
commit 565f9105b7
1 changed files with 3 additions and 1 deletions

View File

@ -557,7 +557,9 @@ add_aux_surface_if_supported(struct anv_device *device,
ok = isl_surf_get_hiz_surf(&device->isl_dev,
&image->planes[plane].primary_surface.isl,
&image->planes[plane].aux_surface.isl);
assert(ok);
if (!ok)
return VK_SUCCESS;
if (!isl_surf_supports_ccs(&device->isl_dev,
&image->planes[plane].primary_surface.isl,
&image->planes[plane].aux_surface.isl)) {