From 6db7cf29b5229d8cb206973c0283d56a1e025c93 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 29 May 2012 12:41:08 -0700 Subject: [PATCH] glapi: Remove GL_NV_register_combiners from the dispatch table There is no GLX protocol for these functions. No open-source Linux driver has ever supported this extension, and it seems unlikely at this point that one ever will. There's no reason to have slots for these functions in the dispatch table. The unit tests (GetProcAddress::TableDidntShrink and others) are also updated. Signed-off-by: Ian Romanick Reviewed-by: Brian Paul --- src/mapi/glapi/gen/gl_API.xml | 26 +++++++++++++------------- src/mapi/glapi/tests/check_table.cpp | 18 ++++-------------- 2 files changed, 17 insertions(+), 27 deletions(-) diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 97056b5..bd75105 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -10551,31 +10551,31 @@ - + - + - + - + - + @@ -10585,7 +10585,7 @@ - + @@ -10599,7 +10599,7 @@ - + @@ -10607,7 +10607,7 @@ - + @@ -10616,7 +10616,7 @@ - + @@ -10625,7 +10625,7 @@ - + @@ -10633,7 +10633,7 @@ - + @@ -10641,14 +10641,14 @@ - + - + diff --git a/src/mapi/glapi/tests/check_table.cpp b/src/mapi/glapi/tests/check_table.cpp index 28ac3a4..7471c8c 100644 --- a/src/mapi/glapi/tests/check_table.cpp +++ b/src/mapi/glapi/tests/check_table.cpp @@ -90,8 +90,11 @@ TEST(GetProcAddress, TableDidntShrink) * * 2 entries were removed when GL_APPLE_texture_range was removed from the * dispatch table. + * + * 13 entries were removed when GL_NV_register_combiners was removed from + * the dispatch table. */ - EXPECT_GE(table_entries, 978u - 6u - 1u - 2u); + EXPECT_GE(table_entries, 978u - 6u - 1u - 2u - 13u); } TEST(GetProcAddress, QueriedDispatchSizeBigEnough) @@ -1290,19 +1293,6 @@ const struct name_offset known_dispatch[] = { { "glBlendFuncSeparateEXT", _O(BlendFuncSeparateEXT) }, { "glFlushVertexArrayRangeNV", _O(FlushVertexArrayRangeNV) }, { "glVertexArrayRangeNV", _O(VertexArrayRangeNV) }, - { "glCombinerInputNV", _O(CombinerInputNV) }, - { "glCombinerOutputNV", _O(CombinerOutputNV) }, - { "glCombinerParameterfNV", _O(CombinerParameterfNV) }, - { "glCombinerParameterfvNV", _O(CombinerParameterfvNV) }, - { "glCombinerParameteriNV", _O(CombinerParameteriNV) }, - { "glCombinerParameterivNV", _O(CombinerParameterivNV) }, - { "glFinalCombinerInputNV", _O(FinalCombinerInputNV) }, - { "glGetCombinerInputParameterfvNV", _O(GetCombinerInputParameterfvNV) }, - { "glGetCombinerInputParameterivNV", _O(GetCombinerInputParameterivNV) }, - { "glGetCombinerOutputParameterfvNV", _O(GetCombinerOutputParameterfvNV) }, - { "glGetCombinerOutputParameterivNV", _O(GetCombinerOutputParameterivNV) }, - { "glGetFinalCombinerInputParameterfvNV", _O(GetFinalCombinerInputParameterfvNV) }, - { "glGetFinalCombinerInputParameterivNV", _O(GetFinalCombinerInputParameterivNV) }, { "glResizeBuffersMESA", _O(ResizeBuffersMESA) }, { "glWindowPos2dMESA", _O(WindowPos2dMESA) }, { "glWindowPos2dvMESA", _O(WindowPos2dvMESA) }, -- 2.7.4