2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00
yuzu/src/video_core
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
..
buffer_cache Address Feedback. 2020-04-22 11:36:27 -04:00
engines maxwell_3d: Fix depth clamping register 2020-04-27 20:50:14 -03:00
renderer_opengl maxwell_3d: Fix depth clamping register 2020-04-27 20:50:14 -03:00
renderer_vulkan maxwell_3d: Fix depth clamping register 2020-04-27 20:50:14 -03:00
shader Merge pull request #3734 from ReinUsesLisp/half-float-mods 2020-04-25 00:41:43 -04:00
texture_cache Address Feedback. 2020-04-22 11:36:27 -04:00
textures General: Resolve warnings related to missing declarations 2020-04-16 23:43:34 -04:00
CMakeLists.txt Merge pull request #3677 from FernandoS27/better-sync 2020-04-22 22:09:38 -04:00
dirty_flags.cpp
dirty_flags.h
dma_pusher.cpp DMAPusher: Propagate multimethod writes into the engines. 2020-04-23 08:52:55 -04:00
dma_pusher.h DMAPusher: Propagate multimethod writes into the engines. 2020-04-23 08:52:55 -04:00
fence_manager.h Address Feedback. 2020-04-22 11:36:27 -04:00
gpu.cpp Clang Format. 2020-04-23 08:52:58 -04:00
gpu.h Clang Format. 2020-04-23 08:52:58 -04:00
gpu_asynch.cpp OpenGL: Implement Fencing backend. 2020-04-22 11:36:10 -04:00
gpu_asynch.h OpenGL: Implement Fencing backend. 2020-04-22 11:36:10 -04:00
gpu_synch.cpp
gpu_synch.h
gpu_thread.cpp Async GPU: Correct flushing behavior to be similar to old async GPU behavior. 2020-04-22 11:36:26 -04:00
gpu_thread.h GPU: Implement Flush Requests for Async mode. 2020-04-22 11:36:17 -04:00
guest_driver.cpp
guest_driver.h
macro_interpreter.cpp
macro_interpreter.h
memory_manager.cpp kernel: memory: Improve implementation of device shared memory. (#3707) 2020-04-23 11:37:12 -04:00
memory_manager.h video_core: memory_manager: Updates for Common::PageTable changes. 2020-04-17 00:59:34 -04:00
morton.cpp
morton.h
query_cache.h Address Feedback. 2020-04-22 11:36:24 -04:00
rasterizer_accelerated.cpp core: memory: Move to Core::Memory namespace. 2020-04-17 00:59:28 -04:00
rasterizer_accelerated.h core: memory: Move to Core::Memory namespace. 2020-04-17 00:59:28 -04:00
rasterizer_cache.cpp
rasterizer_cache.h
rasterizer_interface.h Address Feedback. 2020-04-22 11:36:24 -04:00
renderer_base.cpp
renderer_base.h
sampler_cache.cpp
sampler_cache.h
surface.cpp
surface.h
video_core.cpp
video_core.h