From c48fcce97840b94305186e16b9ab876a49d4bd48 Mon Sep 17 00:00:00 2001 From: Dejan Mircevski Date: Thu, 27 Aug 2015 11:23:54 -0400 Subject: [PATCH] Add std450 instructions 49-52. --- source/ext_inst.cpp | 4 ++++ test/ExtInstGLSLstd450.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/source/ext_inst.cpp b/source/ext_inst.cpp index 7d231d6..fcbda85 100644 --- a/source/ext_inst.cpp +++ b/source/ext_inst.cpp @@ -66,6 +66,10 @@ static const spv_ext_inst_desc_t glslStd450Entries[] = { // clang-format off {"Smoothstep", GLSLstd450::GLSLstd450SmoothStep, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID}}, // clang-format on + {GL450InstWithThreeIdParam(Fma)}, + {GL450InstWithTwoIdParam(Frexp)}, + {GL450InstWithOneIdParam(FrexpStruct)}, + {GL450InstWithTwoIdParam(Ldexp)}, // TODO: Add remaining GLSL.std.450 instructions }; diff --git a/test/ExtInstGLSLstd450.cpp b/test/ExtInstGLSLstd450.cpp index fe82436..6938f63 100644 --- a/test/ExtInstGLSLstd450.cpp +++ b/test/ExtInstGLSLstd450.cpp @@ -179,4 +179,8 @@ INSTANTIATE_TEST_CASE_P( {kF32Type, kF32Const, "%4", "Mix", "%5 %5 %5", 46, 8, {5, 5, 5}}, {kF32Type, kF32Const, "%4", "Step", "%5 %5", 47, 7, {5, 5}}, {kF32Type, kF32Const, "%4", "Smoothstep", "%5 %5 %5", 48, 8, {5, 5, 5}}, + {kF32Type, kF32Const, "%4", "Fma", "%5 %5 %5", 49, 8, {5, 5, 5}}, + {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}}, }))); -- 2.7.4