On Friday, September 29, 2017 3:25:08 AM PDT Chris Wilson wrote: > Decode the EGL/DRI priority enum into the [-1023, 1023] range as > interpreted by the kernel and call DRM_I915_GEM_CONTEXT_SETPARAM to > adjust the priority. We use 0 as the default medium priority (also the > kernel default) and so only need adjust up or down. By only doing the > adjustment if not setting to medium, we can faithfully report any error > whilst setting without worrying about kernel version. > > Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk> > Cc: Kenneth Graunke <kenn...@whitecape.org> > --- > src/mesa/drivers/dri/i965/brw_bufmgr.c | 18 ++++++++++++++++++ > src/mesa/drivers/dri/i965/brw_bufmgr.h | 9 +++++++++ > src/mesa/drivers/dri/i965/brw_context.c | 18 ++++++++++++++++++ > 3 files changed, 45 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c > b/src/mesa/drivers/dri/i965/brw_bufmgr.c > index 73a539db75..ac7319da9c 100644 > --- a/src/mesa/drivers/dri/i965/brw_bufmgr.c > +++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c > @@ -1284,6 +1284,24 @@ brw_create_hw_context(struct brw_bufmgr *bufmgr) > return create.ctx_id; > } > > +int brw_hw_context_set_priority(struct brw_bufmgr *bufmgr,
int brw_hw_context_set_priority(struct brw_bufmgr *bufmgr,
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev