Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] lib/intel_blt: BB index should be incremented in dwords
@ 2025-11-10 13:58 Balasubramani Vivekanandan
  2025-11-10 13:58 ` [PATCH 2/2] xe_exercise_blt: Insert a flush between two consecutive FAST_COPY Balasubramani Vivekanandan
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Balasubramani Vivekanandan @ 2025-11-10 13:58 UTC (permalink / raw)
  To: igt-dev; +Cc: Balasubramani Vivekanandan

Size in bytes in used to increment the BB index, which is incorrect.
Convert bytes to number of dwords.

Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
---
 lib/intel_blt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/intel_blt.c b/lib/intel_blt.c
index 7f7f5485e..9a0bcb96b 100644
--- a/lib/intel_blt.c
+++ b/lib/intel_blt.c
@@ -1714,7 +1714,7 @@ uint64_t emit_blt_fast_copy(int fd,
 
 	igt_assert(bb_pos + sizeof(data) < blt->bb.size);
 	memcpy(bb + bb_pos, &data, sizeof(data));
-	bb_pos += sizeof(data);
+	bb_pos += DIV_ROUND_UP(sizeof(data), sizeof(*bb));
 
 	if (emit_bbe) {
 		igt_assert(bb_pos + sizeof(uint32_t) < blt->bb.size);
-- 
2.43.0


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

end of thread, other threads:[~2025-11-13 14:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-10 13:58 [PATCH 1/2] lib/intel_blt: BB index should be incremented in dwords Balasubramani Vivekanandan
2025-11-10 13:58 ` [PATCH 2/2] xe_exercise_blt: Insert a flush between two consecutive FAST_COPY Balasubramani Vivekanandan
2025-11-11  0:40   ` Matt Roper
2025-11-11  8:20     ` Vivekanandan, Balasubramani
2025-11-12  9:06     ` Zbigniew Kempczyński
2025-11-13 14:08       ` Vivekanandan, Balasubramani
2025-11-10 14:48 ` [PATCH 1/2] lib/intel_blt: BB index should be incremented in dwords Dixit, Ashutosh
2025-11-11  8:10   ` Vivekanandan, Balasubramani
2025-11-10 23:55 ` ✓ Xe.CI.BAT: success for series starting with [1/2] " Patchwork
2025-11-10 23:56 ` ✓ i915.CI.BAT: " Patchwork
2025-11-11  7:32 ` ✗ i915.CI.Full: failure " Patchwork
2025-11-11  8:14 ` ✗ Xe.CI.Full: " Patchwork
2025-11-12  9:02 ` [PATCH 1/2] " Zbigniew Kempczyński

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox