summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2014-06-10 14:51:44 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2014-06-10 16:54:04 +0300
commit4e9df4fe5fef283c23e62fd7348fae4943a9fa6b (patch)
tree8b24e8d320144e92d9fb59567ccd24c5294409ff /tests
parent210d20f413626321c0c1650b97d1cb0f0b400c2d (diff)
tests/kms_fbc_crc: Update blit code for BDW
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 Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kms_fbc_crc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c
index 810f6f34..a99bf367 100644
--- a/tests/kms_fbc_crc.c
+++ b/tests/kms_fbc_crc.c
@@ -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();