mesa/include
Chris Wilson 95ecf3df62 egl: Support IMG_context_priority
IMG_context_priority
https://www.khronos.org/registry/egl/extensions/IMG/EGL_IMG_context_priority.txt

    "This extension allows an EGLContext to be created with a priority
    hint. It is possible that an implementation will not honour the
    hint, especially if there are constraints on the number of high
    priority contexts available in the system, or system policy limits
    access to high priority contexts to appropriate system privilege
    level. A query is provided to find the real priority level assigned
    to the context after creation."

The extension adds a new eglCreateContext attribute for choosing a
priority hint. This stub parses the attribute and copies into the base
struct _egl_context, and hooks up the query similarly.

Since the attribute is purely a hint, I have no qualms about the lack of
implementation before reporting back the value the user gave!

v2: Remember to set the default ContextPriority value to medium.
v3: Use the driRendererQuery interface to probe the backend for
supported priority values and use those to mask the EGL interface.
v4: Treat the priority attrib as a hint and gracefully mask any requests
not supported by the driver, the EGLContext will remain at medium
priority.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Rob Clark <robdclark@gmail.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Emil Velikov <emli.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2017-10-20 11:28:17 +01:00
..
c11 c11/threads: rework Windows thrd_current() comment 2017-05-04 18:00:23 +01:00
CL clover: Update OpenCL headers to version 1.2 from Khronos. 2014-04-29 13:01:10 +02:00
D3D9 Introduce .editorconfig 2016-08-31 17:06:54 -07:00
d3dadapter d3dadapter/present: Add precision for WaitBufferReleased 2016-12-20 23:44:21 +01:00
drm-uapi include/drm-uapi: clarify when headers can be updated. 2017-10-12 09:44:27 +10:00
EGL eglmesaext: add forward declaration for struct wl_buffers 2017-10-13 12:56:12 +01:00
GL egl: Support IMG_context_priority 2017-10-20 11:28:17 +01:00
GLES gles: Restore some lost typedefs 2017-08-01 18:26:15 +01:00
GLES2 include: update GLES gl2ext header to no longer reference bad function 2017-08-07 20:32:32 -04:00
GLES3 Update Khronos-supplied headers 2017-06-30 15:29:50 +02:00
HaikuGL include/haiku: fix comment typo 2014-08-28 21:41:29 -04:00
KHR egl: Update headers from Khronos 2017-08-11 11:16:00 +01:00
pci_ids Revert "intel: Remove unused Kabylake pci ids 2017-09-21 14:12:27 -07:00
vulkan vulkan: Add #ifdef hack to vk_android_native_buffer.h 2017-09-18 14:26:54 -07:00
c99_alloca.h c99_alloca.h: Also use <alloca.h> for cygwin 2015-03-07 18:18:32 +00:00
c99_compat.h scons: set HAVE_FUNC_ATTRIBUTE_ALIAS 2017-01-18 16:01:14 +00:00
c99_math.h math: Import isinf and others to global namespace 2016-04-18 11:10:25 +01:00
meson.build meson: build glx 2017-10-09 13:42:44 -07:00
no_extern_c.h include: Add helper header to help trap includes inside extern C. 2015-03-06 12:38:55 +00:00