From 34808de7371f93222136994a8656fc21b55bdd65 Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Mon, 5 Jun 2023 16:01:49 -0700 Subject: [PATCH] mapi: Drop the unused_functions table. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Since we don't support loading an older driver with newer loader any more, we don't need to bother tracking entrypoints that Mesa no longer supports. Acked-by: Marek Olšák Acked-by: Alyssa Rosenzweig Reviewed-by: Adam Jackson Part-of: --- src/mapi/glapi/gen/gl_XML.py | 2 +- src/mapi/glapi/gen/static_data.py | 56 --------------------------------------- 2 files changed, 1 insertion(+), 57 deletions(-) diff --git a/src/mapi/glapi/gen/gl_XML.py b/src/mapi/glapi/gen/gl_XML.py index c1fd6f5..3e1b8b0 100644 --- a/src/mapi/glapi/gen/gl_XML.py +++ b/src/mapi/glapi/gen/gl_XML.py @@ -710,7 +710,7 @@ class gl_function( gl_item ): else: if self.exec_flavor != "skip": raise RuntimeError("Entry-point %s is missing offset in static_data.py. Add one at the bottom of the list." % (name)) - self.assign_offset = self.exec_flavor != "skip" or name in static_data.unused_functions + self.assign_offset = False if not self.name: self.name = true_name diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py index b4c8535..58e303e 100644 --- a/src/mapi/glapi/gen/static_data.py +++ b/src/mapi/glapi/gen/static_data.py @@ -3007,59 +3007,3 @@ functions = [ "WindowPos3sv", "WindowPos3svARB", ] - -"""Functions that need dispatch slots but are not used - -Some of these functions may have GLX protocol support (for -indirect-rendering). Other were used in previous versions of Mesa. They keep -slots in the dispatch table so that newer versions of libGL can still be used -with older drivers.""" -unused_functions = [ - # SGIS_multisample - "SampleMaskSGIS", - "SamplePatternSGIS", - - # NV_vertex_program - "AreProgramsResidentNV", - "ExecuteProgramNV", - "GetProgramParameterdvNV", - "GetProgramParameterfvNV", - "GetProgramivNV", - "GetProgramStringNV", - "GetTrackMatrixivNV", - "GetVertexAttribdvNV", - "GetVertexAttribfvNV", - "GetVertexAttribivNV", - "LoadProgramNV", - "ProgramParameters4dvNV", - "ProgramParameters4fvNV", - "RequestResidentProgramsNV", - "TrackMatrixNV", - "VertexAttribPointerNV", - - # MESA_resize_buffers - "ResizeBuffersMESA", - - # ATI_envmap_bumpmap - "TexBumpParameterfvATI", - "TexBumpParameterivATI", - "GetTexBumpParameterfvATI", - "GetTexBumpParameterivATI", - - # NV_fragment_program - "ProgramNamedParameter4fNV", - "ProgramNamedParameter4dNV", - "ProgramNamedParameter4fvNV", - "ProgramNamedParameter4dvNV", - "GetProgramNamedParameterfvNV", - "GetProgramNamedParameterdvNV", - - # APPLE_flush_buffer_range - "BufferParameteriAPPLE", - "FlushMappedBufferRangeAPPLE", - - # EXT_separate_shader_objects - "UseShaderProgramEXT", - "ActiveProgramEXT", - "CreateShaderProgramEXT", -] -- 2.7.4