From cf979c20636814389adcf969c5858a915a97571f Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 29 May 2012 16:34:32 +0200 Subject: [PATCH] tests/gem_wait_rendering_timeout: some fixes for the blt function - widht/height are in pixel, and the cmd uses 32bit, so we need to adjust this. - we write to the buffer, set the right reloc domain. --- tests/gem_wait_render_timeout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gem_wait_render_timeout.c b/tests/gem_wait_render_timeout.c index 0d242af3..dded96c7 100644 --- a/tests/gem_wait_render_timeout.c +++ b/tests/gem_wait_render_timeout.c @@ -84,7 +84,7 @@ static void blt_color_fill(struct intel_batchbuffer *batch, drm_intel_bo *buf, const unsigned int pages) { - const unsigned short height = pages; + const unsigned short height = pages/4; const unsigned short width = 4096; BEGIN_BATCH(5); OUT_BATCH(COLOR_BLT_CMD | @@ -95,7 +95,7 @@ static void blt_color_fill(struct intel_batchbuffer *batch, 0); /* Dest pitch is 0 */ OUT_BATCH(width << 16 | height); - OUT_RELOC(buf, I915_GEM_DOMAIN_RENDER, 0, 0); + OUT_RELOC(buf, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, 0); OUT_BATCH(rand()); /* random pattern */ ADVANCE_BATCH(); }