Skip to content
Snippets Groups Projects
Commit cb02f249 authored by Nirmoy Das's avatar Nirmoy Das
Browse files

lib/igt_gt: Add gem_engine_can_block_ggtt_binder


On MTL GGTT updates happens through MI_UPDATE_GGTT command.
Add a method to detect if a engine can block ggtt binder.

Signed-off-by: default avatarNirmoy Das <nirmoy.das@intel.com>
Reviewed-by: default avatarKamil Konieczny <kamil.konieczny@linux.intel.com>
parent 6a96d3ad
No related branches found
No related tags found
No related merge requests found
......@@ -659,3 +659,18 @@ int gem_execbuf_flags_to_engine_class(unsigned int flags)
igt_assert(0);
}
}
/**
* gem_engine_can_block_ggtt_binder:
* @fd: open i915 drm file descriptor
* @engine: engine to be assessed
*
* Detect if the platform needs blitter based GGTT
* updates.
*/
bool gem_engine_can_block_ggtt_binder(int fd,
const struct intel_execution_engine2 *engine)
{
return IS_METEORLAKE(intel_get_drm_devid(fd)) &&
engine->class == I915_ENGINE_CLASS_COPY;
}
......@@ -83,5 +83,7 @@ extern const struct intel_execution_engine2 {
} intel_execution_engines2[];
int gem_execbuf_flags_to_engine_class(unsigned int flags);
bool gem_engine_can_block_ggtt_binder(int fd,
const struct intel_execution_engine2 *engine);
#endif /* IGT_GT_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment