[PATCH i-g-t v5 2/7] lib/intel_pat: extend for xe3
Cavitt, Jonathan
jonathan.cavitt at intel.com
Wed Dec 18 22:04:22 UTC 2024
-----Original Message-----
From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Clint Taylor
Sent: Wednesday, December 18, 2024 1:37 PM
To: igt-dev at lists.freedesktop.org
Subject: [PATCH i-g-t v5 2/7] lib/intel_pat: extend for xe3
>
> From: Matthew Auld <matthew.auld at intel.com>
>
> Xe3 should use the same pat_index modes as Xe2. Also matches the kernel
> side.
>
> Signed-off-by: Matthew Auld <matthew.auld at intel.com>
> Signed-off-by: Clint Taylor <Clinton.A.Taylor at intel.com>
> Reviewed-by: Sai Teja Pottumuttu <sai.teja.pottumuttu at intel.com>
LGTM.
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
-Jonathan Cavitt
> ---
> lib/intel_pat.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lib/intel_pat.c b/lib/intel_pat.c
> index 7f175b057..156b1ee5d 100644
> --- a/lib/intel_pat.c
> +++ b/lib/intel_pat.c
> @@ -19,7 +19,8 @@ static void intel_get_pat_idx(int fd, struct intel_pat_cache *pat)
> {
> uint16_t dev_id = intel_get_drm_devid(fd);
>
> - if (intel_get_device_info(dev_id)->graphics_ver == 20) {
> + if (intel_get_device_info(dev_id)->graphics_ver == 30 ||
> + intel_get_device_info(dev_id)->graphics_ver == 20) {
> pat->uc = 3;
> pat->wt = 15; /* Compressed + WB-transient */
> pat->wb = 2;
> --
> 2.25.1
>
>
More information about the igt-dev
mailing list