[PATCH i-g-t v3 3/9] XE3: lib/intel_pat: extend for xe3
Pottumuttu, Sai Teja
sai.teja.pottumuttu at intel.com
Tue Nov 19 09:34:18 UTC 2024
On 15-11-2024 00:33, Clint Taylor wrote:
> 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>
Matches with the kernel, LGTM,
Reviewed-by: Sai Teja Pottumuttu <sai.teja.pottumuttu at intel.com>
> ---
> 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;
More information about the igt-dev
mailing list