diff options
Diffstat (limited to 'tests/gem_wait_render_timeout.c')
-rw-r--r-- | tests/gem_wait_render_timeout.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/tests/gem_wait_render_timeout.c b/tests/gem_wait_render_timeout.c index 0a833f729..e05b7ae20 100644 --- a/tests/gem_wait_render_timeout.c +++ b/tests/gem_wait_render_timeout.c @@ -104,16 +104,8 @@ static void blt_color_fill(struct intel_batchbuffer *batch, const unsigned short height = pages/4; const unsigned short width = 4096; - if (intel_gen(batch->devid) >= 8) { - BEGIN_BATCH(8); - OUT_BATCH(MI_NOOP); - OUT_BATCH(XY_COLOR_BLT_CMD_NOLEN | 5 | - COLOR_BLT_WRITE_ALPHA | XY_COLOR_BLT_WRITE_RGB); - } else { - BEGIN_BATCH(6); - OUT_BATCH(XY_COLOR_BLT_CMD_NOLEN | 4 | - COLOR_BLT_WRITE_ALPHA | XY_COLOR_BLT_WRITE_RGB); - } + COLOR_BLIT_COPY_BATCH_START(COLOR_BLT_WRITE_ALPHA | + XY_COLOR_BLT_WRITE_RGB); OUT_BATCH((3 << 24) | /* 32 Bit Color */ (0xF0 << 16) | /* Raster OP copy background register */ 0); /* Dest pitch is 0 */ |