summaryrefslogtreecommitdiffstats
path: root/src/video_core/macro (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Macro HLE: Add DrawIndirectByteCountFernando Sahmkow2023-09-231-5/+30
|
* Query Cachge: Fully rework Vulkan's query cacheFernando Sahmkow2023-09-231-0/+24
|
* Mark decompiled macros as decompiled on dump, dump shaders after translationKelebek12023-08-261-8/+16
|
* video_core/macro: Make use of Common::HashValueMorph2023-03-261-3/+3
|
* MacroHLE: eliminate 2 rushed macros.Fernando Sahmkow2023-01-061-42/+0
|
* yuzu-ui: Add setting for disabling macro HLEFernando Sahmkow2023-01-041-4/+5
|
* Video_core: Address feedbackFernando Sahmkow2023-01-042-109/+249
|
* video_core: fix buildLiam2023-01-011-1/+2
|
* MacroHLE: Final cleanup and fixes.Fernando Sahmkow2023-01-011-70/+28
|
* DMAPusher: Improve collection of non executing methodsFernando Sahmkow2023-01-011-0/+3
|
* Revert Buffer cache changes and setup additional macros.Fernando Sahmkow2023-01-012-7/+120
|
* MacroHLE: Add HLE replacement for base vertex and base instance.Fernando Sahmkow2023-01-011-59/+56
|
* MacroHLE: Add Index Buffer size estimation.Fernando Sahmkow2023-01-011-7/+13
|
* MacroHLE: Refactor MacroHLE system.Fernando Sahmkow2023-01-014-113/+345
|
* MacroHLE: Implement DrawIndexedIndirect & DrawArraysIndirect.Fernando Sahmkow2023-01-011-16/+29
|
* MacroHLE: Add MultidrawIndirect HLE Macro.Fernando Sahmkow2023-01-011-26/+27
|
* video_core: Implement maxwell3d draw manager and split draw logicFeng Chen2022-12-081-52/+17
|
* Merge pull request #9252 from liamwhite/radv-superioritybunnei2022-11-191-1/+15
|\ | | | | maxwell3d: HLE multi-layer clear macro
| * maxwell3d: full HLE for multi-layer clearsLiam2022-11-171-11/+5
| |
| * maxwell3d: HLE multi-layer clear macroLiam2022-11-171-1/+21
| |
* | Add break for default casesKyle Kienapfel2022-11-142-0/+3
|/ | | | | | | | | | | Visual Studio has an option to search all files in a solution, so I did a search in there for "default:" looking for any missing break statements. I've left out default statements that return something, and that throw something, even if via ThrowInvalidType. UNREACHABLE leads towards throw R_THROW macro leads towards a return
* Initial ARM64 supportLiam2022-11-091-0/+3
|
* video_coare: Reimplementing the maxwell drawing trigger mechanismFengChen2022-10-213-32/+19
|
* Update 3D regsKelebek12022-10-071-24/+24
|
* VideoCore: Add option to dump the macros.Fernando Sahmkow2022-10-061-0/+1
|
* Merge pull request #9005 from liamwhite/micro-fitbunnei2022-10-051-11/+5
|\ | | | | macro_jit_x64: cancel exit for taken branch
| * macro_jit_x64: cancel exit for taken branchLiam2022-10-011-11/+5
| |
* | Merge pull request #9010 from liamwhite/buttwisebunnei2022-10-051-37/+9
|\ \ | | | | | | macro_jit_x64: fix miscompilation of bit extraction operations
| * | macro_jit_x64: fix miscompilation of bit extraction operationsLiam2022-10-021-37/+9
| |/
* / MacroHLE: Add MultidrawIndirect HLE Macro.Fernando Sahmkow2022-10-021-1/+62
|/
* general: fix compilation on MinGW GCC 12Liam2022-06-141-1/+1
|
* common: Change semantics of UNREACHABLE to unconditionally crashLiam2022-06-142-2/+1
|
* video_core/macro: clear code on upload address assignmentLiam2022-05-102-0/+8
|
* VideoCore: Add option to dump the macros.Fernando Sahmkow2022-05-091-0/+27
| | | | Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
* video_core/macro_jit_x64: warn on invalid parameter accessLiam2022-05-081-3/+21
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-238-24/+16
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* common/xbyak_api: Make BuildRegSet() constexprLioncash2022-01-261-1/+1
| | | | | This allows us to eliminate any static constructors that would have been emitted due to the function not being constexpr.
* video_core/macro: Add missing <cstring> headerLioncash2022-01-251-2/+3
| | | | Necessary since memcpy is used.
* video_core/macro_interpreter: Move impl class to the cpp fileLioncash2022-01-252-84/+86
| | | | | Keeps the implementation hidden from the intended API and lessens the header dependencies on the interpreter's header.
* video_core/macro_hle: Return unique_ptr directly from GetHLEProgram()Lioncash2022-01-253-7/+7
| | | | Same behavior, but less code and header dependencies.
* video_core/macro: Remove unused parameter from Execute()Lioncash2022-01-252-3/+2
| | | | Simplifies the function interface.
* video_core/macro_jit_x64: Remove unused impl class memberLioncash2022-01-251-1/+0
| | | | Reduces the size of the impl class a tiny bit.
* video_core/macro_jit_x64: Decouple PersistentCallerSavedRegs() from implLioncash2022-01-251-5/+4
| | | | This doesn't depend on class state and can just be a regular function.
* video_core/macro_jit_x64: Move impl class into cpp fileLioncash2022-01-252-87/+86
| | | | | | | Keeps the implementation internalized and also reduces API-facing header dependencies. Notably, this fully internalizes all of the xbyak externals.
* video_core/macro_hle: Move impl class into cpp fileLioncash2022-01-252-27/+19
| | | | | | | | Given it's intended to be an internal implementation class, we can move it into the cpp file to ensure that. This also lets us move some header dependencies into the cpp file as well.
* xbyak: Update include pathMerry2021-08-151-1/+1
|
* common: Move settings to common from core.bunnei2021-04-151-1/+1
| | | | - Removes a dependency on core and input_common from common.
* video_core: Remove unnecessary enum class casting in logging messagesLioncash2020-12-072-7/+5
| | | | | | | fmt now automatically prints the numeric value of an enum class member by default, so we don't need to use casts any more. Reduces the line noise a bit.
* video_core: Resolve more variable shadowing scenariosLioncash2020-12-046-29/+29
| | | | | | Resolves variable shadowing scenarios up to the end of the OpenGL code to make it nicer to review. The rest will be resolved in a following commit.
* General: Make use of std::nullopt where applicableLioncash2020-09-221-1/+1
| | | | | | | | Allows some implementations to avoid completely zeroing out the internal buffer of the optional, and instead only set the validity byte within the structure. This also makes it consistent how we return empty optionals.
* externals: Update Xbyak to 5.96Lioncash2020-08-301-5/+5
| | | | | | | | | I made a request on the Xbyak issue tracker to allow some constructors to be constexpr in order to avoid static constructors from needing to execute for some of our register constants. This request was implemented, so this updates Xbyak so that we can make use of it.
* Merge pull request #4542 from ReinUsesLisp/gpu-init-basebunnei2020-08-251-3/+3
|\ | | | | video_core: Initialize renderer with a GPU
| * video_core: Initialize renderer with a GPUReinUsesLisp2020-08-221-3/+3
| | | | | | | | | | Add an extra step in GPU initialization to be able to initialize render backends with a valid GPU instance.
* | macro-interpreter: Resolve -Wself-assign-field warningLioncash2020-08-141-1/+0
|/ | | | | | This was assigning the field to itself, which is a no-op. The size doesn't change between its initial assignment and this one, so this is a safe change to make.
* video_core: Remove unused variablesLioncash2020-07-211-1/+0
| | | | Silences several compiler warnings about unused variables.
* Merge pull request #4369 from lioncash/hle-macroLC2020-07-171-10/+7
|\ | | | | macro_hle: Remove unnecessary std::make_pair calls
| * macro_hle: Remove unnecessary static keywordsLioncash2020-07-171-7/+4
| | | | | | | | | | These functions are already in an anonymous namespace which makes the functions internally linked.
| * macro_hle: Remove unnecessary std::make_pair callsLioncash2020-07-171-3/+3
| | | | | | | | | | | | | | The purpose of make_pair is generally to deduce the types within the pair without explicitly specifying the types, so these usages were generally unnecessary, particularly when the type is enforced by the array declaration.
* | Merge pull request #4368 from lioncash/macroDavid2020-07-171-1/+2
|\ \ | | | | | | macro: Resolve missing parameter in doxygen comment
| * | macro: Resolve missing parameter in doxygen commentLioncash2020-07-171-1/+2
| |/ | | | | | | Resolves a -Wdocumentation warning.
* / macro_hle: Simplify shift expression in HLE_771BB18C62444DA0()Lioncash2020-07-171-2/+1
|/ | | | | | | | Given the expression involves a 32-bit value, this simplifies down to just: 0x3ffffff. This is likely a remnant from testing that was never cleaned up. Resolves a -Wshift-overflow warning.
* macro: Add support for "middle methods" on the code cache (#4112)David2020-06-301-8/+27
| | | Macro code is just uploaded sequentially from a starting address, however that does not mean the entry point for the macro is at that address. This PR adds preliminary support for executing macros in the middle of our cached code.
* addressed issuesDavid Marcec2020-06-242-4/+7
|
* clear mme draw modeDavid Marcec2020-06-241-0/+3
| | | | We already draw, so we can clear it
* Addressed issuesDavid Marcec2020-06-244-13/+13
|
* Fix constbuffer for 0217920100488FF7David Marcec2020-06-241-6/+6
|
* Macro HLE supportDavid Marcec2020-06-246-9/+202
|
* Merge pull request #4122 from lioncash/hidebunnei2020-06-221-2/+2
|\ | | | | video_core: Eliminate some variable shadowing
| * macro_jit_x64: Eliminate variable shadowing in Compile_ProcessResult()Lioncash2020-06-201-2/+2
| | | | | | | | | | | | | | We can reduce the capture scope so that it's not possible for both "reg" variables to clash with one another. While we're at it, we can prevent unnecessary copies while we're at it.
* | macro_jit_x64: Use ecx for shift registerMerryMage2020-06-201-2/+2
| | | | | | | | shl/shr only accept cl as their second argument
* | Merge pull request #4125 from lioncash/macro-shiftmerry2020-06-201-6/+7
|\ \ | | | | | | macro_jit_x64: Amend readability of Compile_ExtractShiftLeftRegister()
| * | macro_jit_x64: Correct readability of Compile_ExtractShiftLeftImmediate()Lioncash2020-06-201-3/+3
| | | | | | | | | | | | Previously dst wasn't being used.
| * | macro_jit_x64: Correct readability of Compile_ExtractShiftLeftRegister()Lioncash2020-06-201-3/+4
| |/ | | | | | | Previously dst wasn't being used.
* | Merge pull request #4123 from lioncash/unused-varmerry2020-06-201-2/+1
|\ \ | | | | | | macro_jit_x64: Remove unused variable
| * | macro_jit_x64: Remove unused variableLioncash2020-06-201-2/+1
| |/ | | | | | | | | Removes a completely unused label and marks another variable as unused, given it seems like it has potential uses in the future.
* | Merge pull request #4087 from MerryMage/macrojit-inline-Readbunnei2020-06-202-14/+22
|\ \ | |/ |/| macro_jit_x64: Inline Engines::Maxwell3D::GetRegisterValue
| * macro_jit_x64: Remove unused function ReadMerryMage2020-06-191-8/+4
| |
| * macro_jit_x64: Inline Engines::Maxwell3D::GetRegisterValueMerryMage2020-06-172-6/+18
| |
* | Merge pull request #4090 from MerryMage/macrojit-bugsbunnei2020-06-191-2/+5
|\ \ | |/ |/| macro_jit_x64: Optimization correctness
| * macro_jit_x64: Optimization implicitly assumes same destinationMerryMage2020-06-171-1/+2
| |
| * macro_jit_x64: Should not skip zero registers for certain ALU opsMerryMage2020-06-171-1/+3
| | | | | | | | The code generated for these ALU ops assume src_a and src_b are always valid.
* | Merge pull request #4086 from MerryMage/abibunnei2020-06-171-6/+6
|\ \ | |/ |/| xbyak_abi: Cleanup
| * xbyak_abi: Remove *GPS variants of stack manipulation functionsMerryMage2020-06-151-6/+6
| |
* | Merge pull request #4089 from MerryMage/macrojit-cleanup-1bunnei2020-06-172-51/+18
|\ \ | | | | | | macro_jit_x64: Cleanup
| * | macro_jit_x64: Remove NEXT_PARAMETERMerryMage2020-06-151-5/+2
| | | | | | | | | | | | Not required, as PARAMETERS can just be incremented directly.
| * | macro_jit_x64: Remove unused function Compile_WriteCarryMerryMage2020-06-152-9/+0
| | |
| * | macro_jit_x64: Select better registersMerryMage2020-06-151-8/+8
| | | | | | | | | | | | | | | | | | | | | All registers are now callee-save registers. RBX and RBP selected for STATE and RESULT because these are most commonly accessed; this is to avoid the REX prefix. RBP not used for STATE because there are some SIB restrictions, RBX emits smaller code.
| * | macro_jit_x64: Remove REGISTERSMerryMage2020-06-151-7/+3
| | | | | | | | | | | | Unnecessary since this is just an offset from STATE.
| * | macro_jit_x64: Remove JITState::parametersMerryMage2020-06-152-6/+3
| | | | | | | | | | | | This can be passed in as an argument instead.
| * | macro_jit_x64: Remove METHOD_ADDRESS_64MerryMage2020-06-151-2/+1
| | | | | | | | | | | | Unnecessary variable.
| * | macro_jit_x64: Remove RESULT_64MerryMage2020-06-152-16/+3
| |/ | | | | | | This Reg64 codepath has the exact same behaviour as the Reg32 one.
* / video_core/macro_jit_x64: Remove initializer in member variableReinUsesLisp2020-06-151-2/+2
|/ | | | | Fix build time issues on gcc. Confirmed through asan that avoiding this initialization is safe.
* Default init labels and use initializer list for macro engineDavid Marcec2020-06-041-1/+1
|
* Mark parameters as constDavid Marcec2020-06-036-8/+9
|
* Pass by reference instead of copying parametersDavid Marcec2020-06-022-2/+2
|
* Favor switch case over jump tableDavid Marcec2020-05-302-18/+26
| | | | Easier to read and will emit a jump table automatically.
* Implement macro JITDavid Marcec2020-05-306-0/+1294