aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/macro/macro_jit_x64.cpp
AgeCommit message (Collapse)Author
2022-11-13Add break for default casesKyle Kienapfel
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
2022-10-21video_coare: Reimplementing the maxwell drawing trigger mechanismFengChen
2022-10-04Merge pull request #9005 from liamwhite/micro-fitbunnei
macro_jit_x64: cancel exit for taken branch
2022-10-01macro_jit_x64: fix miscompilation of bit extraction operationsLiam
2022-10-01macro_jit_x64: cancel exit for taken branchLiam
2022-06-13general: fix compilation on MinGW GCC 12Liam
2022-05-08video_core/macro_jit_x64: warn on invalid parameter accessLiam
2022-04-23general: Convert source file copyright comments over to SPDXMorph
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.
2022-01-26common/xbyak_api: Make BuildRegSet() constexprLioncash
This allows us to eliminate any static constructors that would have been emitted due to the function not being constexpr.
2022-01-25video_core/macro_jit_x64: Remove unused impl class memberLioncash
Reduces the size of the impl class a tiny bit.
2022-01-25video_core/macro_jit_x64: Decouple PersistentCallerSavedRegs() from implLioncash
This doesn't depend on class state and can just be a regular function.
2022-01-25video_core/macro_jit_x64: Move impl class into cpp fileLioncash
Keeps the implementation internalized and also reduces API-facing header dependencies. Notably, this fully internalizes all of the xbyak externals.
2020-12-07video_core: Remove unnecessary enum class casting in logging messagesLioncash
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.
2020-12-04video_core: Resolve more variable shadowing scenariosLioncash
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.
2020-08-30externals: Update Xbyak to 5.96Lioncash
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.
2020-07-21video_core: Remove unused variablesLioncash
Silences several compiler warnings about unused variables.
2020-06-24Macro HLE supportDavid Marcec
2020-06-21Merge pull request #4122 from lioncash/hidebunnei
video_core: Eliminate some variable shadowing
2020-06-20macro_jit_x64: Use ecx for shift registerMerryMage
shl/shr only accept cl as their second argument
2020-06-20Merge pull request #4125 from lioncash/macro-shiftmerry
macro_jit_x64: Amend readability of Compile_ExtractShiftLeftRegister()
2020-06-20Merge pull request #4123 from lioncash/unused-varmerry
macro_jit_x64: Remove unused variable
2020-06-19macro_jit_x64: Correct readability of Compile_ExtractShiftLeftImmediate()Lioncash
Previously dst wasn't being used.
2020-06-19macro_jit_x64: Correct readability of Compile_ExtractShiftLeftRegister()Lioncash
Previously dst wasn't being used.
2020-06-19macro_jit_x64: Remove unused variableLioncash
Removes a completely unused label and marks another variable as unused, given it seems like it has potential uses in the future.
2020-06-19macro_jit_x64: Eliminate variable shadowing in Compile_ProcessResult()Lioncash
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.
2020-06-19Merge pull request #4087 from MerryMage/macrojit-inline-Readbunnei
macro_jit_x64: Inline Engines::Maxwell3D::GetRegisterValue
2020-06-19macro_jit_x64: Remove unused function ReadMerryMage
2020-06-18Merge pull request #4090 from MerryMage/macrojit-bugsbunnei
macro_jit_x64: Optimization correctness
2020-06-17macro_jit_x64: Inline Engines::Maxwell3D::GetRegisterValueMerryMage
2020-06-17Merge pull request #4086 from MerryMage/abibunnei
xbyak_abi: Cleanup
2020-06-17macro_jit_x64: Optimization implicitly assumes same destinationMerryMage
2020-06-17macro_jit_x64: Should not skip zero registers for certain ALU opsMerryMage
The code generated for these ALU ops assume src_a and src_b are always valid.
2020-06-15macro_jit_x64: Remove NEXT_PARAMETERMerryMage
Not required, as PARAMETERS can just be incremented directly.
2020-06-15macro_jit_x64: Remove unused function Compile_WriteCarryMerryMage
2020-06-15macro_jit_x64: Select better registersMerryMage
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.
2020-06-15macro_jit_x64: Remove REGISTERSMerryMage
Unnecessary since this is just an offset from STATE.
2020-06-15macro_jit_x64: Remove JITState::parametersMerryMage
This can be passed in as an argument instead.
2020-06-15macro_jit_x64: Remove METHOD_ADDRESS_64MerryMage
Unnecessary variable.
2020-06-15macro_jit_x64: Remove RESULT_64MerryMage
This Reg64 codepath has the exact same behaviour as the Reg32 one.
2020-06-15xbyak_abi: Remove *GPS variants of stack manipulation functionsMerryMage
2020-06-03Mark parameters as constDavid Marcec
2020-05-30Favor switch case over jump tableDavid Marcec
Easier to read and will emit a jump table automatically.
2020-05-30Implement macro JITDavid Marcec