yuzu/src/video_core/renderer_opengl
ReinUsesLisp bb1ed66d99 maxwell_3d: Fix depth clamping register
Using deko3d as reference:
4e47ba0013/source/maxwell/gpu_3d_state.cpp (L42)

We were using bits 3 and 4 to determine depth clamping, but these are
the same both enabled and disabled:

state->depthClampEnable ? 0x101A : 0x181D

The same happens on Nvidia's OpenGL driver, where they do something like
this (default capabilities, GL 4.5 compatibility):

(state & DEPTH_CLAMP) != 0 ? 0x201a : 0x281c

There's always a difference between the first bits in this register, but
bit 11 is consistently disabled on both deko3d/NVN and OpenGL. This
commit changes yuzu's behaviour to use bit 11 to determine depth
clamping.

- Fixes depth issues on Super Mario Odyssey's intro.
2020-04-27 20:50:14 -03:00
..
gl_buffer_cache.cpp OpenGL: Guarantee writes to Buffers. 2020-04-22 11:36:18 -04:00
gl_buffer_cache.h buffer_cache: Return handles instead of pointer to handles 2020-04-16 02:33:34 -03:00
gl_device.cpp gl_device: Mark stage_swizzle as constexpr 2020-04-15 21:59:13 -04:00
gl_device.h gl_device: Detect if ASTC is reported and expose it 2020-04-01 01:14:04 -03:00
gl_fence_manager.cpp GL_Fence_Manager: use GL_TIMEOUT_IGNORED instead of a loop, 2020-04-22 20:34:32 -04:00
gl_fence_manager.h Address Feedback. 2020-04-22 11:36:24 -04:00
gl_framebuffer_cache.cpp gl_state: Remove completely 2020-02-28 17:56:35 -03:00
gl_framebuffer_cache.h gl_state: Remove completely 2020-02-28 17:56:35 -03:00
gl_query_cache.cpp gl_query_cache: Resolve use-after-move in CachedQuery move assignment operator 2020-04-15 22:20:06 -04:00
gl_query_cache.h query_cache: Address feedback 2020-02-14 17:38:27 -03:00
gl_rasterizer.cpp maxwell_3d: Fix depth clamping register 2020-04-27 20:50:14 -03:00
gl_rasterizer.h Fix GCC error. 2020-04-22 11:36:23 -04:00
gl_resource_manager.cpp gl_state: Remove completely 2020-02-28 17:56:35 -03:00
gl_resource_manager.h gl_state: Remove VAO cache and tracking 2020-02-28 16:54:37 -03:00
gl_sampler_cache.cpp Create an "Advanced" tab in the graphics configuration tab and add anisotropic filtering levels. 2020-02-27 21:34:00 -05:00
gl_sampler_cache.h video_core: Add missing override specifiers 2019-07-07 13:38:39 -04:00
gl_shader_cache.cpp ShaderCache/PipelineCache: Cache null shaders. 2020-04-22 11:36:25 -04:00
gl_shader_cache.h ShaderCache/PipelineCache: Cache null shaders. 2020-04-22 11:36:25 -04:00
gl_shader_decompiler.cpp Merge pull request #3714 from lioncash/copies 2020-04-21 20:16:02 -04:00
gl_shader_decompiler.h gl_shader_decompiler: Add identifier to decompiled code 2020-03-09 18:40:53 -03:00
gl_shader_disk_cache.cpp engines/maxwell_3d: Add TFB registers and store them in shader registry 2020-03-09 18:40:53 -03:00
gl_shader_disk_cache.h shader/registry: Store graphics and compute metadata 2020-03-09 18:40:07 -03:00
gl_shader_manager.cpp gl_shader_manager: Fix interaction between graphics and compute 2020-03-11 01:04:52 -03:00
gl_shader_manager.h gl_shader_manager: Fix interaction between graphics and compute 2020-03-11 01:04:52 -03:00
gl_shader_util.cpp gl_shader_cache: Address review commentaries 2019-07-15 17:38:25 -03:00
gl_shader_util.h gl_shader_util: Add parameter to handle retrievable programs 2019-02-06 22:20:57 -03:00
gl_state_tracker.cpp gl_rasterizer: Implement line widths and smooth lines 2020-04-13 01:30:34 -03:00
gl_state_tracker.h gl_rasterizer: Implement line widths and smooth lines 2020-04-13 01:30:34 -03:00
gl_stream_buffer.cpp gl_state: Remove completely 2020-02-28 17:56:35 -03:00
gl_stream_buffer.h video_core: Make ARB_buffer_storage a required extension 2019-06-20 21:36:12 -03:00
gl_texture_cache.cpp gl_texture_cache: Fix layered texture attachment base level 2020-04-13 18:24:56 -03:00
gl_texture_cache.h video_core: Use native ASTC when available 2020-04-01 01:14:04 -03:00
maxwell_to_gl.h video_code: Fix implicit switch fallthrough. 2020-04-17 23:43:35 +02:00
renderer_opengl.cpp CMakeLists: Make -Wreorder a compile-time error 2020-04-15 14:14:41 -04:00
renderer_opengl.h Frontend/GPU: Refactor context management 2020-03-24 21:03:42 -06:00
utils.cpp buffer_cache: Return handles instead of pointer to handles 2020-04-16 02:33:34 -03:00
utils.h buffer_cache: Return handles instead of pointer to handles 2020-04-16 02:33:34 -03:00