diff options
author | Paul Berry <[email protected]> | 2012-10-23 14:48:39 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-11-01 11:26:07 -0700 |
commit | 8386088e3dc6fbd223dca7cc966b86f9ab0652b5 (patch) | |
tree | cb7e7cc691d4c88ebb102dcc70482d10833dc158 /src/mesa/main/tests/dispatch_sanity.cpp | |
parent | a21116f87e44aabb6cb1f040dd557eac98144dd8 (diff) |
dispatch: stop using _mesa_create_exec_table_es1() for GLES1.
This patch modifies context creation code for GLES1 to use
_mesa_create_exec_table() (which is used for all other APIs) instead
of the GLES1-specific _mesa_create_exec_table_es1().
There is a slight change in functionality. As a result of a mistake
in the code generation of _mesa_create_exec_table_es1(), it does not
include glFlushMappedBufferRangeEXT or glMapBufferRangeEXT (this is
because when support for those two functions was added in commit
762d9ac, src/mesa/main/APIspec.xml wasn't updated). With this patch,
glFlushMappedBufferRangeEXT and glMapBufferRangeEXT are properly
included in the dispatch table. Accordingly, dispatch_sanity.cpp is
modified to expect these two functions to be present.
Reviewed-by: Kenneth Graunke <[email protected]>
v2: Leave GLES1.1 dispatch sanity test disabled when not building
GLES1 support.
Diffstat (limited to 'src/mesa/main/tests/dispatch_sanity.cpp')
-rw-r--r-- | src/mesa/main/tests/dispatch_sanity.cpp | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp index 11956339391..fadf2959fec 100644 --- a/src/mesa/main/tests/dispatch_sanity.cpp +++ b/src/mesa/main/tests/dispatch_sanity.cpp @@ -76,7 +76,6 @@ extern const struct function gles2_functions_possible[]; extern const struct function gles3_functions_possible[]; #if FEATURE_ES1 -extern "C" _glapi_table *_mesa_create_exec_table_es1(void); extern const struct function gles11_functions_possible[]; #endif /* FEATURE_ES1 */ @@ -147,9 +146,20 @@ validate_nops(const _glapi_proc *table) #if FEATURE_ES1 TEST_F(DispatchSanity_test, GLES11) { - _glapi_proc *exec = (_glapi_proc *) _mesa_create_exec_table_es1(); - validate_functions(exec, gles11_functions_possible); - validate_nops(exec); + ctx.Version = 11; + _mesa_initialize_context(&ctx, + API_OPENGLES, + &visual, + NULL /* share_list */, + &driver_functions); + + _swrast_CreateContext(&ctx); + _vbo_CreateContext(&ctx); + _tnl_CreateContext(&ctx); + _swsetup_CreateContext(&ctx); + + validate_functions((_glapi_proc *) ctx.Exec, gles11_functions_possible); + validate_nops((_glapi_proc *) ctx.Exec); } #endif /* FEATURE_ES1 */ @@ -251,6 +261,7 @@ const struct function gles11_functions_possible[] = { { "glEnableClientState", _gloffset_EnableClientState }, { "glFinish", _gloffset_Finish }, { "glFlush", _gloffset_Flush }, + { "glFlushMappedBufferRangeEXT", -1 }, { "glFogf", _gloffset_Fogf }, { "glFogfv", _gloffset_Fogfv }, { "glFogx", -1 }, @@ -312,6 +323,7 @@ const struct function gles11_functions_possible[] = { { "glLoadMatrixx", -1 }, { "glLogicOp", _gloffset_LogicOp }, { "glMapBufferOES", -1 }, + { "glMapBufferRangeEXT", -1 }, { "glMaterialf", _gloffset_Materialf }, { "glMaterialfv", _gloffset_Materialfv }, { "glMaterialx", -1 }, |