summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-01-17 16:49:57 -0800
committerEric Anholt <[email protected]>2013-01-21 21:26:48 -0800
commitbe4b1664fbc98b0b1d66bb91850ecada52b36b91 (patch)
treed15160bacacfeecdae2832791df37ca593ef754b /src/mesa/main
parentced98f17efc73c313700bbf936f7258131037ef3 (diff)
mesa: Make the drivers call a non-code-generated dispatch table setup.
I want to drive the Save dispatch table setup from this same function. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/api_exec.h2
-rw-r--r--src/mesa/main/context.c7
-rw-r--r--src/mesa/main/tests/dispatch_sanity.cpp2
3 files changed, 10 insertions, 1 deletions
diff --git a/src/mesa/main/api_exec.h b/src/mesa/main/api_exec.h
index bf3faa153c7..94f7f41c14c 100644
--- a/src/mesa/main/api_exec.h
+++ b/src/mesa/main/api_exec.h
@@ -36,5 +36,7 @@ _mesa_alloc_dispatch_table(void);
extern void
_mesa_initialize_exec_table(struct gl_context *ctx);
+extern void
+_mesa_initialize_dispatch_tables(struct gl_context *ctx);
#endif
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 1f06b53f571..1c917e75a49 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -933,6 +933,13 @@ create_beginend_table(const struct gl_context *ctx)
return table;
}
+void
+_mesa_initialize_dispatch_tables(struct gl_context *ctx)
+{
+ /* Do the code-generated setup of the exec table in api_exec.c. */
+ _mesa_initialize_exec_table(ctx);
+}
+
/**
* Initialize a struct gl_context struct (rendering context).
*
diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp
index 5e1a7b55edc..399b9a5c640 100644
--- a/src/mesa/main/tests/dispatch_sanity.cpp
+++ b/src/mesa/main/tests/dispatch_sanity.cpp
@@ -113,7 +113,7 @@ DispatchSanity_test::SetUpCtx(gl_api api, unsigned int version)
ctx.Version = version;
- _mesa_initialize_exec_table(&ctx);
+ _mesa_initialize_dispatch_tables(&ctx);
_mesa_initialize_vbo_vtxfmt(&ctx);
}