diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-12-04 13:49:24 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-12-04 13:57:51 +0100 |
commit | b9629f2d8d21a47c383c718e41910cc61c7947a6 (patch) | |
tree | af5c43a4640bddf5b6c583fd75670d8e8915e0e5 /tests | |
parent | 28e3f9c6064f2c9859e547b17abe1138a62e97ae (diff) |
tests/gem_reloc_vs_gpu: emit special batch on blt ring on gen6+
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gem_reloc_vs_gpu.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/gem_reloc_vs_gpu.c b/tests/gem_reloc_vs_gpu.c index 89ecbafc..3bf6d428 100644 --- a/tests/gem_reloc_vs_gpu.c +++ b/tests/gem_reloc_vs_gpu.c @@ -147,7 +147,7 @@ int main(int argc, char **argv) { uint32_t tiling_mode = I915_TILING_X; unsigned long pitch, act_size; - int fd, i; + int fd, i, ring; uint32_t test; memset(blob, 'A', sizeof(blob)); @@ -167,6 +167,11 @@ int main(int argc, char **argv) create_special_bo(); + if (intel_gen(devid) >= 6) + ring = I915_EXEC_BLT; + else + ring = 0; + for (i = 0; i < NUM_TARGET_BOS; i++) { pc_target_bo[i] = drm_intel_bo_alloc(bufmgr, "special batch", 4096, 4096); emit_dummy_load(); @@ -175,7 +180,8 @@ int main(int argc, char **argv) 0, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER); - drm_intel_bo_mrb_exec(special_bo, special_batch_len, NULL, 0, 0, 0); + drm_intel_bo_mrb_exec(special_bo, special_batch_len, NULL, + 0, 0, ring); } /* Only check at the end to avoid unnecessary synchronous behaviour. */ |