Commit 783f6f85 authored by Lucas De Marchi's avatar Lucas De Marchi

drm/i915: Noop lrc_init_wa_ctx() on recent/future platforms

Except for graphics version 8 and 9, nothing is done in
lrc_init_wa_ctx(). Assume this won't be needed on future platforms as
well and remove the warning.

Note that this function is not called for anything below version 8 since
those don't use either guc or execlist, i.e. HAS_EXECLISTS() is false.
Reviewed-by: default avatarBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220907230841.1703574-1-lucas.demarchi@intel.com
parent c40bd3b1
...@@ -1718,24 +1718,16 @@ void lrc_init_wa_ctx(struct intel_engine_cs *engine) ...@@ -1718,24 +1718,16 @@ void lrc_init_wa_ctx(struct intel_engine_cs *engine)
unsigned int i; unsigned int i;
int err; int err;
if (!(engine->flags & I915_ENGINE_HAS_RCS_REG_STATE)) if (GRAPHICS_VER(engine->i915) >= 11 ||
!(engine->flags & I915_ENGINE_HAS_RCS_REG_STATE))
return; return;
switch (GRAPHICS_VER(engine->i915)) { if (GRAPHICS_VER(engine->i915) == 9) {
case 12:
case 11:
return;
case 9:
wa_bb_fn[0] = gen9_init_indirectctx_bb; wa_bb_fn[0] = gen9_init_indirectctx_bb;
wa_bb_fn[1] = NULL; wa_bb_fn[1] = NULL;
break; } else if (GRAPHICS_VER(engine->i915) == 8) {
case 8:
wa_bb_fn[0] = gen8_init_indirectctx_bb; wa_bb_fn[0] = gen8_init_indirectctx_bb;
wa_bb_fn[1] = NULL; wa_bb_fn[1] = NULL;
break;
default:
MISSING_CASE(GRAPHICS_VER(engine->i915));
return;
} }
err = lrc_create_wa_ctx(engine); err = lrc_create_wa_ctx(engine);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment