Mesa (main): dri: Reformat DRI context attribute #defines

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 18 23:07:09 UTC 2021


Module: Mesa
Branch: main
Commit: 5c71bf065f359aae021d58dc47eb4c770e0f8ded
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c71bf065f359aae021d58dc47eb4c770e0f8ded

Author: Adam Jackson <ajax at redhat.com>
Date:   Fri Aug  6 16:29:52 2021 -0400

dri: Reformat DRI context attribute #defines

These were confusingly sorted before.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12456>

---

 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_ATTRIB_FLAGS			2
 #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



More information about the mesa-commit mailing list