[igt-dev] [RFC v2 0/3] new engine discovery interface

Andi Shyti andi.shyti at intel.com
Wed Nov 21 16:10:20 UTC 2018


Hi,

this is a request for comments for the new engine discovery
interface developed by Tvrtko and Chris[*].

Thanks Chris and Tvrtko for your comments in the v1, here's the
changelog:

V1 --> V2
- added a demo test that simply queries the driver about the
  engines and executes a buffer (thanks Tvrtko)
- refactored the for_each_engine_ctx() macro so that what in the
  previous version was done by the "bind" function, now it's done
  in the first iteration. (Thanks Crhis)
- removed the "gem_has_ring_ctx()" because it was out of the
  scope.
- rename functions to more meaningful names

Andi

[*] git://people.freedesktop.org/~tursulin/drm-intel

Andi Shyti (3):
  include/drm-uapi: import i915_drm.h header file
  lib: implement new engine discovery interface
  tests: gem_gem_query_engines_demo: create test

 include/drm-uapi/i915_drm.h         | 239 +++++++++++++++++++++++++++-
 lib/igt_gt.c                        |  83 ++++++++++
 lib/igt_gt.h                        |   8 +
 tests/Makefile.sources              |   3 +
 tests/i915/gem_query_engines_demo.c |  56 +++++++
 tests/meson.build                   |   1 +
 6 files changed, 388 insertions(+), 2 deletions(-)
 create mode 100644 tests/i915/gem_query_engines_demo.c

-- 
2.19.1



More information about the igt-dev mailing list