summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-11-16 14:22:18 +0000
committerEmil Velikov <[email protected]>2017-12-06 17:31:53 +0000
commite964e01fddde2b0d5caed5d9808f43dd99590f26 (patch)
tree92c0cb6f656ad3b0ff078e54aefe63e59af8695d /src/mesa
parentd7ba4f41f99d01dda7bbe74a86231c2bb0495378 (diff)
mesa: document _mesa_extension_override_* variables
Currently there are no users of these outside of extensions.c. Provide some information why they exist and how to use them. Cc: Jordan Justen <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Andres Gomez <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/extensions.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/extensions.h b/src/mesa/main/extensions.h
index 59761bfcdb4..159610b6e12 100644
--- a/src/mesa/main/extensions.h
+++ b/src/mesa/main/extensions.h
@@ -106,6 +106,15 @@ _mesa_has_##name_str(const struct gl_context *ctx) \
#include "extensions_table.h"
#undef EXT
+/* Sometimes the driver wants to query the extension override status before
+ * a context is created. These variables are filled with extension override
+ * information before context creation.
+ *
+ * This can be useful during extension bring-up when an extension is
+ * partially implemented, but cannot yet be advertised as supported.
+ *
+ * Use it with care and keep access read-only.
+ */
extern struct gl_extensions _mesa_extension_override_enables;
extern struct gl_extensions _mesa_extension_override_disables;