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

[d3d11] Fixed viewport offset

This commit is contained in:
Philip Rebohle 2018-01-05 16:53:12 +01:00
parent 1dfd62a118
commit 356591cc99
2 changed files with 4 additions and 4 deletions

View File

@ -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,
};

View File

@ -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);