summaryrefslogtreecommitdiff
path: root/x11perf.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-04-18 12:00:43 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-04-18 12:16:31 -0700
commit16fda0825a0c6a51f800c225e66adce65e5f327c (patch)
tree412140c5499a50eafbb8d41859baa39d77e691a4 /x11perf.h
parent2454977d35ee9961ade650a8fa0e908d8feaf363 (diff)
Add -v1.6 & -v1.7 to recognized version flags
Also adds missing -v1.4 & -v1.5 to the man page. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/10>
Diffstat (limited to 'x11perf.h')
-rw-r--r--x11perf.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/x11perf.h b/x11perf.h
index 396f6a0..c755e07 100644
--- a/x11perf.h
+++ b/x11perf.h
@@ -61,12 +61,17 @@ typedef unsigned char Version;
#define VERSION1_4 ((Version)(1 << 2))
#define VERSION1_5 ((Version)(1 << 3))
#define VERSION1_6 ((Version)(1 << 4))
+#define VERSION1_7 ((Version)(1 << 5))
+
#define V1_2ONLY VERSION1_2
-#define V1_2FEATURE (VERSION1_2 | VERSION1_3 | VERSION1_4 | VERSION1_5 | VERSION1_6)
-#define V1_3FEATURE (VERSION1_3 | VERSION1_4 | VERSION1_5 | VERSION1_6)
-#define V1_4FEATURE (VERSION1_4 | VERSION1_5 | VERSION1_6)
-#define V1_5FEATURE (VERSION1_5 | VERSION1_6)
-#define V1_6FEATURE (VERSION1_6)
+
+/* Each V1_*FEATURE flag includes all later versions */
+#define V1_7FEATURE (VERSION1_7)
+#define V1_6FEATURE (VERSION1_6 | V1_7FEATURE)
+#define V1_5FEATURE (VERSION1_5 | V1_6FEATURE)
+#define V1_4FEATURE (VERSION1_4 | V1_5FEATURE)
+#define V1_3FEATURE (VERSION1_3 | V1_4FEATURE)
+#define V1_2FEATURE (VERSION1_2 | V1_3FEATURE)
typedef struct _Parms {
/* Required fields */