Skip to contentSkip to conversation

tests/kms_fbc_crc: Update blit code for BDW

PATCH New [email protected] 1 participant 1 message Jun 10, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/kms_fbc_crc: Update blit code for BDW

From: Ville Syrjälä <[email protected]>

Switch to XY_COLOR_BLT from COLOR_BLT and use the appropriate macros to make the code work on BDW.

Also make the blit 8bpp instead if 16bpp. 8bpp is what it was supposed to use all along.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76307

---
 tests/kms_fbc_crc.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tests/kms_fbc_crc.c +4 -3
index 810f6f3..a99bf36 100644
@@ -93,11 +93,12 @@ static void fill_blt(data_t *data, uint32_t handle, unsigned char color)
 	batch = intel_batchbuffer_alloc(data->bufmgr, data->devid);
 	igt_assert(batch);
 
-	BEGIN_BATCH(5);
-	OUT_BATCH(COLOR_BLT_CMD);
-	OUT_BATCH((1 << 24) | (0xf0 << 16) | 0);
+	COLOR_BLIT_COPY_BATCH_START(batch->devid, 0);
+	OUT_BATCH((0 << 24) | (0xf0 << 16) | 0);
+	OUT_BATCH(0);
 	OUT_BATCH(1 << 16 | 4);
 	OUT_RELOC(dst, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, 0);
+	BLIT_RELOC_UDW(batch->devid);
 	OUT_BATCH(color);
 	ADVANCE_BATCH();
 
Signature · 6 lines
1.8.5.5

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx