stubs/drm: Add drm_intel_gem_context_get_id stub
PATCH 1/1 stubs/drm: Add drm_intel_gem_context_get_id stub
The plan is to use this api in i915-perf tests so this adds the corresponding stub in case libdrm was built with libdrm_intel disabled.
Signed-off-by Robert Bragg <[email protected]>
--- lib/stubs/drm/intel_bufmgr.c | 7 +++++++ lib/stubs/drm/intel_bufmgr.h | 2 ++ 2 files changed, 9 insertions(+)
lib/stubs/drm/intel_bufmgr.c +7 -0
@@ -173,6 +173,13 @@ drm_intel_context *drm_intel_gem_context_create(drm_intel_bufmgr *bufmgr)return (drm_intel_bo *)NULL ; } +int drm_intel_gem_context_get_id (drm_intel_context *ctx, +uint32_t *ctx_id) +{ +igt_require_f (false, missing_support_str); +return 0 ; +} +void drm_intel_gem_context_destroy (drm_intel_context *ctx) {igt_require_f (false, missing_support_str);
lib/stubs/drm/intel_bufmgr.h +2 -0
@@ -208,6 +208,8 @@ int drm_intel_bufmgr_gem_get_devid(drm_intel_bufmgr *bufmgr);int drm_intel_gem_bo_wait (drm_intel_bo *bo,int64_t timeout_ns);drm_intel_context *drm_intel_gem_context_create (drm_intel_bufmgr *bufmgr); +int drm_intel_gem_context_get_id (drm_intel_context *ctx, +uint32_t *ctx_id);void drm_intel_gem_context_destroy (drm_intel_context *ctx);int drm_intel_gem_bo_context_exec (drm_intel_bo *bo,drm_intel_context *ctx,int used,unsigned int flags);
Signature · 6 lines
2.10.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 4 lines · Robert Bragg
The plan is to use this api in i915-perf tests so this adds the corresponding stub in case libdrm was built with
libdrm_inteldisabled.Signed-off-by Robert Bragg <[email protected]>
Reviewed-by Matthew Auld <[email protected]>
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx