summaryrefslogtreecommitdiff
path: root/tests/gem_gtt_hog.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-10-09 16:47:05 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2015-10-09 16:47:05 +0300
commit9792e7b58095dc03e63c105c494308ed771168f6 (patch)
treed907a9b8d63479c208bcb51a1117c0aa03e155e2 /tests/gem_gtt_hog.c
parentbfea74a9f64a900bcb90f946b38746781017449f (diff)
s/gem_mmap/gem_mmap__gtt/
Get rid of the gem_mmap() alias of gem_mmap__gtt(). I don't see any point in having it. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Stochastically-reviwewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_gtt_hog.c')
-rw-r--r--tests/gem_gtt_hog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_gtt_hog.c b/tests/gem_gtt_hog.c
index 43cb0fbd..b0673a49 100644
--- a/tests/gem_gtt_hog.c
+++ b/tests/gem_gtt_hog.c
@@ -140,10 +140,10 @@ static void run(data_t *data, int child)
* set-to-gtt-domain within the fault handler.
*/
if (write) {
- ptr = gem_mmap(data->fd, handle, size, PROT_READ | PROT_WRITE);
+ ptr = gem_mmap__gtt(data->fd, handle, size, PROT_READ | PROT_WRITE);
ptr[rand() % (size / 4)] = canary;
} else
- ptr = gem_mmap(data->fd, handle, size, PROT_READ);
+ ptr = gem_mmap__gtt(data->fd, handle, size, PROT_READ);
x = ptr[rand() % (size / 4)];
munmap(ptr, size);