[Mesa-dev] [PATCH 12/20] i915: Make hw_prim[] const

Ian Romanick idr at freedesktop.org
Fri May 15 12:16:20 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>
> 
> The table used to map the GL primitive to the hw primitive never
> changes so make it const.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
>  src/mesa/drivers/dri/i915/intel_render.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i915/intel_render.c b/src/mesa/drivers/dri/i915/intel_render.c
> index bf48f38..d06f75a 100644
> --- a/src/mesa/drivers/dri/i915/intel_render.c
> +++ b/src/mesa/drivers/dri/i915/intel_render.c
> @@ -69,7 +69,7 @@
>  
>  #define HAVE_ELTS        0
>  
> -static uint32_t hw_prim[GL_POLYGON + 1] = {
> +static const uint32_t hw_prim[GL_POLYGON + 1] = {
>     0,
>     PRIM3D_LINELIST,
>     PRIM3D_LINESTRIP,
> 



More information about the mesa-dev mailing list