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ä <ville.syrjala@linux.intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
committed by
Ian Romanick
parent
84fec757de
commit
aae0c88797
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user