From c7c59f75e59510be890bc77a9257c14ffd5b7b59 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 19 Apr 2019 09:04:59 -0400 Subject: [PATCH] iris: enable preemption support for gen10 this automatically enables preemption on gen10 where it is disabled by default but still available Reviewed-by: Anuj Phogat Reviewed-by: Rafael Antognolli --- src/gallium/drivers/iris/iris_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index a1d11755a24..91cd6a02262 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -218,6 +218,8 @@ iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags) ice->vtbl.init_render_context(screen, &ice->batches[IRIS_BATCH_RENDER], &ice->vtbl, &ice->dbg); + if (screen->devinfo.gen == 10) + gen10_iris_enable_obj_preemption(ice, &ice->batches[IRIS_BATCH_RENDER], true); ice->vtbl.init_compute_context(screen, &ice->batches[IRIS_BATCH_COMPUTE], &ice->vtbl, &ice->dbg); -- 2.30.2