diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2015-05-07 12:16:01 -0300 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2015-05-14 10:02:07 -0300 |
commit | b3faeb16fe455497e93846979f21ca08d598d0fe (patch) | |
tree | a6db39f0f6c4b617bdf68ae9849c1c210dc4eb8e /tests | |
parent | 5d3c2a6353bfb10f328d65812d7a08145103f422 (diff) |
tests/kms_fbc_crc: make the blt test draw the same pattern
... 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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kms_fbc_crc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c index d36cf025..a66aa510 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); |