]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pat: Add helper to query compression enable status
authorXin Wang <x.wang@intel.com>
Mon, 10 Nov 2025 22:14:58 +0000 (22:14 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 14 Nov 2025 13:47:52 +0000 (13:47 +0000)
commitb2bce0e551e89af37cfcb1b1158d80f369eeea3f
tree555e3ab73e64a155ecdad2b0dd3134eefa5f4f0a
parent6bcb180f6f4585554cefbe8c412aa8879b15f07a
drm/xe/pat: Add helper to query compression enable status

Add xe_pat_index_get_comp_en() helper function to check whether
compression is enabled for a given PAT index by extracting the
XE2_COMP_EN bit from the PAT table entry.

There are no current users, however there are multiple in-flight series
which will all use this helper.

CC: Nitin Gote <nitin.r.gote@intel.com>
CC: Sanjay Yadav <sanjay.kumar.yadav@intel.com>
CC: Matt Roper <matthew.d.roper@intel.com>
Suggested-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Xin Wang <x.wang@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Nitin Gote <nitin.r.gote@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Sanjay Yadav <sanjay.kumar.yadav@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patch.msgid.link/20251110221458.1864507-2-x.wang@intel.com
drivers/gpu/drm/xe/xe_pat.c
drivers/gpu/drm/xe/xe_pat.h