mesa dispatch_sanity: call new functions to initialize exec table
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 17 Nov 2012 02:25:35 +0000 (18:25 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Sun, 16 Dec 2012 23:30:27 +0000 (15:30 -0800)
In a future patch the exec functions will no longer set up
by _mesa_initialize_context and _vbo_CreateContext.

Therefore we must call _mesa_initialize_exec_table and
_mesa_initialize_exec_table_vbo.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/tests/dispatch_sanity.cpp

index a7c6f8fd9282bd09d58b229ee168b251c57b76ed..a28555978e4966a5241a1fc1c13b2ed9c6a98e08 100644 (file)
@@ -52,6 +52,7 @@ extern "C" {
 #include "main/api_exec.h"
 #include "main/context.h"
 #include "main/remap.h"
+#include "main/vtxfmt.h"
 #include "glapi/glapi.h"
 #include "drivers/common/driverfuncs.h"
 
@@ -103,13 +104,17 @@ DispatchSanity_test::SetUp()
 void
 DispatchSanity_test::SetUpCtx(gl_api api, unsigned int version)
 {
-   ctx.Version = version;
    _mesa_initialize_context(&ctx,
                             api,
                             &visual,
                             NULL, // share_list
                             &driver_functions);
    _vbo_CreateContext(&ctx);
+
+   ctx.Version = version;
+
+   _mesa_initialize_exec_table(&ctx);
+   _mesa_initialize_vbo_vtxfmt(&ctx);
 }
 
 static const char *