diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-05-29 16:34:32 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-05-29 16:34:32 +0200 |
commit | cf979c20636814389adcf969c5858a915a97571f (patch) | |
tree | bbd0aa7e36f6af2f063e02bc5c99872329edb72a | |
parent | 25bf5574a2252311bf5c0c691e728e8ffd47161e (diff) |
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.
-rw-r--r-- | tests/gem_wait_render_timeout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_wait_render_timeout.c b/tests/gem_wait_render_timeout.c index 0d242af..dded96c 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(); } |