diff options
author | Brad Volkin <bradley.d.volkin@intel.com> | 2014-11-03 11:19:00 -0800 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-11-12 13:43:04 +0100 |
commit | bf31ed80e097d6d69c436a5070f6ab6d0a5d08b6 (patch) | |
tree | d65de7a76dc906added4669db2a45987591be456 | |
parent | c1fdc2f0e95714e20b157e318f07110219a2237f (diff) |
tests/gem_madvise: set execbuf.batch_len before doing an execbuf
The command parser's batch_len optimization causes the parser to
reject this batch as not having an MI_BATCH_BUFFER_END because
the length was not set correctly.
Signed-off-by: Brad Volkin <bradley.d.volkin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | tests/gem_madvise.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_madvise.c b/tests/gem_madvise.c index 04a82aa3..f95fbda3 100644 --- a/tests/gem_madvise.c +++ b/tests/gem_madvise.c @@ -131,6 +131,7 @@ dontneed_before_exec(void) execbuf.buffers_ptr = (uintptr_t)&exec; execbuf.buffer_count = 1; + execbuf.batch_len = sizeof(buf); gem_execbuf(fd, &execbuf); gem_close(fd, exec.handle); |