From 75f7e81fbc65cd67500f0795228f6e03619e3a49 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 25 May 2011 14:49:40 +0100 Subject: gem_stress: Assert we have no pending ops when using the CPU Signed-off-by: Chris Wilson --- tests/gem_stress.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/gem_stress.c b/tests/gem_stress.c index a4a5edf2..e279365a 100644 --- a/tests/gem_stress.c +++ b/tests/gem_stress.c @@ -242,6 +242,8 @@ static void cpu_copyfunc(struct scratch_buf *src, unsigned src_x, unsigned src_y struct scratch_buf *dst, unsigned dst_x, unsigned dst_y, unsigned logical_tile_no) { + assert(batch->ptr == batch->buffer); + if (options.ducttape) drm_intel_bo_wait_rendering(dst->bo); @@ -262,6 +264,8 @@ static void prw_copyfunc(struct scratch_buf *src, unsigned src_x, unsigned src_y uint32_t tmp_tile[options.tile_size*options.tile_size]; int i; + assert(batch->ptr == batch->buffer); + if (options.ducttape) drm_intel_bo_wait_rendering(dst->bo); -- cgit v1.2.3