From: Andi Shyti <andi.sh...@intel.com>

Enable the CCS engine when the first CCS is encountered in the
execlist setup, instead of checking for the
I915_ENGINE_FIRST_RENDER_COMPUTE flag.

Signed-off-by: Andi Shyti <andi.sh...@intel.com>
---
 drivers/gpu/drm/i915/gt/intel_execlists_submission.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gt/intel_execlists_submission.c 
b/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
index 4a80ffa1b962..70ea56054a19 100644
--- a/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
+++ b/drivers/gpu/drm/i915/gt/intel_execlists_submission.c
@@ -2950,7 +2950,7 @@ static int execlists_resume(struct intel_engine_cs 
*engine)
 
        enable_execlists(engine);
 
-       if (engine->flags & I915_ENGINE_FIRST_RENDER_COMPUTE)
+       if (FIRST_CCS(engine))
                xehp_enable_ccs_engines(engine);
 
        return 0;
-- 
2.47.2

Reply via email to