Commit c212bbd8 by Chris Forbes

Add support for GLSLstd450Floor ExtInst

Bug: b/127804400 Test: dEQP-VK.glsl.operator.common_functions.floor.* Change-Id: Iaefeef8f006673e55d4f85184d7782ac0aafb314 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26572 Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com>
parent f955e638
......@@ -1708,6 +1708,15 @@ namespace sw
dst.emplace(2, lhs[0] * rhs[1] - rhs[0] * lhs[1]);
break;
}
case GLSLstd450Floor:
{
auto src = GenericValue(this, routine, insn.word(5));
for (auto i = 0u; i < type.sizeInComponents; i++)
{
dst.emplace(i, Floor(src[i]));
}
break;
}
default:
UNIMPLEMENTED("Unhandled ExtInst %d", extInstIndex);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment