rsx: Enable support for extended range in depth buffer

- Software clipping emulation is used here as OpenGL does not have explicit clip control.
- Hardware clip control for vulkan to be enabled after this.
This commit is contained in:
kd-11 2020-08-16 12:48:20 +03:00 committed by kd-11
parent 2e88924cb9
commit dc465df3bc
12 changed files with 290 additions and 222 deletions

View file

@ -167,6 +167,11 @@ void GLGSRender::update_draw_state()
gl_state.depth_bounds(rsx::method_registers.depth_bounds_min(), rsx::method_registers.depth_bounds_max());
}
if (gl::get_driver_caps().NV_depth_buffer_float_supported)
{
gl_state.depth_range(rsx::method_registers.clip_min(), rsx::method_registers.clip_max());
}
gl_state.enable(rsx::method_registers.dither_enabled(), GL_DITHER);
if (gl_state.enable(rsx::method_registers.stencil_test_enabled(), GL_STENCIL_TEST))