[Intel-gfx] [PATCH 2/2] tests/gem_madvise: set execbuf.batch_len before doing an execbuf

bradley.d.volkin at intel.com bradley.d.volkin at intel.com
Mon Nov 3 20:19:00 CET 2014


From: Brad Volkin <bradley.d.volkin at intel.com>

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 at intel.com>
---
 tests/gem_madvise.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/gem_madvise.c b/tests/gem_madvise.c
index 04a82aa..f95fbda 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);
-- 
1.9.1




More information about the Intel-gfx mailing list