[Mesa-dev] [PATCH 5/9] glapi: remove FEATURE_remap_table test (it's always defined)

Ian Romanick idr at freedesktop.org
Mon Feb 25 11:11:33 PST 2013


On 02/23/2013 07:26 AM, Brian Paul wrote:
> ---
>   src/mapi/glapi/gen/gl_table.py |   15 ---------------
>   1 files changed, 0 insertions(+), 15 deletions(-)
>
> diff --git a/src/mapi/glapi/gen/gl_table.py b/src/mapi/glapi/gen/gl_table.py
> index 382eaaf..99957f6 100644
> --- a/src/mapi/glapi/gen/gl_table.py
> +++ b/src/mapi/glapi/gen/gl_table.py
> @@ -147,17 +147,6 @@ class PrintRemapTable(gl_XML.gl_print_base):
>           for f, index in abi_functions:
>               print '#define _gloffset_%s %d' % (f.name, f.offset)
>
> -        print ''
> -        print '#if !FEATURE_remap_table'
> -        print ''
> -
> -        for f, index in functions:
> -            print '#define _gloffset_%s %d' % (f.name, f.offset)
> -

Even for non-DRI builds?

> -        print ''
> -        print '#else /* !FEATURE_remap_table */'
> -        print ''
> -
>           if self.es:
>               remap_table = "esLocalRemapTable"
>
> @@ -180,8 +169,6 @@ class PrintRemapTable(gl_XML.gl_print_base):
>               print '#define _gloffset_%s %s[%s_remap_index]' % (f.name, remap_table, f.name)
>
>           print ''
> -        print '#endif /* !FEATURE_remap_table */'
> -        print ''
>
>           for f, index in abi_functions + functions:
>               arg_string = gl_XML.create_parameter_string( f.parameters, 0 )
> @@ -209,12 +196,10 @@ class PrintRemapTable(gl_XML.gl_print_base):
>                           print '#define SET_%s(disp, fn) SET_%s(disp, fn)' % (name, f.name)
>               print ''
>
> -            print '#if FEATURE_remap_table'
>               for f in alias_functions:
>                   for name in f.entry_points:
>                       if name != f.name:
>                           print '#define %s_remap_index %s_remap_index' % (name, f.name)
> -            print '#endif /* FEATURE_remap_table */'
>               print ''
>
>           return
>



More information about the mesa-dev mailing list