Skip to content

Commit 5ce6861

Browse files
vsdhanalrodrigovivi
authored andcommitted
drm/i915: Correctly set SFC capability for video engines
SFC capability of video engines is not set correctly because i915 is testing for incorrect bits. Fixes: c5d3e39 ("drm/i915: Engine discovery query") Cc: Matt Roper <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Signed-off-by: Venkata Sandeep Dhanalakota <[email protected]> Signed-off-by: Daniele Ceraolo Spurio <[email protected]> Reviewed-by: Tvrtko Ursulin <[email protected]> Cc: <[email protected]> # v5.3+ Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit ad18fa0) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 0eb0feb commit 5ce6861

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/i915/gt/intel_engine_cs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,8 @@ static void __setup_engine_capabilities(struct intel_engine_cs *engine)
371371
* instances.
372372
*/
373373
if ((INTEL_GEN(i915) >= 11 &&
374-
engine->gt->info.vdbox_sfc_access & engine->mask) ||
374+
(engine->gt->info.vdbox_sfc_access &
375+
BIT(engine->instance))) ||
375376
(INTEL_GEN(i915) >= 9 && engine->instance == 0))
376377
engine->uabi_capabilities |=
377378
I915_VIDEO_AND_ENHANCE_CLASS_CAPABILITY_SFC;

0 commit comments

Comments
 (0)