summaryrefslogtreecommitdiff
path: root/tests/i915/gem_exec_async.c
diff options
context:
space:
mode:
authorKuoppala, Mika <mika.kuoppala@intel.com>2019-11-13 17:49:09 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2019-11-15 00:12:42 +0000
commit9e57f8a51d59b3ffe4002d761fe0315d733bd66e (patch)
tree131e7428afdc057e260911fb11534b321f7cbb91 /tests/i915/gem_exec_async.c
parent5343ca6ad8fac39fe4d468f771af72c968404bea (diff)
lib/i915: Add query to detect if engine accepts only ro batches
If cmd parser is mandatory, batch can't be modified post execbuf. Some tests rely on modifying batch post execbuf. Give those tests a method to query if those modifications ever reach the actual engine command stream. v2: pull in the test changes, doh v3: class based query v4: rebase Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/i915/gem_exec_async.c')
-rw-r--r--tests/i915/gem_exec_async.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/i915/gem_exec_async.c b/tests/i915/gem_exec_async.c
index d83e9f6d..b9859ffa 100644
--- a/tests/i915/gem_exec_async.c
+++ b/tests/i915/gem_exec_async.c
@@ -138,6 +138,9 @@ static void one(int fd, unsigned ring, uint32_t flags)
execbuf.buffers_ptr = to_user_pointer(obj);
execbuf.buffer_count = 2;
execbuf.flags = ring | flags;
+
+ igt_require(gem_engine_has_mutable_submission(fd, ring));
+
igt_require(__gem_execbuf(fd, &execbuf) == 0);
gem_close(fd, obj[BATCH].handle);