iris: Fix enablement of protected contexts

I915_CONTEXT_CREATE_FLAGS_USE_EXTENSIONS needs to set otherwise
i915 will ignore the extensions.

Fixes: 57a1d13279 ("iris: enable protected contexts")
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19373>
This commit is contained in:
José Roberto de Souza
2022-10-27 09:42:22 -07:00
parent 004f431b7f
commit a5f335f97a
+3 -1
View File
@@ -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,