diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-22 19:26:50 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-22 19:28:34 +0000 |
commit | 512f846f377ee97c90467ccd121519586263993f (patch) | |
tree | b4d084c1c98f9ac6a769c5002c9f39506d01630e | |
parent | 291ff6bcf1678192c1cc59728e1f69797962372a (diff) |
igt/gem_ringfill: Mark the write object as EXEC_OBJECT_WRITE
After setting the flag for NORELOC (to avoid having to pay the cost of
validating the relocations on every pass), we need to make sure that
we set EXEC_OBJECT_WRITE so that we do track the outstanding writes.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | tests/gem_ringfill.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_ringfill.c b/tests/gem_ringfill.c index d147c024..407b7474 100644 --- a/tests/gem_ringfill.c +++ b/tests/gem_ringfill.c @@ -108,6 +108,7 @@ static void run_test(int fd, unsigned ring, unsigned flags) memset(obj, 0, sizeof(obj)); obj[0].handle = gem_create(fd, 4096); + obj[0].flags |= EXEC_OBJECT_WRITE; obj[1].handle = gem_create(fd, 1024*16 + 4096); gem_write(fd, obj[1].handle, 0, &bbe, sizeof(bbe)); igt_require(__gem_execbuf(fd, &execbuf) == 0); |