summaryrefslogtreecommitdiff
path: root/src/mesa/main/remap.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-04-22 13:30:03 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-04-27 13:09:31 -0400
commit1741ddb747ca0be284315adb4b6fe67ddf292d03 (patch)
tree879e8d81369f9c5aba4af51e00abcf2392262a35 /src/mesa/main/remap.h
parentfa416106307dc193e2133aa6a29b9bcfc91f8b39 (diff)
mesa: Move references to main/remap_helper.h to api_exec.c
Diffstat (limited to 'src/mesa/main/remap.h')
-rw-r--r--src/mesa/main/remap.h32
1 files changed, 26 insertions, 6 deletions
diff --git a/src/mesa/main/remap.h b/src/mesa/main/remap.h
index d080188d89..dda1a6be3a 100644
--- a/src/mesa/main/remap.h
+++ b/src/mesa/main/remap.h
@@ -28,9 +28,17 @@
#define REMAP_H
-#include "main/mtypes.h"
+#include "main/mfeatures.h"
-struct gl_function_remap;
+struct gl_function_pool_remap {
+ int pool_index;
+ int remap_index;
+};
+
+struct gl_function_remap {
+ int func_index;
+ int dispatch_offset; /* for sanity check */
+};
#if FEATURE_remap_table
@@ -39,9 +47,9 @@ extern int
driDispatchRemapTable[];
extern const char *
-_mesa_get_function_spec(GLint func_index);
+_mesa_get_function_spec(int func_index);
-extern GLint
+extern int
_mesa_map_function_spec(const char *spec);
extern void
@@ -51,17 +59,22 @@ extern void
_mesa_map_static_functions(void);
extern void
+_mesa_do_init_remap_table(const char *pool,
+ int size,
+ const struct gl_function_pool_remap *remap);
+
+extern void
_mesa_init_remap_table(void);
#else /* FEATURE_remap_table */
static INLINE const char *
-_mesa_get_function_spec(GLint func_index)
+_mesa_get_function_spec(int func_index)
{
return NULL;
}
-static INLINE GLint
+static INLINE int
_mesa_map_function_spec(const char *spec)
{
return -1;
@@ -78,6 +91,13 @@ _mesa_map_static_functions(void)
}
static INLINE void
+_mesa_do_init_remap_table(const char *pool,
+ int size,
+ const struct gl_function_pool_remap *remap)
+{
+}
+
+static INLINE void
_mesa_init_remap_table(void)
{
}