[Mesa-dev] [PATCH v2 08/18] mesa: Generate a helper function for each extension

Chad Versace chad.versace at intel.com
Wed Nov 11 14:56:06 PST 2015


On Fri 30 Oct 2015, Nanley Chery wrote:
> From: Nanley Chery <nanley.g.chery at intel.com>
> 
> Generate functions which determine if an extension is supported in the
> current context. Initially, enums were going to be explicitly used with
> _mesa_extension_supported(). The idea to embed the function and enums
> into generated helper functions was suggested by Kristian Høgsberg.
> 
> For performance, the function body no longer uses
> _mesa_extension_supported() and, as suggested by Chad Versace, the
> functions are also declared static inline.
> 
> v2. Place function qualifiers on seperate line (Chad)
> 
> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
> ---
>  src/mesa/main/context.h    |  1 +
>  src/mesa/main/extensions.c | 23 +----------------------
>  src/mesa/main/extensions.h | 41 +++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 43 insertions(+), 22 deletions(-)

Patch 8 is
Reviewed-by: Chad Versace <chad.versace at intel.com>



More information about the mesa-dev mailing list