From: Ville Syrjälä Date: Mon, 23 Mar 2015 12:47:28 +0000 (+0200) Subject: i915: Make hw_prim[] const X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aae0c88797e7e44c55873b3e97cceed5c6e6cded;p=mesa.git i915: Make hw_prim[] const The table used to map the GL primitive to the hw primitive never changes so make it const. Signed-off-by: Ville Syrjälä Reviewed-by: Ian Romanick --- diff --git a/src/mesa/drivers/dri/i915/intel_render.c b/src/mesa/drivers/dri/i915/intel_render.c index cf4827e238e..6c2ad6c6c95 100644 --- a/src/mesa/drivers/dri/i915/intel_render.c +++ b/src/mesa/drivers/dri/i915/intel_render.c @@ -66,7 +66,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,