From a5f335f97a6efe1008f1304b8b4ddfd4e5304b1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Thu, 27 Oct 2022 09:42:22 -0700 Subject: [PATCH] iris: Fix enablement of protected contexts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I915_CONTEXT_CREATE_FLAGS_USE_EXTENSIONS needs to set otherwise i915 will ignore the extensions. Fixes: 57a1d13279c6 ("iris: enable protected contexts") Signed-off-by: José Roberto de Souza Reviewed-by: Lionel Landwerlin Part-of: --- src/gallium/drivers/iris/iris_bufmgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index 2fbf30d8d55..e80d5162d53 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -2231,7 +2231,9 @@ iris_create_hw_context(struct iris_bufmgr *bufmgr, bool protected) .value = true, }, }; - struct drm_i915_gem_context_create_ext create = { 0 }; + struct drm_i915_gem_context_create_ext create = { + .flags = I915_CONTEXT_CREATE_FLAGS_USE_EXTENSIONS, + }; intel_gem_add_ext(&create.extensions, I915_CONTEXT_CREATE_EXT_SETPARAM,