Message ID | 20161114205122.10742-10-robert@sixbynine.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/tests/gem_exec_parse.c b/tests/gem_exec_parse.c index 03e4d0e..d5769e4 100644 --- a/tests/gem_exec_parse.c +++ b/tests/gem_exec_parse.c @@ -504,10 +504,20 @@ igt_main 0, MI_BATCH_BUFFER_END, }; - exec_batch(fd, handle, - pc, sizeof(pc), - I915_EXEC_RENDER, - -EINVAL); + if (parser_version >= 8) { + /* Expect to read back zero since the command should be + * squashed to a NOOP + */ + exec_batch_patched(fd, handle, + pc, sizeof(pc), + 8, /* patch offset, */ + 0x0); + } else { + exec_batch(fd, handle, + pc, sizeof(pc), + I915_EXEC_RENDER, + -EINVAL); + } } igt_subtest("batch-without-end") {