From: Paulo Zanoni <paulo.r.zan...@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.zan...@intel.com>
---
 tests/kms_fbc_crc.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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);
-- 
2.1.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to