Skip to contentSkip to conversation

tests/gem_bad_blit.c : Fix dst address for Gen8 onwards

PATCH Applied Praveen Paneri 2 participants 2 messages Feb 25, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/gem_bad_blit.c : Fix dst address for Gen8 onwards

Gen8 Onwards use 48 bit addressing for src and dst base addresses. This patch fixes this for destination base address.

---
 tests/gem_bad_blit.c | 2 ++
 1 file changed, 2 insertions(+)
tests/gem_bad_blit.c +2 -0
index b467ba8..593167c 100644
@@ -85,6 +85,8 @@ bad_blit(drm_intel_bo *src_bo, uint32_t devid)
 	OUT_BATCH(0); /* dst x1,y1 */
 	OUT_BATCH((64 << 16) | 64); /* 64x64 blit */
 	OUT_BATCH(BAD_GTT_DEST);
+	if (batch->gen >= 8)
+		OUT_BATCH(BAD_GTT_DEST >> 32); /* Upper 16 bits */
 	OUT_BATCH(0); /* src x1,y1 */
 	OUT_BATCH(src_pitch);
 	OUT_RELOC_FENCED(src_bo, I915_GEM_DOMAIN_RENDER, 0, 0);
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 4 lines · Praveen Paneri

Gen8 Onwards use 48 bit addressing for src and dst base addresses. This patch fixes this for destination base address.

Merged, thanks.
-Daniel

Quoted 24 lines
---
 tests/gem_bad_blit.c | 2 ++
 1 file changed, 2 insertions(+)
tests/gem_bad_blit.c +2 -0
index b467ba8..593167c 100644
@@ -85,6 +85,8 @@ bad_blit(drm_intel_bo *src_bo, uint32_t devid)
 	OUT_BATCH(0); /* dst x1,y1 */
 	OUT_BATCH((64 << 16) | 64); /* 64x64 blit */
 	OUT_BATCH(BAD_GTT_DEST);
+	if (batch->gen >= 8)
+		OUT_BATCH(BAD_GTT_DEST >> 32); /* Upper 16 bits */
 	OUT_BATCH(0); /* src x1,y1 */
 	OUT_BATCH(src_pitch);
 	OUT_RELOC_FENCED(src_bo, I915_GEM_DOMAIN_RENDER, 0, 0);
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx