diff options
author | Lei Zhang <antiagainst@google.com> | 2015-08-27 14:20:19 -0400 |
---|---|---|
committer | David Neto <dneto@google.com> | 2015-10-26 12:52:01 -0400 |
commit | 5b73214223d6fe6e92cd6fb815d06833f86449c5 (patch) | |
tree | fa8b63903ea34ad64d5da0ce21ea253c5b163c50 /source/ext_inst.cpp | |
parent | afdbd2d30316148e5f1a35e11d70d04f64ef88f5 (diff) | |
download | spirv-tools-5b73214223d6fe6e92cd6fb815d06833f86449c5.tar.gz |
Add GLSL std450 extended instruction 72-80.
Diffstat (limited to 'source/ext_inst.cpp')
-rw-r--r-- | source/ext_inst.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/source/ext_inst.cpp b/source/ext_inst.cpp index 717b3b0b..ca2a1975 100644 --- a/source/ext_inst.cpp +++ b/source/ext_inst.cpp @@ -93,7 +93,19 @@ static const spv_ext_inst_desc_t glslStd450Entries[] = { // clang-format on {GLSL450Inst2(Reflect)}, {GLSL450Inst3(Refract)}, - // TODO: Add remaining GLSL.std.450 instructions + // clang-format off + {"FindILsb", GLSLstd450::GLSLstd450FindILSB, {SPV_OPERAND_TYPE_ID}}, + {"FindSMsb", GLSLstd450::GLSLstd450FindSMSB, {SPV_OPERAND_TYPE_ID}}, + {"FindUMsb", GLSLstd450::GLSLstd450FindUMSB, {SPV_OPERAND_TYPE_ID}}, + // clang-format on + {GLSL450Inst1(InterpolateAtCentroid)}, + {GLSL450Inst2(InterpolateAtSample)}, + {GLSL450Inst2(InterpolateAtOffset)}, + // clang-format off + {"UaddCarry", GLSLstd450::GLSLstd450AddCarry, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID}}, + {"UsubBorrow", GLSLstd450::GLSLstd450SubBorrow, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID}}, + {"UmulExtended", GLSLstd450::GLSLstd450MulExtended, { SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID}}, + // clang-format on }; static const spv_ext_inst_desc_t openclStd12Entries[] = { |