summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Bragg <robert@sixbynine.org>2016-11-22 12:49:32 +0000
committerRobert Bragg <robert@sixbynine.org>2016-12-16 13:00:21 +0000
commit3acbd1da17e4e9f6679b5c0294ac52754241ab10 (patch)
tree7ce8a1a41c6b9ccbc2d106d0040f157516ed5a59 /lib
parent69a90fbc2c844819f1f0b30ca7b3e8a74c5b4b47 (diff)
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 <robert@sixbynine.org> Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/stubs/drm/intel_bufmgr.c7
-rw-r--r--lib/stubs/drm/intel_bufmgr.h2
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/stubs/drm/intel_bufmgr.c b/lib/stubs/drm/intel_bufmgr.c
index bc1c1960..39e0af34 100644
--- a/lib/stubs/drm/intel_bufmgr.c
+++ b/lib/stubs/drm/intel_bufmgr.c
@@ -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);
diff --git a/lib/stubs/drm/intel_bufmgr.h b/lib/stubs/drm/intel_bufmgr.h
index a1abbcd2..f6bb4f52 100644
--- a/lib/stubs/drm/intel_bufmgr.h
+++ b/lib/stubs/drm/intel_bufmgr.h
@@ -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);