summaryrefslogtreecommitdiffstats
path: root/src/video_core/macro (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-08-15xbyak: Update include pathMerry1-1/+1
2021-04-15common: Move settings to common from core.bunnei1-1/+1
- Removes a dependency on core and input_common from common.
2020-12-07video_core: Remove unnecessary enum class casting in logging messagesLioncash2-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.
2020-12-04video_core: Resolve more variable shadowing scenariosLioncash6-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.
2020-09-22General: Make use of std::nullopt where applicableLioncash1-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.
2020-08-30externals: Update Xbyak to 5.96Lioncash1-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.
2020-08-22video_core: Initialize renderer with a GPUReinUsesLisp1-3/+3
Add an extra step in GPU initialization to be able to initialize render backends with a valid GPU instance.
2020-08-14macro-interpreter: Resolve -Wself-assign-field warningLioncash1-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.
2020-07-21video_core: Remove unused variablesLioncash1-1/+0
Silences several compiler warnings about unused variables.
2020-07-17macro_hle: Remove unnecessary static keywordsLioncash1-7/+4
These functions are already in an anonymous namespace which makes the functions internally linked.
2020-07-17macro_hle: Simplify shift expression in HLE_771BB18C62444DA0()Lioncash1-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.
2020-07-17macro_hle: Remove unnecessary std::make_pair callsLioncash1-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.
2020-07-17macro: Resolve missing parameter in doxygen commentLioncash1-1/+2
Resolves a -Wdocumentation warning.
2020-06-30macro: Add support for "middle methods" on the code cache (#4112)David1-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.
2020-06-24addressed issuesDavid Marcec2-4/+7
2020-06-24clear mme draw modeDavid Marcec1-0/+3
We already draw, so we can clear it
2020-06-24Addressed issuesDavid Marcec4-13/+13
2020-06-24Fix constbuffer for 0217920100488FF7David Marcec1-6/+6
2020-06-24Macro HLE supportDavid Marcec6-9/+202
2020-06-20macro_jit_x64: Use ecx for shift registerMerryMage1-2/+2
shl/shr only accept cl as their second argument
2020-06-20macro_jit_x64: Correct readability of Compile_ExtractShiftLeftImmediate()Lioncash1-3/+3
Previously dst wasn't being used.
2020-06-20macro_jit_x64: Correct readability of Compile_ExtractShiftLeftRegister()Lioncash1-3/+4
Previously dst wasn't being used.
2020-06-20macro_jit_x64: Remove unused variableLioncash1-2/+1
Removes a completely unused label and marks another variable as unused, given it seems like it has potential uses in the future.
2020-06-20macro_jit_x64: Eliminate variable shadowing in Compile_ProcessResult()Lioncash1-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.
2020-06-19macro_jit_x64: Remove unused function ReadMerryMage1-8/+4
2020-06-17macro_jit_x64: Inline Engines::Maxwell3D::GetRegisterValueMerryMage2-6/+18
2020-06-17macro_jit_x64: Optimization implicitly assumes same destinationMerryMage1-1/+2
2020-06-17macro_jit_x64: Should not skip zero registers for certain ALU opsMerryMage1-1/+3
The code generated for these ALU ops assume src_a and src_b are always valid.
2020-06-15macro_jit_x64: Remove NEXT_PARAMETERMerryMage1-5/+2
Not required, as PARAMETERS can just be incremented directly.
2020-06-15macro_jit_x64: Remove unused function Compile_WriteCarryMerryMage2-9/+0
2020-06-15macro_jit_x64: Select better registersMerryMage1-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.
2020-06-15macro_jit_x64: Remove REGISTERSMerryMage1-7/+3
Unnecessary since this is just an offset from STATE.
2020-06-15macro_jit_x64: Remove JITState::parametersMerryMage2-6/+3
This can be passed in as an argument instead.
2020-06-15macro_jit_x64: Remove METHOD_ADDRESS_64MerryMage1-2/+1
Unnecessary variable.
2020-06-15macro_jit_x64: Remove RESULT_64MerryMage2-16/+3
This Reg64 codepath has the exact same behaviour as the Reg32 one.
2020-06-15xbyak_abi: Remove *GPS variants of stack manipulation functionsMerryMage1-6/+6
2020-06-15video_core/macro_jit_x64: Remove initializer in member variableReinUsesLisp1-2/+2
Fix build time issues on gcc. Confirmed through asan that avoiding this initialization is safe.
2020-06-04Default init labels and use initializer list for macro engineDavid Marcec1-1/+1
2020-06-03Mark parameters as constDavid Marcec6-8/+9
2020-06-02Pass by reference instead of copying parametersDavid Marcec2-2/+2
2020-05-30Favor switch case over jump tableDavid Marcec2-18/+26
Easier to read and will emit a jump table automatically.
2020-05-30Implement macro JITDavid Marcec6-0/+1294