From 80438cd0df6f526b2e0df6cd83efa468fcd95af6 Mon Sep 17 00:00:00 2001 From: David Neto Date: Wed, 20 Jan 2021 16:54:17 -0500 Subject: Push FPDenormMode, FPOperationMode to the end This is a cosmetic change for the benefit of generating the SPIR-V spec. It reorders the "FP Denorm Mode" and "FP Operation Mode" so they are the last sections in chapter 3 before the instruction listing. They become 3.37 and 3.38. The idea is to preserve the section numbering for earlier sections. For example, keep 3.31 as the Capability section. --- tools/buildHeaders/jsonToSpirv.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/buildHeaders/jsonToSpirv.h b/tools/buildHeaders/jsonToSpirv.h index 572b872..51aa763 100644 --- a/tools/buildHeaders/jsonToSpirv.h +++ b/tools/buildHeaders/jsonToSpirv.h @@ -41,6 +41,8 @@ std::pair ReadFile(const std::string& path); void jsonToSpirv(const std::string& jsonPath, bool buildingHeaders); // For parameterizing operands. +// The ordering here affects the printing order in the SPIR-V specification. +// Please add new operand classes at the end. enum OperandClass { OperandNone, OperandId, @@ -69,8 +71,6 @@ enum OperandClass { OperandImageOperands, OperandFPFastMath, OperandFPRoundingMode, - OperandFPDenormMode, - OperandFPOperationMode, OperandLinkageType, OperandAccessQualifier, OperandFuncParamAttr, @@ -91,6 +91,8 @@ enum OperandClass { OperandRayQueryCommittedIntersectionType, OperandRayQueryCandidateIntersectionType, OperandFragmentShadingRate, + OperandFPDenormMode, + OperandFPOperationMode, OperandOpcode, -- cgit v1.2.3