This patch is

Reviewed-by: Ian Romanick <[email protected]>

On 03/23/2015 05:47 AM, [email protected] wrote:
> From: Ville Syrjälä <[email protected]>
> 
> The table used to map the GL primitive to the hw primitive never
> changes so make it const.
> 
> Signed-off-by: Ville Syrjälä <[email protected]>
> ---
>  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,
> 

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to