i915: Make hw_prim[] const
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 23 Mar 2015 12:47:28 +0000 (14:47 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 23 Sep 2015 16:57:46 +0000 (09:57 -0700)
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@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i915/intel_render.c

index cf4827e238e39f8ac896cb633e95d5fb036e7c55..6c2ad6c6c95457b2a1e5a706fd021efcd8e17308 100644 (file)
@@ -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,