From ca092db7ce5ee2e8c45e1b60f4d4fef02e87054d Mon Sep 17 00:00:00 2001 From: Jianxun Zhang Date: Wed, 26 Jun 2024 17:12:16 -0700 Subject: [PATCH] intel/dev: Differentiate displayable PAT entry of compression (xe2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need two PAT entries with compression for displayable and non-displayable compressed images. The current 'compressed' entry is renamed to 'scanout_compressed' for the displayable. Signed-off-by: Jianxun Zhang Reviewed-by: José Roberto de Souza Part-of: --- src/intel/dev/intel_device_info.c | 4 +++- src/intel/dev/intel_device_info.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/intel/dev/intel_device_info.c b/src/intel/dev/intel_device_info.c index bb850cd14a5..c4d9b9c2767 100644 --- a/src/intel/dev/intel_device_info.c +++ b/src/intel/dev/intel_device_info.c @@ -1190,7 +1190,9 @@ static const struct intel_device_info intel_device_info_arl_h = { /* CPU: WC, GPU: PAT 0 => WB */ \ .writecombining = PAT_ENTRY(0, WC), \ /* CPU: WC, GPU: PAT 11 => XD, compressed */ \ - .compressed = PAT_ENTRY(11, WC) \ + .compressed_scanout = PAT_ENTRY(11, WC), \ + /* CPU: WC, GPU: PAT 9 => WB, compressed */ \ + .compressed = PAT_ENTRY(9, WC) \ } #define XE2_CONFIG(platform_suffix) \ diff --git a/src/intel/dev/intel_device_info.py b/src/intel/dev/intel_device_info.py index 77a486ed0dc..a6468756a61 100644 --- a/src/intel/dev/intel_device_info.py +++ b/src/intel/dev/intel_device_info.py @@ -230,8 +230,11 @@ Struct("intel_device_info_pat_desc", Member("intel_device_info_pat_entry", "scanout", comment="scanout and external BOs"), + Member("intel_device_info_pat_entry", "compressed_scanout", + comment="Only supported in Xe2, compressed + WC for displayable resources"), + Member("intel_device_info_pat_entry", "compressed", - comment="Only supported in Xe2, compressed + WC"), + comment="Only supported in Xe2, compressed + WC for non-displayable resources"), Member("intel_device_info_pat_entry", "writeback_incoherent", comment=("BOs without special needs, can be WB not coherent "