From: Jason Ekstrand Date: Wed, 6 May 2015 22:36:54 +0000 (-0700) Subject: nir/spirv: Make the global constants in spirv.h static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2887e68f36e4782b2c255fd2fc11af328e2fe9fe;p=mesa.git nir/spirv: Make the global constants in spirv.h static I've been promissed in a bug that this will be fixed in a future version of the header. However, in the interest of my branch building, I'm adding these changes in myself for the moment. --- diff --git a/src/glsl/nir/spirv.h b/src/glsl/nir/spirv.h index 93135c09596..da717ecd342 100644 --- a/src/glsl/nir/spirv.h +++ b/src/glsl/nir/spirv.h @@ -48,13 +48,13 @@ namespace spv { -const int MagicNumber = 0x07230203; -const int Version = 99; +static const int MagicNumber = 0x07230203; +static const int Version = 99; typedef unsigned int Id; -const unsigned int OpCodeMask = 0xFFFF; -const unsigned int WordCountShift = 16; +static const unsigned int OpCodeMask = 0xFFFF; +static const unsigned int WordCountShift = 16; enum SourceLanguage { SourceLanguageUnknown = 0, @@ -677,13 +677,13 @@ enum Op { #ifndef __cplusplus -const int SpvMagicNumber = 0x07230203; -const int SpvVersion = 99; +static const int SpvMagicNumber = 0x07230203; +static const int SpvVersion = 99; typedef unsigned int SpvId; -const unsigned int SpvOpCodeMask = 0xFFFF; -const unsigned int SpvWordCountShift = 16; +static const unsigned int SpvOpCodeMask = 0xFFFF; +static const unsigned int SpvWordCountShift = 16; typedef enum SpvSourceLanguage_ { SpvSourceLanguageUnknown = 0,