From fa6c2757feb18b17120310fe315ed32594ff326c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 20 Feb 2012 22:53:26 +0000 Subject: tests/gem_ringfill: Exercise all rings On SandyBridge, the BLT commands were split from the RENDER commands as well as the BSD split inherited from Ironlake. So we need to make sure we do exercise each ring, and in order to do so we also need to make sure each batch takes longer to execute than it takes for us to submit it. v2: Exercise each ring sequentially. Signed-off-by: Chris Wilson --- lib/rendercopy.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/rendercopy.h') diff --git a/lib/rendercopy.h b/lib/rendercopy.h index 7547ac42..4fcc8170 100644 --- a/lib/rendercopy.h +++ b/lib/rendercopy.h @@ -58,6 +58,11 @@ static inline unsigned buf_height(struct scratch_buf *buf) return buf->size/buf->stride; } +typedef void (*render_copyfunc_t)(struct intel_batchbuffer *batch, + struct scratch_buf *src, unsigned src_x, unsigned src_y, + unsigned width, unsigned height, + struct scratch_buf *dst, unsigned dst_x, unsigned dst_y); + void gen6_render_copyfunc(struct intel_batchbuffer *batch, struct scratch_buf *src, unsigned src_x, unsigned src_y, unsigned width, unsigned height, -- cgit v1.2.3