diff --git a/src/reader/spirv/function.cc b/src/reader/spirv/function.cc index 89e6c65c11..2a55512dff 100644 --- a/src/reader/spirv/function.cc +++ b/src/reader/spirv/function.cc @@ -407,6 +407,7 @@ std::string GetGlslStd450FuncName(uint32_t ext_opcode) { case GLSLstd450Reflect: return "reflect"; case GLSLstd450Round: + case GLSLstd450RoundEven: return "round"; case GLSLstd450Sin: return "sin"; @@ -428,7 +429,6 @@ std::string GetGlslStd450FuncName(uint32_t ext_opcode) { default: // TODO(dneto) - The following are not implemented. // They are grouped semantically, as in GLSL.std.450.h. - case GLSLstd450RoundEven: case GLSLstd450SSign: case GLSLstd450Radians: diff --git a/src/reader/spirv/function_glsl_std_450_test.cc b/src/reader/spirv/function_glsl_std_450_test.cc index 650d399e9c..b876e9a8fb 100644 --- a/src/reader/spirv/function_glsl_std_450_test.cc +++ b/src/reader/spirv/function_glsl_std_450_test.cc @@ -688,6 +688,7 @@ INSTANTIATE_TEST_SUITE_P(Samples, {"Log2", "log2"}, {"Normalize", "normalize"}, {"Round", "round"}, + {"RoundEven", "round"}, {"Sin", "sin"}, {"Sinh", "sinh"}, {"Sqrt", "sqrt"},