[Intel-gfx] [igt noeyes 2/2] igt/gem_sync: Double the bbe, double the fun
Chris Wilson
chris at chris-wilson.co.uk
Fri Dec 8 21:12:12 UTC 2017
---
tests/gem_sync.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/gem_sync.c b/tests/gem_sync.c
index 36180aee4..d0d4f217d 100644
--- a/tests/gem_sync.c
+++ b/tests/gem_sync.c
@@ -125,6 +125,7 @@ sync_ring(int fd, unsigned ring, int num_children, int timeout)
memset(&object, 0, sizeof(object));
object.handle = gem_create(fd, 4096);
gem_write(fd, object.handle, 0, &bbe, sizeof(bbe));
+ gem_write(fd, object.handle, 4096-sizeof(bbe), &bbe, sizeof(bbe));
memset(&execbuf, 0, sizeof(execbuf));
execbuf.buffers_ptr = to_user_pointer(&object);
@@ -214,6 +215,7 @@ store_ring(int fd, unsigned ring, int num_children, int timeout)
memset(object, 0, sizeof(object));
object[0].handle = gem_create(fd, 4096);
gem_write(fd, object[0].handle, 0, &bbe, sizeof(bbe));
+ gem_write(fd, object[0].handle, 4096-sizeof(bbe), &bbe, sizeof(bbe));
execbuf.buffer_count = 1;
gem_execbuf(fd, &execbuf);
@@ -542,6 +544,7 @@ sync_all(int fd, int num_children, int timeout)
memset(&object, 0, sizeof(object));
object.handle = gem_create(fd, 4096);
gem_write(fd, object.handle, 0, &bbe, sizeof(bbe));
+ gem_write(fd, object.handle, 4096-sizeof(bbe), &bbe, sizeof(bbe));
memset(&execbuf, 0, sizeof(execbuf));
execbuf.buffers_ptr = to_user_pointer(&object);
@@ -619,6 +622,7 @@ store_all(int fd, int num_children, int timeout)
memset(object, 0, sizeof(object));
object[0].handle = gem_create(fd, 4096);
gem_write(fd, object[0].handle, 0, &bbe, sizeof(bbe));
+ gem_write(fd, object[0].handle, 4096-sizeof(bbe), &bbe, sizeof(bbe));
execbuf.buffer_count = 1;
gem_execbuf(fd, &execbuf);
@@ -743,6 +747,7 @@ preempt(int fd, unsigned ring, int num_children, int timeout)
memset(&object, 0, sizeof(object));
object.handle = gem_create(fd, 4096);
gem_write(fd, object.handle, 0, &bbe, sizeof(bbe));
+ gem_write(fd, object.handle, 4096-sizeof(bbe), &bbe, sizeof(bbe));
memset(&execbuf, 0, sizeof(execbuf));
execbuf.buffers_ptr = to_user_pointer(&object);
--
2.15.1
More information about the Intel-gfx
mailing list