summaryrefslogtreecommitdiff
path: root/lib/igt_gt.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/igt_gt.h')
-rw-r--r--lib/igt_gt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/igt_gt.h b/lib/igt_gt.h
index 2579cbd3..d82d352a 100644
--- a/lib/igt_gt.h
+++ b/lib/igt_gt.h
@@ -80,4 +80,9 @@ extern const struct intel_execution_engine {
bool gem_can_store_dword(int fd, unsigned int engine);
+static inline bool igt_is_basic(const struct intel_execution_engine *e)
+{
+ return e->exec_id == 1;
+}
+
#endif /* IGT_GT_H */