From e15543b71ad07d208f0ec3524c8486329ee882f4 Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Tue, 19 Mar 2019 14:11:34 -0700 Subject: [PATCH] intel/isl: Describe I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/isl/isl.h | 3 ++- src/intel/isl/isl_drm.c | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h index 98b5516..fc36085 100644 --- a/src/intel/isl/isl.h +++ b/src/intel/isl/isl.h @@ -1873,7 +1873,8 @@ isl_drm_modifier_get_default_aux_state(uint64_t modifier) return ISL_AUX_STATE_AUX_INVALID; assert(mod_info->aux_usage == ISL_AUX_USAGE_CCS_E || - mod_info->aux_usage == ISL_AUX_USAGE_GEN12_CCS_E); + mod_info->aux_usage == ISL_AUX_USAGE_GEN12_CCS_E || + mod_info->aux_usage == ISL_AUX_USAGE_MC); return mod_info->supports_clear_color ? ISL_AUX_STATE_COMPRESSED_CLEAR : ISL_AUX_STATE_COMPRESSED_NO_CLEAR; } diff --git a/src/intel/isl/isl_drm.c b/src/intel/isl/isl_drm.c index c13a26c..e1cae67 100644 --- a/src/intel/isl/isl_drm.c +++ b/src/intel/isl/isl_drm.c @@ -102,6 +102,13 @@ static const struct isl_drm_modifier_info modifier_info[] = { .aux_usage = ISL_AUX_USAGE_GEN12_CCS_E, .supports_clear_color = false, }, + { + .modifier = I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS, + .name = "I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS", + .tiling = ISL_TILING_Y0, + .aux_usage = ISL_AUX_USAGE_MC, + .supports_clear_color = false, + }, }; const struct isl_drm_modifier_info * -- 2.7.4