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 <anuj.phogat@gmail.com> Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
This commit is contained in:
committed by
Rafael Antognolli
parent
7315882023
commit
c7c59f75e5
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user