drm/i915: Simplify vcs/bsd engine selection
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 16 Mar 2023 14:27:28 +0000 (14:27 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 17 Mar 2023 08:56:26 +0000 (08:56 +0000)
commitae1da08fb306caa8cc134b81ea68c537cfe7a451
tree8d571aa60989aea4db5279be562de4b63765e35f
parent72f6107d2f2294f76d9fb086acd0b01690ea5021
drm/i915: Simplify vcs/bsd engine selection

No need to look at the mask of present engines when we already have a
count stored ever since e2d0ff3525b9 ("drm/i915: Count engine instances
per uabi class").

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230316142728.1335239-1-tvrtko.ursulin@linux.intel.com
[tursulin: fixup typo in patch title]
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c