Add std450 instructions 53-64.
authorDejan Mircevski <deki@google.com>
Thu, 27 Aug 2015 17:57:08 +0000 (13:57 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:52:01 +0000 (12:52 -0400)
source/ext_inst.cpp
test/ExtInstGLSLstd450.cpp

index a971694..717b3b0 100644 (file)
@@ -72,6 +72,18 @@ static const spv_ext_inst_desc_t glslStd450Entries[] = {
     {GLSL450Inst2(Frexp)},
     {GLSL450Inst1(FrexpStruct)},
     {GLSL450Inst2(Ldexp)},
+    {GLSL450Inst1(PackSnorm4x8)},
+    {GLSL450Inst1(PackUnorm4x8)},
+    {GLSL450Inst1(PackSnorm2x16)},
+    {GLSL450Inst1(PackUnorm2x16)},
+    {GLSL450Inst1(PackHalf2x16)},
+    {GLSL450Inst1(PackDouble2x32)},
+    {GLSL450Inst1(UnpackSnorm2x16)},
+    {GLSL450Inst1(UnpackUnorm2x16)},
+    {GLSL450Inst1(UnpackHalf2x16)},
+    {GLSL450Inst1(UnpackSnorm4x8)},
+    {GLSL450Inst1(UnpackUnorm4x8)},
+    {GLSL450Inst1(UnpackDouble2x32)},
     {GLSL450Inst1(Length)},
     {GLSL450Inst2(Distance)},
     {GLSL450Inst2(Cross)},
index bcbcaaa..574ff6c 100644 (file)
@@ -187,7 +187,18 @@ INSTANTIATE_TEST_CASE_P(
         {kF32Type, kF32Const, "%4", "Frexp", "%5 %5", 50, 7, {5, 5}},
         {kF32Type, kF32Const, "%4", "FrexpStruct", "%5", 51, 6, {5}},
         {kF32Type, kF32Const, "%4", "Ldexp", "%5 %5", 52, 7, {5, 5}},
-
+        {kF32Type, kF32Const, "%4", "PackSnorm4x8", "%5", 53, 6, {5}},
+        {kF32Type, kF32Const, "%4", "PackUnorm4x8", "%5", 54, 6, {5}},
+        {kF32Type, kF32Const, "%4", "PackSnorm2x16", "%5", 55, 6, {5}},
+        {kF32Type, kF32Const, "%4", "PackUnorm2x16", "%5", 56, 6, {5}},
+        {kF32Type, kF32Const, "%4", "PackHalf2x16", "%5", 57, 6, {5}},
+        {kF32Type, kF32Const, "%4", "PackDouble2x32", "%5", 58, 6, {5}},
+        {kF32Type, kF32Const, "%4", "UnpackSnorm2x16", "%5", 59, 6, {5}},
+        {kF32Type, kF32Const, "%4", "UnpackUnorm2x16", "%5", 60, 6, {5}},
+        {kF32Type, kF32Const, "%4", "UnpackHalf2x16", "%5", 61, 6, {5}},
+        {kF32Type, kF32Const, "%4", "UnpackSnorm4x8", "%5", 62, 6, {5}},
+        {kF32Type, kF32Const, "%4", "UnpackUnorm4x8", "%5", 63, 6, {5}},
+        {kF32Type, kF32Const, "%4", "UnpackDouble2x32", "%5", 64, 6, {5}},
         {kF32Type, kF32Const, "%4", "Length", "%5", 65, 6, {5}},
         {kF32Type, kF32Const, "%4", "Distance", "%5 %5", 66, 7, {5, 5}},
         {kF32Type, kF32Const, "%4", "Cross", "%5 %5", 67, 7, {5, 5}},