diff options
author | Mike Blumenkrantz <[email protected]> | 2019-04-19 09:04:59 -0400 |
---|---|---|
committer | Rafael Antognolli <[email protected]> | 2019-04-24 14:47:47 -0700 |
commit | c7c59f75e59510be890bc77a9257c14ffd5b7b59 (patch) | |
tree | 78bef227958fcbb36eda3f0db69c441826d14e36 /src | |
parent | 7315882023806e5326601bdbe21c7db5862a5d58 (diff) |
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 <[email protected]>
Reviewed-by: Rafael Antognolli <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |