summaryrefslogtreecommitdiff
path: root/tests/i915/gem_caching.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/i915/gem_caching.c')
-rw-r--r--tests/i915/gem_caching.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_caching.c b/tests/i915/gem_caching.c
index 1d8989db..894c4b12 100644
--- a/tests/i915/gem_caching.c
+++ b/tests/i915/gem_caching.c
@@ -282,7 +282,7 @@ igt_main
val2 = i + 63;
cpu_ptr = gem_mmap__cpu(data.fd, scratch_buf->handle,
0, scratch_buf->surface[0].size,
- PROT_READ);
+ PROT_WRITE);
memset(cpu_ptr + start, val2, len);