diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2020-12-14 12:15:11 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-10-27 10:53:18 +0000 |
commit | 9de1263842607abe69d2dba07a81cc50e1fa6035 (patch) | |
tree | 7faab8a5f1465fdb2600129d80a4e8e1e01af670 /include/GL | |
parent | b30f1327f9639c590e5cbcaa4c197900e273bc4f (diff) | |
download | mesa-9de1263842607abe69d2dba07a81cc50e1fa6035.tar.gz mesa-9de1263842607abe69d2dba07a81cc50e1fa6035.tar.bz2 mesa-9de1263842607abe69d2dba07a81cc50e1fa6035.zip |
egl: Add EGL_EXT_protected_content support
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8092>
Diffstat (limited to 'include/GL')
-rw-r--r-- | include/GL/internal/dri_interface.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index f29f62833b9..d680abda671 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -1090,7 +1090,14 @@ struct __DRIdri2LoaderExtensionRec { #define __DRI_CTX_ATTRIB_NO_ERROR 6 -#define __DRI_CTX_NUM_ATTRIBS 7 +/** + * \requires __DRI2_RENDER_HAS_PROTECTED_CONTEXT. + * + */ +#define __DRI_CTX_ATTRIB_PROTECTED 7 + + +#define __DRI_CTX_NUM_ATTRIBS 8 /** * \name Reasons that __DRIdri2Extension::createContextAttribs might fail @@ -1894,6 +1901,8 @@ typedef struct __DRIDriverVtableExtensionRec { #define __DRI2_RENDERER_PREFER_BACK_BUFFER_REUSE 0x000f #define __DRI2_RENDERER_HAS_NO_ERROR_CONTEXT 0x0010 +#define __DRI2_RENDERER_HAS_PROTECTED_CONTEXT 0x0020 + typedef struct __DRI2rendererQueryExtensionRec __DRI2rendererQueryExtension; struct __DRI2rendererQueryExtensionRec { __DRIextension base; |