Skip to content
Snippets Groups Projects
Commit d5fcf186 authored by Lionel Landwerlin's avatar Lionel Landwerlin Committed by Eric Engestrom
Browse files

iris: fix fallback to swrast driver


The helper we use to query the kernel returns -1 if the getparam is
not supported.

Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: f402b7c5 ("iris: fail screen creation when kernel support is not there")
Closes: mesa/mesa#3188


Reviewed-by: default avatarMarcin Ślusarz <marcin.slusarz@intel.com>
Part-of: <mesa/mesa!5838>
(cherry picked from commit e3ddba73)
parent c27aae4f
No related branches found
No related tags found
No related merge requests found
......@@ -3991,7 +3991,7 @@
"description": "iris: fix fallback to swrast driver",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "f402b7c57641dd2ab4d39032574294c03d75b595"
},
......
......@@ -648,7 +648,7 @@ iris_screen_create(int fd, const struct pipe_screen_config *config)
*
* Checking the last feature availability will include all previous ones.
*/
if (!iris_getparam_integer(fd, I915_PARAM_HAS_CONTEXT_ISOLATION)) {
if (iris_getparam_integer(fd, I915_PARAM_HAS_CONTEXT_ISOLATION) <= 0) {
debug_error("Kernel is too old for Iris. Consider upgrading to kernel v4.16.\n");
return NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment