diff options
author | Jeff Bolz <jbolz@nvidia.com> | 2020-03-02 09:43:49 -0600 |
---|---|---|
committer | Jeff Bolz <jbolz@nvidia.com> | 2020-03-04 12:45:28 -0600 |
commit | 89bef4096159729dcbbfb0a87092e9a2d163c663 (patch) | |
tree | 084fff7cd4d4e38d0f8ff2f03a1bc12075843de8 | |
parent | 0a7fc45259910f07f00c5a3fa10be5678bee1f83 (diff) | |
download | SPIRV-Headers-89bef4096159729dcbbfb0a87092e9a2d163c663.tar.gz |
Fix max enum value
-rw-r--r-- | include/spirv/unified1/AMD_gcn_shader.h | 2 | ||||
-rw-r--r-- | include/spirv/unified1/AMD_shader_ballot.h | 2 | ||||
-rw-r--r-- | include/spirv/unified1/AMD_shader_explicit_vertex_parameter.h | 2 | ||||
-rw-r--r-- | include/spirv/unified1/AMD_shader_trinary_minmax.h | 2 | ||||
-rw-r--r-- | include/spirv/unified1/DebugInfo.h | 12 | ||||
-rw-r--r-- | include/spirv/unified1/OpenCLDebugInfo100.h | 14 | ||||
-rwxr-xr-x | tools/buildHeaders/bin/generate_language_headers.py | 2 |
7 files changed, 18 insertions, 18 deletions
diff --git a/include/spirv/unified1/AMD_gcn_shader.h b/include/spirv/unified1/AMD_gcn_shader.h index 0d311a1..80165ae 100644 --- a/include/spirv/unified1/AMD_gcn_shader.h +++ b/include/spirv/unified1/AMD_gcn_shader.h @@ -41,7 +41,7 @@ enum AMD_gcn_shaderInstructions { AMD_gcn_shaderCubeFaceIndexAMD = 1, AMD_gcn_shaderCubeFaceCoordAMD = 2, AMD_gcn_shaderTimeAMD = 3, - AMD_gcn_shaderInstructionsMax = 0x7ffffff + AMD_gcn_shaderInstructionsMax = 0x7fffffff }; diff --git a/include/spirv/unified1/AMD_shader_ballot.h b/include/spirv/unified1/AMD_shader_ballot.h index 59b2aaf..8a8bb6e 100644 --- a/include/spirv/unified1/AMD_shader_ballot.h +++ b/include/spirv/unified1/AMD_shader_ballot.h @@ -42,7 +42,7 @@ enum AMD_shader_ballotInstructions { AMD_shader_ballotSwizzleInvocationsMaskedAMD = 2, AMD_shader_ballotWriteInvocationAMD = 3, AMD_shader_ballotMbcntAMD = 4, - AMD_shader_ballotInstructionsMax = 0x7ffffff + AMD_shader_ballotInstructionsMax = 0x7fffffff }; diff --git a/include/spirv/unified1/AMD_shader_explicit_vertex_parameter.h b/include/spirv/unified1/AMD_shader_explicit_vertex_parameter.h index aa3d52b..12b6480 100644 --- a/include/spirv/unified1/AMD_shader_explicit_vertex_parameter.h +++ b/include/spirv/unified1/AMD_shader_explicit_vertex_parameter.h @@ -39,7 +39,7 @@ enum { enum AMD_shader_explicit_vertex_parameterInstructions { AMD_shader_explicit_vertex_parameterInterpolateAtVertexAMD = 1, - AMD_shader_explicit_vertex_parameterInstructionsMax = 0x7ffffff + AMD_shader_explicit_vertex_parameterInstructionsMax = 0x7fffffff }; diff --git a/include/spirv/unified1/AMD_shader_trinary_minmax.h b/include/spirv/unified1/AMD_shader_trinary_minmax.h index 8b49280..1b14997 100644 --- a/include/spirv/unified1/AMD_shader_trinary_minmax.h +++ b/include/spirv/unified1/AMD_shader_trinary_minmax.h @@ -47,7 +47,7 @@ enum AMD_shader_trinary_minmaxInstructions { AMD_shader_trinary_minmaxFMid3AMD = 7, AMD_shader_trinary_minmaxUMid3AMD = 8, AMD_shader_trinary_minmaxSMid3AMD = 9, - AMD_shader_trinary_minmaxInstructionsMax = 0x7ffffff + AMD_shader_trinary_minmaxInstructionsMax = 0x7fffffff }; diff --git a/include/spirv/unified1/DebugInfo.h b/include/spirv/unified1/DebugInfo.h index c8e26f1..c50a131 100644 --- a/include/spirv/unified1/DebugInfo.h +++ b/include/spirv/unified1/DebugInfo.h @@ -73,7 +73,7 @@ enum DebugInfoInstructions { DebugInfoDebugExpression = 31, DebugInfoDebugMacroDef = 32, DebugInfoDebugMacroUndef = 33, - DebugInfoInstructionsMax = 0x7ffffff + DebugInfoInstructionsMax = 0x7fffffff }; @@ -93,7 +93,7 @@ enum DebugInfoDebugInfoFlags { DebugInfoFlagLValueReference = 0x800, DebugInfoFlagRValueReference = 0x1000, DebugInfoFlagIsOptimized = 0x2000, - DebugInfoDebugInfoFlagsMax = 0x7ffffff + DebugInfoDebugInfoFlagsMax = 0x7fffffff }; enum DebugInfoDebugBaseTypeAttributeEncoding { @@ -105,21 +105,21 @@ enum DebugInfoDebugBaseTypeAttributeEncoding { DebugInfoSignedChar = 6, DebugInfoUnsigned = 7, DebugInfoUnsignedChar = 8, - DebugInfoDebugBaseTypeAttributeEncodingMax = 0x7ffffff + DebugInfoDebugBaseTypeAttributeEncodingMax = 0x7fffffff }; enum DebugInfoDebugCompositeType { DebugInfoClass = 0, DebugInfoStructure = 1, DebugInfoUnion = 2, - DebugInfoDebugCompositeTypeMax = 0x7ffffff + DebugInfoDebugCompositeTypeMax = 0x7fffffff }; enum DebugInfoDebugTypeQualifier { DebugInfoConstType = 0, DebugInfoVolatileType = 1, DebugInfoRestrictType = 2, - DebugInfoDebugTypeQualifierMax = 0x7ffffff + DebugInfoDebugTypeQualifierMax = 0x7fffffff }; enum DebugInfoDebugOperation { @@ -132,7 +132,7 @@ enum DebugInfoDebugOperation { DebugInfoXderef = 6, DebugInfoStackValue = 7, DebugInfoConstu = 8, - DebugInfoDebugOperationMax = 0x7ffffff + DebugInfoDebugOperationMax = 0x7fffffff }; diff --git a/include/spirv/unified1/OpenCLDebugInfo100.h b/include/spirv/unified1/OpenCLDebugInfo100.h index 057580e..1149980 100644 --- a/include/spirv/unified1/OpenCLDebugInfo100.h +++ b/include/spirv/unified1/OpenCLDebugInfo100.h @@ -75,7 +75,7 @@ enum OpenCLDebugInfo100Instructions { OpenCLDebugInfo100DebugMacroUndef = 33, OpenCLDebugInfo100DebugImportedEntity = 34, OpenCLDebugInfo100DebugSource = 35, - OpenCLDebugInfo100InstructionsMax = 0x7ffffff + OpenCLDebugInfo100InstructionsMax = 0x7fffffff }; @@ -98,7 +98,7 @@ enum OpenCLDebugInfo100DebugInfoFlags { OpenCLDebugInfo100FlagIsEnumClass = 0x4000, OpenCLDebugInfo100FlagTypePassByValue = 0x8000, OpenCLDebugInfo100FlagTypePassByReference = 0x10000, - OpenCLDebugInfo100DebugInfoFlagsMax = 0x7ffffff + OpenCLDebugInfo100DebugInfoFlagsMax = 0x7fffffff }; enum OpenCLDebugInfo100DebugBaseTypeAttributeEncoding { @@ -110,14 +110,14 @@ enum OpenCLDebugInfo100DebugBaseTypeAttributeEncoding { OpenCLDebugInfo100SignedChar = 5, OpenCLDebugInfo100Unsigned = 6, OpenCLDebugInfo100UnsignedChar = 7, - OpenCLDebugInfo100DebugBaseTypeAttributeEncodingMax = 0x7ffffff + OpenCLDebugInfo100DebugBaseTypeAttributeEncodingMax = 0x7fffffff }; enum OpenCLDebugInfo100DebugCompositeType { OpenCLDebugInfo100Class = 0, OpenCLDebugInfo100Structure = 1, OpenCLDebugInfo100Union = 2, - OpenCLDebugInfo100DebugCompositeTypeMax = 0x7ffffff + OpenCLDebugInfo100DebugCompositeTypeMax = 0x7fffffff }; enum OpenCLDebugInfo100DebugTypeQualifier { @@ -125,7 +125,7 @@ enum OpenCLDebugInfo100DebugTypeQualifier { OpenCLDebugInfo100VolatileType = 1, OpenCLDebugInfo100RestrictType = 2, OpenCLDebugInfo100AtomicType = 3, - OpenCLDebugInfo100DebugTypeQualifierMax = 0x7ffffff + OpenCLDebugInfo100DebugTypeQualifierMax = 0x7fffffff }; enum OpenCLDebugInfo100DebugOperation { @@ -139,13 +139,13 @@ enum OpenCLDebugInfo100DebugOperation { OpenCLDebugInfo100StackValue = 7, OpenCLDebugInfo100Constu = 8, OpenCLDebugInfo100Fragment = 9, - OpenCLDebugInfo100DebugOperationMax = 0x7ffffff + OpenCLDebugInfo100DebugOperationMax = 0x7fffffff }; enum OpenCLDebugInfo100DebugImportedEntity { OpenCLDebugInfo100ImportedModule = 0, OpenCLDebugInfo100ImportedDeclaration = 1, - OpenCLDebugInfo100DebugImportedEntityMax = 0x7ffffff + OpenCLDebugInfo100DebugImportedEntityMax = 0x7fffffff }; diff --git a/tools/buildHeaders/bin/generate_language_headers.py b/tools/buildHeaders/bin/generate_language_headers.py index f43e52d..c56780c 100755 --- a/tools/buildHeaders/bin/generate_language_headers.py +++ b/tools/buildHeaders/bin/generate_language_headers.py @@ -184,7 +184,7 @@ class CLikeGenerator(LangGenerator): return 'enum {}{} {}'.format(prefix, name, '{') def enum_end(self, prefix, enum): - return ' {}{}Max = 0x7ffffff\n{};\n'.format(prefix, enum, '}') + return ' {}{}Max = 0x7fffffff\n{};\n'.format(prefix, enum, '}') def cpp_guard_preamble(self): return '#ifdef __cplusplus\nextern "C" {\n#endif\n' |