Skip to content

Commit

Permalink
[uAPI reuirement/ justification] add engine caps query
Browse files Browse the repository at this point in the history
  • Loading branch information
Jexu committed Jan 31, 2024
1 parent 38e14b1 commit 29d8a61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion media_softlet/linux/common/os/xe/mos_bufmgr_xe.c
Original file line number Diff line number Diff line change
Expand Up @@ -2865,7 +2865,8 @@ mos_query_engines_class_xe(struct mos_bufmgr *bufmgr,
for (i = 0, num = 0; i < engines->num_engines; i++)
{
engine = (struct drm_xe_engine *)&engines->engines[i];
if (engine_class == engine->instance.engine_class)
if (engine_class == engine->instance.engine_class
&& ((caps & engine->capabilities) == caps )) // Note: gpu context should set cap to query required engine with certain caps; and engine capability should given by XE KMD by this uapi.
{
ci->engine_class = engine_class;
ci->engine_instance = engine->instance.engine_instance;
Expand Down

0 comments on commit 29d8a61

Please sign in to comment.