diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index ab5cb8bb..b3f330d1 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -1932,7 +1932,7 @@ namespace dxvk { const D3D11_VIEWPORT& vp = m_state.rs.viewports.at(i); viewports.at(i) = VkViewport { - vp.TopLeftX, vp.Height - vp.TopLeftY, + vp.TopLeftX, vp.Height + vp.TopLeftY, vp.Width, -vp.Height, vp.MinDepth, vp.MaxDepth, }; diff --git a/src/spirv/spirv_module.cpp b/src/spirv/spirv_module.cpp index ca3ca2b7..16eacd34 100644 --- a/src/spirv/spirv_module.cpp +++ b/src/spirv/spirv_module.cpp @@ -1517,7 +1517,7 @@ namespace dxvk { m_code.putWord(resultType); m_code.putWord(resultId); m_code.putWord(m_instExtGlsl450); - m_code.putWord(spv::GLSLstd450NMax); + m_code.putWord(spv::GLSLstd450FMax); m_code.putWord(a); m_code.putWord(b); return resultId; @@ -1534,7 +1534,7 @@ namespace dxvk { m_code.putWord(resultType); m_code.putWord(resultId); m_code.putWord(m_instExtGlsl450); - m_code.putWord(spv::GLSLstd450NMin); + m_code.putWord(spv::GLSLstd450FMin); m_code.putWord(a); m_code.putWord(b); return resultId; @@ -1620,7 +1620,7 @@ namespace dxvk { m_code.putWord(resultType); m_code.putWord(resultId); m_code.putWord(m_instExtGlsl450); - m_code.putWord(spv::GLSLstd450NClamp); + m_code.putWord(spv::GLSLstd450FClamp); m_code.putWord(x); m_code.putWord(minVal); m_code.putWord(maxVal);