summaryrefslogtreecommitdiff
path: root/tests/gem_exec_blt.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-01-10 16:05:34 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-01-10 16:05:34 +0100
commit673e6b220a34fb7600cbf272bc46a4ac1ca08905 (patch)
tree41020c3923d71a96a3f9259288aa7375724cc8d0 /tests/gem_exec_blt.c
parenta7a80c2c2f7ac15ae50d75dc2fcaf59834b47e0c (diff)
lib/drmtest: extract gem_set_domain and gem_sync
gem_sync just does a gtt sync by using set_domain(GTT, GTT). Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_exec_blt.c')
-rw-r--r--tests/gem_exec_blt.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/gem_exec_blt.c b/tests/gem_exec_blt.c
index 415b8826..91f7d215 100644
--- a/tests/gem_exec_blt.c
+++ b/tests/gem_exec_blt.c
@@ -137,17 +137,6 @@ static int gem_linear_blt(uint32_t *batch,
return (b+2 - batch) * sizeof(uint32_t);
}
-static void gem_sync(int fd, uint32_t handle)
-{
- struct drm_i915_gem_set_domain set_domain;
-
- set_domain.handle = handle;
- set_domain.read_domains = I915_GEM_DOMAIN_GTT;
- set_domain.write_domain = I915_GEM_DOMAIN_GTT;
-
- drmIoctl(fd, DRM_IOCTL_I915_GEM_SET_DOMAIN, &set_domain);
-}
-
static int gem_exec(int fd, struct drm_i915_gem_execbuffer2 *execbuf, int loops)
{
int ret = 0;