summaryrefslogtreecommitdiffstats
path: root/src/video_core/macro (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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