diff options
author | Ville Syrjälä <[email protected]> | 2015-03-23 14:47:28 +0200 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2015-09-23 09:57:46 -0700 |
commit | aae0c88797e7e44c55873b3e97cceed5c6e6cded (patch) | |
tree | a88a4364b60e26a25c86f9f63d1cba116fd319e9 /src/mesa/drivers/dri/i915 | |
parent | 84fec757de2f8c6ba47f2f56077993d62538711a (diff) |
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ä <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i915')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |