summaryrefslogtreecommitdiff
path: root/tests/gem_gtt_speed.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_gtt_speed.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_gtt_speed.c')
-rw-r--r--tests/gem_gtt_speed.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/gem_gtt_speed.c b/tests/gem_gtt_speed.c
index 8e3750d7..3f5bd0b1 100644
--- a/tests/gem_gtt_speed.c
+++ b/tests/gem_gtt_speed.c
@@ -79,17 +79,6 @@ static double elapsed(const struct timeval *start,
return (1e6*(end->tv_sec - start->tv_sec) + (end->tv_usec - start->tv_usec))/loop;
}
-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);
-}
-
int main(int argc, char **argv)
{
struct timeval start, end;