From d836f3fadfbfe3dfc8bd1b60b2146f676e8ff8a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Fri, 6 Mar 2020 09:27:13 +0200 Subject: [PATCH] isl: allow compression for storage images on gen12+ MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is done to be able to use ISL_AUX_USAGE_CCS_E with images. Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Nanley Chery Part-of: --- src/intel/isl/isl_surface_state.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/intel/isl/isl_surface_state.c b/src/intel/isl/isl_surface_state.c index ddc51db8d23..7aba99fbebf 100644 --- a/src/intel/isl/isl_surface_state.c +++ b/src/intel/isl/isl_surface_state.c @@ -609,8 +609,11 @@ isl_genX(surf_fill_state_s)(const struct isl_device *dev, void *state, /* The docs don't appear to say anything whatsoever about compression * and the data port. Testing seems to indicate that the data port * completely ignores the AuxiliarySurfaceMode field. + * + * On gen12 HDC supports compression. */ - assert(!(info->view->usage & ISL_SURF_USAGE_STORAGE_BIT)); + if (GEN_GEN < 12) + assert(!(info->view->usage & ISL_SURF_USAGE_STORAGE_BIT)); if (isl_surf_usage_is_depth(info->surf->usage)) assert(isl_aux_usage_has_hiz(info->aux_usage)); -- 2.30.2