spirv-reader: GLSLStd450RoundEven maps to round
This is from the resolution to https://github.com/gpuweb/gpuweb/issues/1381 Bug: tint:3 Change-Id: If4158d8ff3bffce0e82d2230e5df5650193e7541 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/40180 Auto-Submit: David Neto <dneto@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
parent
c63e1c0791
commit
f4329f57e5
|
@ -407,6 +407,7 @@ std::string GetGlslStd450FuncName(uint32_t ext_opcode) {
|
||||||
case GLSLstd450Reflect:
|
case GLSLstd450Reflect:
|
||||||
return "reflect";
|
return "reflect";
|
||||||
case GLSLstd450Round:
|
case GLSLstd450Round:
|
||||||
|
case GLSLstd450RoundEven:
|
||||||
return "round";
|
return "round";
|
||||||
case GLSLstd450Sin:
|
case GLSLstd450Sin:
|
||||||
return "sin";
|
return "sin";
|
||||||
|
@ -428,7 +429,6 @@ std::string GetGlslStd450FuncName(uint32_t ext_opcode) {
|
||||||
default:
|
default:
|
||||||
// TODO(dneto) - The following are not implemented.
|
// TODO(dneto) - The following are not implemented.
|
||||||
// They are grouped semantically, as in GLSL.std.450.h.
|
// They are grouped semantically, as in GLSL.std.450.h.
|
||||||
case GLSLstd450RoundEven:
|
|
||||||
case GLSLstd450SSign:
|
case GLSLstd450SSign:
|
||||||
|
|
||||||
case GLSLstd450Radians:
|
case GLSLstd450Radians:
|
||||||
|
|
|
@ -688,6 +688,7 @@ INSTANTIATE_TEST_SUITE_P(Samples,
|
||||||
{"Log2", "log2"},
|
{"Log2", "log2"},
|
||||||
{"Normalize", "normalize"},
|
{"Normalize", "normalize"},
|
||||||
{"Round", "round"},
|
{"Round", "round"},
|
||||||
|
{"RoundEven", "round"},
|
||||||
{"Sin", "sin"},
|
{"Sin", "sin"},
|
||||||
{"Sinh", "sinh"},
|
{"Sinh", "sinh"},
|
||||||
{"Sqrt", "sqrt"},
|
{"Sqrt", "sqrt"},
|
||||||
|
|
Loading…
Reference in New Issue