From: Tapani Pälli Date: Fri, 6 Mar 2020 07:27:13 +0000 (+0200) Subject: isl: allow compression for storage images on gen12+ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d836f3fadfbfe3dfc8bd1b60b2146f676e8ff8a1;p=mesa.git isl: allow compression for storage images on gen12+ 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: --- 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));