[Mesa-dev] [PATCH 07/20] t_dd_dmatmp: Make the render_tab[]s const

Ian Romanick idr at freedesktop.org
Fri May 15 12:15:13 PDT 2015


This patch is

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 03/23/2015 05:47 AM, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> These tables hold function pointers and they never change so
> make them const.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
>  src/mesa/tnl_dd/t_dd_dmatmp.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/tnl_dd/t_dd_dmatmp.h b/src/mesa/tnl_dd/t_dd_dmatmp.h
> index 2132c07..7f9b433 100644
> --- a/src/mesa/tnl_dd/t_dd_dmatmp.h
> +++ b/src/mesa/tnl_dd/t_dd_dmatmp.h
> @@ -553,7 +553,7 @@ static void TAG(render_noop)( struct gl_context *ctx,
>  
>  
>  
> -static tnl_render_func TAG(render_tab_verts)[GL_POLYGON+2] =
> +static const tnl_render_func TAG(render_tab_verts)[GL_POLYGON+2] =
>  {
>     TAG(render_points_verts),
>     TAG(render_lines_verts),
> @@ -1046,7 +1046,7 @@ static void TAG(render_quads_elts)( struct gl_context *ctx,
>  
>  
>  
> -static tnl_render_func TAG(render_tab_elts)[GL_POLYGON+2] =
> +static const tnl_render_func TAG(render_tab_elts)[GL_POLYGON+2] =
>  {
>     TAG(render_points_elts),
>     TAG(render_lines_elts),
> 



More information about the mesa-dev mailing list