vk_rasterizer: Keep viewport depth offset even without native depth clip control. (#2257)

This commit is contained in:
squidbus 2025-01-28 00:12:48 -08:00 committed by GitHub
parent 2837d848ed
commit d2127b38de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1155,10 +1155,7 @@ void Rasterizer::UpdateViewportScissorState(const GraphicsPipeline& pipeline) {
const auto& vp_ctl = regs.viewport_control;
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) {
LOG_ERROR(Render_Vulkan,