Permalink
Browse files

Vulkan: Minor validation error fix

  • Loading branch information...
hrydgard committed Nov 13, 2017
1 parent d97ee99 commit 6e20721587e15c50b582a3cad6793629145df2a3
Showing with 3 additions and 1 deletion.
  1. +3 −1 GPU/Vulkan/StencilBufferVulkan.cpp
@@ -170,7 +170,9 @@ bool FramebufferManagerVulkan::NotifyStencilUpload(u32 addr, int size, bool skip
value = i;
}
renderManager->SetStencilParams(mask, 0xFF, 0xFF);
renderManager->PushConstants(vulkan2D_->GetPipelineLayout(), VK_SHADER_STAGE_FRAGMENT_BIT, 0, 4, &value);
// Need to specify both VERTEX and FRAGMENT bits here since that's what we set up in the pipeline layout, and we need
// that for the post shaders. There's probably not really a cost to this.
renderManager->PushConstants(vulkan2D_->GetPipelineLayout(), VK_SHADER_STAGE_VERTEX_BIT|VK_SHADER_STAGE_FRAGMENT_BIT, 0, 4, &value);
renderManager->Draw(vulkan2D_->GetPipelineLayout(), descSet, 0, nullptr, VK_NULL_HANDLE, 0, 3); // full screen triangle
}

0 comments on commit 6e20721

Please sign in to comment.