summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/gvt/mmio_context.h
diff options
context:
space:
mode:
authorWeinan Li <weinan.z.li@intel.com>2018-02-13 13:24:32 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2018-03-06 13:19:22 +0800
commit64f46f55bb30aebf146ae3cd2c2a4e2a06bcea04 (patch)
tree1201b32a9cbb4e0aabf0cc9b39ac67b730aadee1 /drivers/gpu/drm/i915/gvt/mmio_context.h
parentf9a651c05d7ae492185027f6acde25e2bc54edd9 (diff)
downloadlinux-64f46f55bb30aebf146ae3cd2c2a4e2a06bcea04.tar.bz2
drm/i915/gvt: add interface to check if context is inhibit
No functional change, just for easy to use. v4: - refine comment (Kevin) Signed-off-by: Weinan Li <weinan.z.li@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/mmio_context.h')
-rw-r--r--drivers/gpu/drm/i915/gvt/mmio_context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/mmio_context.h b/drivers/gpu/drm/i915/gvt/mmio_context.h
index ca2c6a745673..4df87c7314c9 100644
--- a/drivers/gpu/drm/i915/gvt/mmio_context.h
+++ b/drivers/gpu/drm/i915/gvt/mmio_context.h
@@ -49,4 +49,6 @@ void intel_gvt_switch_mmio(struct intel_vgpu *pre,
void intel_gvt_init_engine_mmio_context(struct intel_gvt *gvt);
+bool is_inhibit_context(struct i915_gem_context *ctx, int ring_id);
+
#endif