summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-10-11 23:22:40 +0200
committerGitHub <noreply@github.com>2022-10-11 23:22:40 +0200
commit133a68ee9b420d30a58fe7ddd8c03065324a4d70 (patch)
treee2a8f89c372b545c6cabbcc53a9d725a6fe2cdb1 /src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
parentMerge pull request #9044 from lat9nq/mingw-gcc-revert (diff)
parentFix stencil func registers, make clip control equivalent to how it was before, but surely wrong. (diff)
downloadyuzu-133a68ee9b420d30a58fe7ddd8c03065324a4d70.tar
yuzu-133a68ee9b420d30a58fe7ddd8c03065324a4d70.tar.gz
yuzu-133a68ee9b420d30a58fe7ddd8c03065324a4d70.tar.bz2
yuzu-133a68ee9b420d30a58fe7ddd8c03065324a4d70.tar.lz
yuzu-133a68ee9b420d30a58fe7ddd8c03065324a4d70.tar.xz
yuzu-133a68ee9b420d30a58fe7ddd8c03065324a4d70.tar.zst
yuzu-133a68ee9b420d30a58fe7ddd8c03065324a4d70.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_vulkan/fixed_pipeline_state.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
index eb7c22fd5..eab1b8f93 100644
--- a/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
+++ b/src/video_core/renderer_vulkan/fixed_pipeline_state.cpp
@@ -63,7 +63,11 @@ void FixedPipelineState::Refresh(Tegra::Engines::Maxwell3D& maxwell3d,
primitive_restart_enable.Assign(regs.primitive_restart.enabled != 0 ? 1 : 0);
depth_bias_enable.Assign(enabled_lut[POLYGON_OFFSET_ENABLE_LUT[topology_index]] != 0 ? 1 : 0);
depth_clamp_disabled.Assign(regs.viewport_clip_control.geometry_clip ==
- Maxwell::ViewportClipControl::GeometryClip::Passthrough);
+ Maxwell::ViewportClipControl::GeometryClip::Passthrough ||
+ regs.viewport_clip_control.geometry_clip ==
+ Maxwell::ViewportClipControl::GeometryClip::FrustumXYZ ||
+ regs.viewport_clip_control.geometry_clip ==
+ Maxwell::ViewportClipControl::GeometryClip::FrustumZ);
ndc_minus_one_to_one.Assign(regs.depth_mode == Maxwell::DepthMode::MinusOneToOne ? 1 : 0);
polygon_mode.Assign(PackPolygonMode(regs.polygon_mode_front));
patch_control_points_minus_one.Assign(regs.patch_vertices - 1);