mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 11:35:45 +00:00
vulkan: Only reduce viewport minDepth if using depth clip control. (#969)
This commit is contained in:
parent
a984d44fd3
commit
f657ab3cc6
1 changed files with 4 additions and 1 deletions
|
@ -349,7 +349,10 @@ void Rasterizer::UpdateViewportScissorState() {
|
|||
boost::container::static_vector<vk::Rect2D, Liverpool::NumViewports> scissors;
|
||||
|
||||
const float reduce_z =
|
||||
regs.clipper_control.clip_space == AmdGpu::Liverpool::ClipSpace::MinusWToW ? 1.0f : 0.0f;
|
||||
instance.IsDepthClipControlSupported() &&
|
||||
regs.clipper_control.clip_space == AmdGpu::Liverpool::ClipSpace::MinusWToW
|
||||
? 1.0f
|
||||
: 0.0f;
|
||||
for (u32 i = 0; i < Liverpool::NumViewports; i++) {
|
||||
const auto& vp = regs.viewports[i];
|
||||
const auto& vp_d = regs.viewport_depths[i];
|
||||
|
|
Loading…
Add table
Reference in a new issue