From: Mike Blumenkrantz Date: Fri, 19 Apr 2019 13:04:59 +0000 (-0400) Subject: iris: enable preemption support for gen10 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c7c59f75e59510be890bc77a9257c14ffd5b7b59;p=mesa.git 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 --- 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);