[igt-dev] [PATCH i-g-t] lib/mtl: Use same path for MTL as DG2 for draw_rect_blt()

Kahola, Mika mika.kahola at intel.com
Mon Sep 5 06:02:35 UTC 2022


> -----Original Message-----
> From: B S, Karthik <karthik.b.s at intel.com>
> Sent: Monday, September 5, 2022 7:42 AM
> To: igt-dev at lists.freedesktop.org
> Cc: Heikkila, Juha-pekka <juha-pekka.heikkila at intel.com>; Kahola, Mika
> <mika.kahola at intel.com>
> Subject: [PATCH i-g-t] lib/mtl: Use same path for MTL as DG2 for draw_rect_blt()
> 
> From: Juha-Pekka Heikkilä <juha-pekka.heikkila at intel.com>
> 
> This is due to legacy commands are no longer Supported in MTL+
> 

Reviewed-by: Mika Kahola <mika.kahola at intel.com>

> Signed-off-by: Juha-Pekka Heikkilä <juha-pekka.heikkila at intel.com>
> ---
>  lib/igt_draw.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/igt_draw.c b/lib/igt_draw.c index 056101b9..1124cadc 100644
> --- a/lib/igt_draw.c
> +++ b/lib/igt_draw.c
> @@ -666,7 +666,7 @@ static void draw_rect_blt(int fd, struct cmd_data
> *cmd_data,
>  	ibb = intel_bb_create(fd, PAGE_SIZE);
>  	intel_bb_add_intel_buf(ibb, dst, true);
> 
> -	if (IS_DG2(intel_get_drm_devid(fd))) {
> +	if (HAS_4TILE(intel_get_drm_devid(fd))) {
>  		int buf_height = buf->size / buf->stride;
> 
>  		switch (buf->bpp) {
> --
> 2.22.0



More information about the igt-dev mailing list