summaryrefslogtreecommitdiff
path: root/tests/i915/gen9_exec_parse.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2021-07-08 17:10:18 -0500
committerJason Ekstrand <jason@jlekstrand.net>2021-07-16 14:51:31 -0500
commit038d0ef9c33a40aaa411e090407401e63dd752ea (patch)
tree8405901a1e964d7240c7adaed8cb5789f0f6f006 /tests/i915/gen9_exec_parse.c
parentdba068b3f63ab3044ec8043977ddc76fb1bf2a4f (diff)
i915: Improve the precision of command parser checks
The previous gem_has_cmdparser helper took an engine and did nothing with it. We delete the engine parameter and use the general helper for the ALL_ENGINES cases. For cases where we really do care about something more precise, we add a version which takes an intel_ctx_cfg_t and an engine specifier and is able to say whether or not that particular engine has the command parser enabled. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Cc: Lakshminarayana Vudum <lakshminarayana.vudum@intel.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/i915/gen9_exec_parse.c')
-rw-r--r--tests/i915/gen9_exec_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gen9_exec_parse.c b/tests/i915/gen9_exec_parse.c
index 6e6ee3af..b35f2cb4 100644
--- a/tests/i915/gen9_exec_parse.c
+++ b/tests/i915/gen9_exec_parse.c
@@ -1188,7 +1188,7 @@ igt_main
igt_require_gem(i915);
gem_require_blitter(i915);
- igt_require(gem_cmdparser_version(i915, I915_EXEC_BLT) >= 10);
+ igt_require(gem_cmdparser_version(i915) >= 10);
igt_require(intel_gen(intel_get_drm_devid(i915)) == 9);
handle = gem_create(i915, HANDLE_SIZE);