summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2015-09-17 15:49:40 -0700
committerNanley Chery <nanley.g.chery@intel.com>2015-11-12 13:10:37 -0800
commitab129a44ae3a7515eb4642c068299673c890fb73 (patch)
treeba34b3a8f8d9042eb1957d497f67bab021afa044 /src/mesa/main/context.h
parenteda15abd84af575d3bde432e2163e30d743a7c87 (diff)
downloadexternal_mesa3d-ab129a44ae3a7515eb4642c068299673c890fb73.zip
external_mesa3d-ab129a44ae3a7515eb4642c068299673c890fb73.tar.gz
external_mesa3d-ab129a44ae3a7515eb4642c068299673c890fb73.tar.bz2
mesa: Generate a helper function for each extension
Generate functions which determine if an extension is supported in the current context. Initially, enums were going to be explicitly used with _mesa_extension_supported(). The idea to embed the function and enums into generated helper functions was suggested by Kristian Høgsberg. For performance, the function body no longer uses _mesa_extension_supported() and, as suggested by Chad Versace, the functions are also declared static inline. v2: Place function qualifiers on separate line (Chad) v3: Move function curly brace to new line (Chad) Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Chad Versace <chad.versace@intel.com>
Diffstat (limited to 'src/mesa/main/context.h')
-rw-r--r--src/mesa/main/context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h
index 1e7a12c..4798b1f 100644
--- a/src/mesa/main/context.h
+++ b/src/mesa/main/context.h
@@ -50,6 +50,7 @@
#include "imports.h"
+#include "extensions.h"
#include "mtypes.h"
#include "vbo/vbo.h"