aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode
AgeCommit message (Collapse)Author
2020-04-07Merge pull request #3489 from namkazt/patch-2Rodrigo Locatti
shader: implement SULD.D bits32/64
2020-04-07address nit.Nguyen Dac Nam
2020-04-07Apply suggestions from code reviewNguyen Dac Nam
Co-Authored-By: Rodrigo Locatti <reinuseslisp@airmail.cc>
2020-04-06shader_decode: SULD.D using std::pair instead of out parameternamkazy
2020-04-06shader_decode: SULD.D avoid duplicate code block.namkazy
2020-04-06shader_decode: SULD.D fix conversion error.namkazy
2020-04-06shader_decode: SULD.D implement bits64 and reverse shader ir init method to ↵namkazy
removed shader stage.
2020-04-05Merge pull request #3592 from ReinUsesLisp/ipaFernando Sahmkow
shader_decompiler: Remove FragCoord.w hack and change IPA implementation
2020-04-05silent warning (conversion error)namkazy
2020-04-05shader_decode: SULD.D -> SINT actually same as UNORM.namkazy
2020-04-05shader_decode: SULD.D fix decode SNORM componentnamkazy
2020-04-05clang-formatnamkazy
2020-04-05shader_decode: get sampler descriptor from registry.namkazy
2020-04-05tweaking.namkazy
2020-04-05cleanup unuse paramsnamkazy
2020-04-05cleanup debug code.namkazy
2020-04-05reimplement get component type, uncomment mistaken codenamkazy
2020-04-05remove disable optimizenamkazy
2020-04-05[wip] reimplement SULD.Dnamkazy
2020-04-05clang-fixNguyen Dac Nam
2020-04-05shader: image - import PredConditionNguyen Dac Nam
2020-04-05shader: SULD.D bits32 implement more complexer method.Nguyen Dac Nam
2020-04-05shader: SULD.D import StoreTypeNguyen Dac Nam
2020-04-05shader: implement SULD.D bits32Nguyen Dac Nam
2020-04-02shader/memory: Silence no return value warningReinUsesLisp
Silences a warning about control paths not all returning a value.
2020-04-01shader_decompiler: Remove FragCoord.w hack and change IPA implementationReinUsesLisp
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-03-31Merge pull request #3561 from ReinUsesLisp/f2f-conversionFernando Sahmkow
shader/conversion: Fix F2F rounding operations with different sizes
2020-03-31Merge pull request #3577 from ReinUsesLisp/leaFernando Sahmkow
shader/lea: Fix LEA implementation
2020-03-31clang-formatNguyen Dac Nam
2020-03-31shader_decode: fix by suggestionNguyen Dac Nam
2020-03-30clang-formatnamkazy
2020-03-30shader_decode: ATOM/ATOMS: add function to avoid code repetitionnamkazy
2020-03-30shader_decode: implement ATOM operation for S32 and U32Nguyen Dac Nam
2020-03-30clang-formatnamkazy
2020-03-30shader_decode: implement ATOMS instr partial.Nguyen Dac Nam
2020-03-28shader/lea: Simplify generated LEA codeReinUsesLisp
2020-03-27shader/lea: Fix op_a and op_b usagesReinUsesLisp
They were swapped.
2020-03-27shader/lea: Remove const and use move when possibleReinUsesLisp
2020-03-26shader/conversion: Fix F2F rounding operations with different sizesReinUsesLisp
Rounding operations only matter when the conversion size of source and destination is the same, i.e. .F16.F16, .F32.F32 and .F64.F64. When there is a mismatch (.F16.F32), these bits are used for IEEE rounding, we don't emulate this because GLSL and SPIR-V don't support configuring it per operation.
2020-03-23xmad: fix clang build errormakigumo
2020-03-19Merge pull request #3505 from namkazt/patch-8bunnei
shader_decode: implement XMAD mode CSfu
2020-03-15Merge pull request #3502 from namkazt/patch-3Rodrigo Locatti
shader_decode: Reimplement BFE instructions
2020-03-14clang-formatNguyen Dac Nam
2020-03-14nitNguyen Dac Nam
2020-03-13nit & remove some optional paramNguyen Dac Nam
2020-03-13shader_decode: implement XMAD mode CSfuNguyen Dac Nam
2020-03-13clang-formatNguyen Dac Nam
2020-03-13Apply suggestions from code reviewNguyen Dac Nam
Co-Authored-By: Mat M. <mathew1800@gmail.com>
2020-03-13shader_decode: BFE add ref of reverse parallel method.Nguyen Dac Nam
2020-03-13shader_decode: implement BREV on BFENguyen Dac Nam
Implement reverse parallel follow: https://graphics.stanford.edu/~seander/bithacks.html#ReverseParallel