diff options
author | Grigori Goronzy <[email protected]> | 2017-06-29 03:24:15 +0200 |
---|---|---|
committer | Grigori Goronzy <[email protected]> | 2017-07-14 21:20:31 +0200 |
commit | 7299e82fa444c86f4c5e22593424715454182e9a (patch) | |
tree | ea8359383822ac6b807f3dd4bf7afaaaba9c081b /include/GL | |
parent | cfbf60b0c21b105ad162a0a451cd2f65124efedc (diff) |
dri: Add KHR_no_error DRI extension
This basic extension allows usage of the __DRI_CTX_FLAG_NO_ERROR flag.
This includes support code for classic Mesa drivers to switch on the
no-error mode if the flag is set.
v2: Move to common DRI code.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'include/GL')
-rw-r--r-- | include/GL/internal/dri_interface.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 1893d4c4a5e..a8f5af145df 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -1050,6 +1050,12 @@ struct __DRIdri2LoaderExtensionRec { #define __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS 0x00000004 /** + * \requires __DRI2_NO_ERROR. + * + */ +#define __DRI_CTX_FLAG_NO_ERROR 0x00000008 + +/** * \name Context reset strategies. */ /*@{*/ @@ -1612,6 +1618,19 @@ struct __DRIrobustnessExtensionRec { }; /** + * No-error context driver extension. + * + * Existence of this extension means the driver can accept the + * __DRI_CTX_FLAG_NO_ERROR flag. + */ +#define __DRI2_NO_ERROR "DRI_NoError" +#define __DRI2_NO_ERROR_VERSION 1 + +typedef struct __DRInoErrorExtensionRec { + __DRIextension base; +} __DRInoErrorExtension; + +/** * DRI config options extension. * * This extension provides the XML string containing driver options for use by |