[igt-dev] [PATCH i-g-t] lib/mtl: Use same path for MTL as DG2 for draw_rect_blt()
Karthik B S
karthik.b.s at intel.com
Mon Sep 5 04:42:21 UTC 2022
From: Juha-Pekka Heikkilä <juha-pekka.heikkila at intel.com>
This is due to legacy commands are no longer Supported in MTL+
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