suyu/src/video_core/engines
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
..
const_buffer_engine_interface.h engines/const_buffer_engine_interface: Store image format type 2020-03-27 00:36:22 -03:00
const_buffer_info.h video_core/engines: Move ConstBufferInfo out of Maxwell3D 2019-06-07 19:47:15 -03:00
engine_upload.cpp decoders: correct block calculation 2019-06-20 21:38:34 -03:00
engine_upload.h decoders: correct block calculation 2019-06-20 21:38:34 -03:00
fermi_2d.cpp DMAPusher: Propagate multimethod writes into the engines. 2020-04-23 08:52:55 -04:00
fermi_2d.h DMAPusher: Propagate multimethod writes into the engines. 2020-04-23 08:52:55 -04:00
kepler_compute.cpp Clang Format. 2020-04-23 08:52:58 -04:00
kepler_compute.h DMAPusher: Propagate multimethod writes into the engines. 2020-04-23 08:52:55 -04:00
kepler_memory.cpp Clang Format. 2020-04-23 08:52:58 -04:00
kepler_memory.h DMAPusher: Propagate multimethod writes into the engines. 2020-04-23 08:52:55 -04:00
maxwell_3d.cpp Maxwell3D: Process Macros on MultiMethod. 2020-04-23 08:52:56 -04:00
maxwell_3d.h maxwell_3d: Fix depth clamping register 2020-04-27 20:50:14 -03:00
maxwell_dma.cpp Clang Format. 2020-04-23 08:52:58 -04:00
maxwell_dma.h DMAPusher: Propagate multimethod writes into the engines. 2020-04-23 08:52:55 -04:00
shader_bytecode.h Merge pull request #3734 from ReinUsesLisp/half-float-mods 2020-04-25 00:41:43 -04:00
shader_header.h shader_decompiler: Remove FragCoord.w hack and change IPA implementation 2020-04-01 21:48:55 -03:00
shader_type.h gl_shader_cache: Remove dynamic BaseBinding specialization 2019-11-22 21:28:49 -03:00