[dxvk] Fix fb resolve offset

gl_FragCoord is read in the fs shader, so we need to take into account the dstOffset here!

This was causing the offset to be doubled rather than eliminated
for the resolves for refractive water in Serious Sam 2
as srcOffset == dstOffset.

Fixes #1637
This commit is contained in:
Joshua Ashton 2020-05-22 04:17:44 +01:00 committed by Philip Rebohle
parent 8e7df31878
commit 9a40c1e6ae
1 changed files with 2 additions and 2 deletions

View File

@ -3352,8 +3352,8 @@ namespace dxvk {
// Perform the actual resolve operation
VkOffset2D srcOffset = {
region.srcOffset.x,
region.srcOffset.y };
region.srcOffset.x - region.dstOffset.x,
region.srcOffset.y - region.dstOffset.y };
m_cmd->cmdBeginRenderPass(&info, VK_SUBPASS_CONTENTS_INLINE);
m_cmd->cmdBindPipeline(VK_PIPELINE_BIND_POINT_GRAPHICS, pipeInfo.pipeHandle);