1
0
Fork 0
forked from suyu/suyu
suyu/src/video_core/engines
ReinUsesLisp 2339fe199f shader_decompiler: Remove FragCoord.w hack and change IPA implementation
Credits go to gdkchan and Ryujinx. The pull request used for this can
be found here: https://github.com/Ryujinx/Ryujinx/pull/1082

yuzu was already using the header for interpolation, but it was missing
the FragCoord.w multiplication described in the linked pull request.
This commit finally removes the FragCoord.w == 1.0f hack from the shader
decompiler.

While we are at it, this commit renames some enumerations to match
Nvidia's documentation (linked below) and fixes component declaration
order in the shader program header (z and w were swapped).

https://github.com/NVIDIA/open-gpu-doc/blob/master/Shader-Program-Header/Shader-Program-Header.html
2020-04-01 21:48:55 -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 Fermi2D: Use a different formula for delimiting blit areas. 2019-10-17 18:21:01 -04:00
fermi_2d.h common_func: Use std::array for INSERT_PADDING_* macros. 2019-11-03 22:22:41 -05:00
kepler_compute.cpp kepler_compute: Remove unused variables 2020-03-18 20:03:19 -03:00
kepler_compute.h Shader_IR: Allow constant access of guest driver. 2020-01-24 16:43:30 -04:00
kepler_memory.cpp video_core: Reintroduce dirty flags infrastructure 2020-02-28 17:56:41 -03:00
kepler_memory.h common_func: Use std::array for INSERT_PADDING_* macros. 2019-11-03 22:22:41 -05:00
maxwell_3d.cpp apply replay logic to all writes. remove replay from MacroInterpreter::Send (@fincs) 2020-03-22 22:25:44 +07:00
maxwell_3d.h maxwell_3d: change declaration order 2020-03-22 13:41:16 +07:00
maxwell_dma.cpp video_core: Reintroduce dirty flags infrastructure 2020-02-28 17:56:41 -03:00
maxwell_dma.h common_func: Use std::array for INSERT_PADDING_* macros. 2019-11-03 22:22:41 -05:00
shader_bytecode.h shader_decode: merge GlobalAtomicOp to AtomicOp 2020-03-30 18:47:00 +07: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