From 5c71bf065f359aae021d58dc47eb4c770e0f8ded Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 6 Aug 2021 16:29:52 -0400 Subject: [PATCH] dri: Reformat DRI context attribute #defines These were confusingly sorted before. Part-of: --- include/GL/internal/dri_interface.h | 31 ++++------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 66dc0927cb7..6d98f2506bb 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -1203,50 +1203,27 @@ struct __DRIdri2LoaderExtensionRec { #define __DRI_CTX_ATTRIB_MAJOR_VERSION 0 #define __DRI_CTX_ATTRIB_MINOR_VERSION 1 + #define __DRI_CTX_ATTRIB_FLAGS 2 - -/** - * \requires __DRI2_ROBUSTNESS. - */ -#define __DRI_CTX_ATTRIB_RESET_STRATEGY 3 - #define __DRI_CTX_FLAG_DEBUG 0x00000001 #define __DRI_CTX_FLAG_FORWARD_COMPATIBLE 0x00000002 - -/** - * \requires __DRI2_ROBUSTNESS. - */ #define __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS 0x00000004 - -/** - * \requires __DRI2_NO_ERROR. - * - */ #define __DRI_CTX_FLAG_NO_ERROR 0x00000008 -/** - * \name Context reset strategies. - */ -/*@{*/ +#define __DRI_CTX_ATTRIB_RESET_STRATEGY 3 #define __DRI_CTX_RESET_NO_NOTIFICATION 0 #define __DRI_CTX_RESET_LOSE_CONTEXT 1 -/*@}*/ #define __DRI_CTX_ATTRIB_PRIORITY 4 - #define __DRI_CTX_PRIORITY_LOW 0 #define __DRI_CTX_PRIORITY_MEDIUM 1 #define __DRI_CTX_PRIORITY_HIGH 2 -/** - * \name Context release behaviors. - */ -/*@{*/ #define __DRI_CTX_ATTRIB_RELEASE_BEHAVIOR 5 - #define __DRI_CTX_RELEASE_BEHAVIOR_NONE 0 #define __DRI_CTX_RELEASE_BEHAVIOR_FLUSH 1 -/*@}*/ + +#define __DRI_CTX_NUM_ATTRIBS 6 /** * \name Reasons that __DRIdri2Extension::createContextAttribs might fail