Remove the test spv.intrinsicsSpecConst
authorRex Xu <rex.xu@amd.com>
Mon, 22 Nov 2021 12:05:06 +0000 (20:05 +0800)
committerRex Xu <rex.xu@amd.com>
Mon, 22 Nov 2021 13:33:36 +0000 (21:33 +0800)
According to current SPIR-V spec, we couldn't write a valid case that
references OpExecutionModeId and OpDecorateId.

SPIRV/doc.cpp
Test/baseResults/spv.intrinsicsSpecConst.vert.out [deleted file]
Test/spv.intrinsicsSpecConst.vert [deleted file]
gtests/Spv.FromFile.cpp

index dbdf707..9a569e0 100644 (file)
@@ -900,6 +900,12 @@ const char* CapabilityString(int info)
     case CapabilityDeviceGroup: return "DeviceGroup";
     case CapabilityMultiView:   return "MultiView";
 
+    case CapabilityDenormPreserve:           return "DenormPreserve";
+    case CapabilityDenormFlushToZero:        return "DenormFlushToZero";
+    case CapabilitySignedZeroInfNanPreserve: return "SignedZeroInfNanPreserve";
+    case CapabilityRoundingModeRTE:          return "RoundingModeRTE";
+    case CapabilityRoundingModeRTZ:          return "RoundingModeRTZ";
+
     case CapabilityStencilExportEXT: return "StencilExportEXT";
 
     case CapabilityFloat16ImageAMD:       return "Float16ImageAMD";
diff --git a/Test/baseResults/spv.intrinsicsSpecConst.vert.out b/Test/baseResults/spv.intrinsicsSpecConst.vert.out
deleted file mode 100644 (file)
index 11751d6..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-spv.intrinsicsSpecConst.vert
-Validation failed
-// Module Version 10000
-// Generated by (magic number): 8000a
-// Id's are bound by 13
-
-                              Capability Shader
-               1:             ExtInstImport  "GLSL.std.450"
-                              MemoryModel Logical GLSL450
-                              EntryPoint Vertex 4  "main" 10
-                              ExecutionModeId 4 DenormFlushToZero 7
-                              Source GLSL 450
-                              SourceExtension  "GL_EXT_spirv_intrinsics"
-                              Name 4  "main"
-                              Name 7  "targetWidth"
-                              Name 10  "pointSize"
-                              Name 11  "builtIn"
-                              Decorate 7(targetWidth) SpecId 5
-                              Decorate 10(pointSize) Location 0
-                              Decorate 11(builtIn) SpecId 6
-                              DecorateId 10(pointSize) BuiltIn 11(builtIn)
-               2:             TypeVoid
-               3:             TypeFunction 2
-               6:             TypeInt 32 0
-  7(targetWidth):      6(int) SpecConstant 32
-               8:             TypeFloat 32
-               9:             TypePointer Output 8(float)
-   10(pointSize):      9(ptr) Variable Output
-     11(builtIn):      6(int) SpecConstant 1
-              12:    8(float) Constant 1082130432
-         4(main):           2 Function None 3
-               5:             Label
-                              Store 10(pointSize) 12
-                              Return
-                              FunctionEnd
diff --git a/Test/spv.intrinsicsSpecConst.vert b/Test/spv.intrinsicsSpecConst.vert
deleted file mode 100644 (file)
index 19cc5ef..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#version 450 core\r
-\r
-#extension GL_EXT_spirv_intrinsics: enable\r
-\r
-layout(constant_id = 5) const uint targetWidth = 32;\r
-spirv_execution_mode_id(4460/*=DenormFlushToZero*/, targetWidth);\r
-\r
-layout(constant_id = 6) const uint builtIn = 1;\r
-spirv_decorate_id(11/*=BuiltIn*/, builtIn) out float pointSize;\r
-\r
-void main()\r
-{\r
-    pointSize = 4.0;\r
-}\r
index 460c1d2..885707c 100644 (file)
@@ -365,7 +365,6 @@ INSTANTIATE_TEST_SUITE_P(
         "spv.int64.frag",
         "spv.intcoopmat.comp",
         "spv.intOps.vert",
-        "spv.intrinsicsSpecConst.vert",
         "spv.intrinsicsSpirvByReference.vert",
         "spv.intrinsicsSpirvDecorate.frag",
         "spv.intrinsicsSpirvExecutionMode.frag",