intel/dev: Differentiate displayable PAT entry of compression (xe2)

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 <jianxun.zhang@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29928>
This commit is contained in:
Jianxun Zhang 2024-06-26 17:12:16 -07:00
parent 37ee91679a
commit ca092db7ce
2 changed files with 7 additions and 2 deletions

View file

@ -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) \

View file

@ -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 "