[Mesa-dev] [PATCH 5/7] i965: Pass the EGL/DRI context priority through to the kernel

Kenneth Graunke kenneth at whitecape.org
Fri Sep 29 19:55:06 UTC 2017


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 <chris at chris-wilson.co.uk>
> Cc: Kenneth Graunke <kenneth at 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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170929/33586d9c/attachment.sig>


More information about the mesa-dev mailing list