All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915/api_intel_allocator: change copy instruction for new gens
@ 2022-02-18 19:46 Kamil Konieczny
  2022-02-18 21:51 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Kamil Konieczny @ 2022-02-18 19:46 UTC (permalink / raw)
  To: igt-dev

Use XY_FAST_COPY_BLT on newer GPU generations.

Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
---
 tests/i915/api_intel_allocator.c | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/tests/i915/api_intel_allocator.c b/tests/i915/api_intel_allocator.c
index bb1b3838..487eafce 100644
--- a/tests/i915/api_intel_allocator.c
+++ b/tests/i915/api_intel_allocator.c
@@ -575,15 +575,20 @@ static void execbuf_with_allocator(int fd)
 
 	/* Blit src -> dst */
 	i = 0;
-	batch[i++] = XY_SRC_COPY_BLT_CMD |
-		  XY_SRC_COPY_BLT_WRITE_ALPHA |
-		  XY_SRC_COPY_BLT_WRITE_RGB;
-	if (gen >= 8)
-		batch[i - 1] |= 8;
-	else
-		batch[i - 1] |= 6;
-
-	batch[i++] = (3 << 24) | (0xcc << 16) | 4;
+	if (gen >= 9) {
+		batch[i++] = XY_FAST_COPY_BLT; /* No tiling */
+		batch[i++] = XY_FAST_COPY_COLOR_DEPTH_32 | 0x10;
+	} else {
+		batch[i++] = XY_SRC_COPY_BLT_CMD |
+			  XY_SRC_COPY_BLT_WRITE_ALPHA |
+			  XY_SRC_COPY_BLT_WRITE_RGB;
+		if (gen >= 8)
+			batch[i - 1] |= 8;
+		else
+			batch[i - 1] |= 6;
+
+		batch[i++] = (3 << 24) | (0xcc << 16) | 4;
+	}
 	batch[i++] = 0;
 	batch[i++] = (1 << 16) | 4;
 	batch[i++] = object[1].offset;
-- 
2.32.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-02-24  8:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-18 19:46 [igt-dev] [PATCH i-g-t] tests/i915/api_intel_allocator: change copy instruction for new gens Kamil Konieczny
2022-02-18 21:51 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-02-19 15:10 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-02-22 10:27   ` Kamil Konieczny
2022-02-22 16:08     ` Vudum, Lakshminarayana
2022-02-22 15:57 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork
2022-02-24  8:53 ` [igt-dev] [PATCH i-g-t] " Zbigniew Kempczyński

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.