mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +00:00
vk_rasterizer: Keep viewport depth offset even without native depth clip control. (#2257)
This commit is contained in:
parent
2837d848ed
commit
d2127b38de
1 changed files with 1 additions and 4 deletions
|
@ -1155,10 +1155,7 @@ void Rasterizer::UpdateViewportScissorState(const GraphicsPipeline& pipeline) {
|
||||||
|
|
||||||
const auto& vp_ctl = regs.viewport_control;
|
const auto& vp_ctl = regs.viewport_control;
|
||||||
const float reduce_z =
|
const float reduce_z =
|
||||||
instance.IsDepthClipControlSupported() &&
|
regs.clipper_control.clip_space == AmdGpu::Liverpool::ClipSpace::MinusWToW ? 1.0f : 0.0f;
|
||||||
regs.clipper_control.clip_space == AmdGpu::Liverpool::ClipSpace::MinusWToW
|
|
||||||
? 1.0f
|
|
||||||
: 0.0f;
|
|
||||||
|
|
||||||
if (regs.polygon_control.enable_window_offset) {
|
if (regs.polygon_control.enable_window_offset) {
|
||||||
LOG_ERROR(Render_Vulkan,
|
LOG_ERROR(Render_Vulkan,
|
||||||
|
|
Loading…
Add table
Reference in a new issue