Branch
Hash :
d2c01d2c
Author :
Date :
2021-09-17T12:57:14
GL: Allow selecting virtualization groups at context creation Rewrite EGL_ANGLE_platform_angle_context_virtualization to EGL_ANGLE_context_virtualization, changing the context virtualization parameter to an identifier for what virtualization group the frontend context should be added to. This allows ANGLE's GL backend to be used by multiple threads if the user creates contexts with different virtualization groups. Bug: angleproject:6406 Change-Id: I7414d4705ce10bdf63a9b824043d5dd040dad875 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3169193 Reviewed-by: Jonah Ryan-Davis <jonahr@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
Name
ANGLE_context_virtualization
Name Strings
EGL_ANGLE_context_virtualization
Contributors
Geoff Lang, Google
Contacts
Geoff Lang, Google (geofflang 'at' chromium 'dot' org)
Status
Draft
Version
Version 2, 2021-09-17
Number
EGL Extension XXX
Extension Type
EGL display extension
Dependencies
None
Overview
This extension allows the client to create contexts that are internally
virtualized on a single native context for performance or stability.
New Types
None
New Procedures and Functions
None
New Tokens
Accepted as an attribute name in the <attrib_list> argument of
eglCreateContext:
EGL_CONTEXT_VIRTUALIZATION_GROUP_ANGLE 0x3481
Additions to the EGL Specification
None.
New Behavior
To request that a context should be part of a virtualization group,
use the attribute EGL_CONTEXT_VIRTUALIZATION_GROUP_ANGLE. EGL_DONT_CARE
can be used to allow the implementation to decide what virtualization
group is used. The default value of EGL_CONTEXT_VIRTUALIZATION_GROUP_ANGLE
is EGL_DONT_CARE. It is undefined behaviour to have multiple contexts from
the same virtualization group current different threads simultaneously.
Issues
None
Revision History
Version 1, 2018-06-11 (Geoff Lang)
- Initial draft
Version 2, 2021-09-17 (Geoff Lang)
- Change to context creation attribute