diff mbox

[igt,6/8] tests/kms_fbc_crc: make the blt test draw the same pattern

Message ID 1431024996-2267-7-git-send-email-przanoni@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Paulo Zanoni May 7, 2015, 6:56 p.m. UTC
From: Paulo Zanoni <paulo.r.zanoni@intel.com>

... as the other drawing tests: single white pixel at top/left of the
screen, instead of painting the whole screen blue.

This will make it much easier to fix the CRC checking code.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
---
 tests/kms_fbc_crc.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c
index d36cf02..a66aa51 100644
--- a/tests/kms_fbc_crc.c
+++ b/tests/kms_fbc_crc.c
@@ -98,6 +98,7 @@  static void fill_blt(data_t *data,
 	struct intel_batchbuffer *batch;
 	unsigned flags;
 	int pitch;
+	uint32_t pixel = color | (color << 8) | (color << 16) | (color << 24);
 
 	batch = intel_batchbuffer_alloc(data->bufmgr, data->devid);
 	igt_assert(batch);
@@ -113,9 +114,9 @@  static void fill_blt(data_t *data,
 	COLOR_BLIT_COPY_BATCH_START(flags);
 	OUT_BATCH(3 << 24 | 0xf0 << 16 | pitch);
 	OUT_BATCH(0);
-	OUT_BATCH(fb->height << 16 | fb->width);
+	OUT_BATCH(1 << 16 | 1);
 	OUT_RELOC_FENCED(dst, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, 0);
-	OUT_BATCH(color);
+	OUT_BATCH(pixel);
 	ADVANCE_BATCH();
 
 	intel_batchbuffer_flush(batch);