[PATCH] gl-renderer: Create a high priority context
Emil Velikov
emil.l.velikov at gmail.com
Fri Mar 2 14:52:28 UTC 2018
Hi Chris,
On 1 March 2018 at 08:28, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> EGL_IMG_context_priority allows the client to request that their
> rendering be considered high priority. For ourselves, this is important
> as we are interactive and any delay in our rendering causes input-output
> + if (gr->has_context_priority) {
> + EGLint value = EGL_CONTEXT_PRIORITY_MEDIUM_IMG;
> +
> + eglQueryContext(gr->egl_display, gr->egl_context,
> + EGL_CONTEXT_PRIORITY_LEVEL_IMG, &value);
> +
> + if (value != EGL_CONTEXT_PRIORITY_HIGH_IMG) {
> + weston_log("Failed to obtain a high priority context.\n");
> + /* Not an error, continue on as normal */
> + }
While this (and EGL spec) says "not an error" the i965 driver will
error out as the ioctl fails.
Say, for some reason the kernel module/HW cannot do a high-priority one ATM.
Should that be changed/fixed?
-Emil
More information about the wayland-devel
mailing list