1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[dxso] Implement DxsoOpcode::Sgn

This commit is contained in:
Georg Lehmann 2021-08-03 16:16:08 +02:00 committed by Joshie
parent c5ab87f353
commit 5844315853

View File

@ -120,6 +120,7 @@ namespace dxvk {
case DxsoOpcode::Pow:
case DxsoOpcode::Crs:
case DxsoOpcode::Abs:
case DxsoOpcode::Sgn:
case DxsoOpcode::Nrm:
case DxsoOpcode::SinCos:
case DxsoOpcode::Lit:
@ -1930,6 +1931,10 @@ namespace dxvk {
result.id = m_module.opFAbs(typeId,
emitRegisterLoad(src[0], mask).id);
break;
case DxsoOpcode::Sgn:
result.id = m_module.opFSign(typeId,
emitRegisterLoad(src[0], mask).id);
break;
case DxsoOpcode::Nrm: {
// Nrm is 3D...
DxsoRegMask srcMask(true, true, true, false);