summaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Correct XMAD mode, psl and high_b on different encodings.Gravatar Fernando Sahmkow2019-04-082-9/+33
|
* Merge pull request #2300 from FernandoS27/null-shaderGravatar bunnei2019-04-072-0/+22
|\ | | | | shader_cache: Permit a Null Shader in case of a bad host_ptr.
| * Permit a Null Shader in case of a bad host_ptr.Gravatar Fernando Sahmkow2019-04-072-0/+22
| |
* | Merge pull request #2355 from ReinUsesLisp/sync-pointGravatar bunnei2019-04-071-2/+2
|\ \ | | | | | | maxwell_3d: Reduce severity of ProcessSyncPoint
| * | maxwell_3d: Reduce severity of ProcessSyncPointGravatar ReinUsesLisp2019-04-061-2/+2
| | |
* | | Merge pull request #2306 from ReinUsesLisp/aoffiGravatar bunnei2019-04-074-71/+205
|\ \ \ | | | | | | | | shader_ir: Implement AOFFI for TEX and TLD4
| * | | gl_shader_decompiler: Hide local definitions inside an anonymous namespaceGravatar ReinUsesLisp2019-03-311-6/+8
| | | |
| * | | shader_ir/decode: Silent implicit sign conversion warningGravatar Mat M2019-03-311-2/+2
| | | | | | | | | | | | Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
| * | | gl_shader_decompiler: Add AOFFI backing implementationGravatar ReinUsesLisp2019-03-301-38/+85
| | | |
| * | | shader_ir/decode: Implement AOFFI for TEX and TLD4Gravatar ReinUsesLisp2019-03-302-27/+94
| | | |
| * | | shader_ir: Implement immediate register trackingGravatar ReinUsesLisp2019-03-302-1/+19
| | | |
* | | | Merge pull request #2361 from lioncash/pagetableGravatar bunnei2019-04-078-20/+4
|\ \ \ \ | | | | | | | | | | core/memory: Minor simplifications to page table management
| * | | | core/memory: Remove GetCurrentPageTable()Gravatar Lioncash2019-04-072-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Now that nothing actually touches the internal page table aside from the memory subsystem itself, we can remove the accessor to it.
| * | | | arm/arm_dynarmic: Remove unnecessary current_page_table memberGravatar Lioncash2019-04-072-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Given the page table will always be guaranteed to be that of whatever the current process is, we no longer need to keep this around.
| * | | | kernel: Handle page table switching within MakeCurrentProcess()Gravatar Lioncash2019-04-074-6/+3
| | |/ / | |/| | | | | | | | | | | | | | Centralizes the page table switching to one spot, rather than making calling code deal with it everywhere.
* | | | Merge pull request #2321 from ReinUsesLisp/gl-state-reworkGravatar bunnei2019-04-073-339/+324
|\ \ \ \ | | | | | | | | | | gl_state: Rework to enable individual applies
| * | | | gl_state: Rework to enable individual appliesGravatar ReinUsesLisp2019-04-033-339/+324
| | | | |
* | | | | Merge pull request #2098 from FreddyFunk/disk-cache-zstdGravatar bunnei2019-04-074-7/+104
|\ \ \ \ \ | | | | | | | | | | | | gl_shader_disk_cache: Use Zstandard for compression
| * | | | | common/zstd_compression: simplify decompression interfaceGravatar unknown2019-03-293-13/+11
| | | | | |
| * | | | | gl_shader_disk_cache: Fixup clang formatGravatar unknown2019-03-291-2/+3
| | | | | |
| * | | | | gl_shader_disk_cache: Use Zstandard for compressionGravatar unknown2019-03-291-6/+6
| | | | | |
| * | | | | common/zstd_compression: Add Zstandard wrapperGravatar unknown2019-03-293-0/+98
| | | | | |
| * | | | | common: Link libzstd_staticGravatar unknown2019-03-291-1/+1
| | | | | |
| * | | | | Addressed feedbackGravatar unknown2019-03-291-1/+0
| | | | | |
| * | | | | core: Do not link LZ4 to core. Use common/data_compression for nso segment ↵Gravatar unknown2019-03-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | decompression instead.
* | | | | | Merge pull request #2356 from lioncash/pairGravatar bunnei2019-04-076-18/+15
|\ \ \ \ \ \ | | | | | | | | | | | | | | kernel/{server_port, server_session}: Return pairs instead of tuples from pair creation functions
| * | | | | | kernel/server_session: Return a std::pair from CreateSessionPair()Gravatar Lioncash2019-04-064-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keeps the return type consistent with the function name. While we're at it, we can also reduce the amount of boilerplate involved with handling these by using structured bindings.
| * | | | | | kernel/server_port: Return a std::pair from CreatePortPair()Gravatar Lioncash2019-04-062-7/+7
| | |_|/ / / | |/| | | | | | | | | | | | | | | | Returns the same type that the function name describes.
* | | | | | Merge pull request #2362 from lioncash/enumGravatar bunnei2019-04-071-10/+0
|\ \ \ \ \ \ | | | | | | | | | | | | | | core/memory: Remove unused enum constants
| * | | | | | core/memory: Remove unused enum constantsGravatar Lioncash2019-04-071-10/+0
| |/ / / / / | | | | | | | | | | | | | | | | | | These are holdovers from Citra and can be removed.
* | | | | | Merge pull request #2352 from bunnei/mem-manager-fixesGravatar bunnei2019-04-073-12/+84
|\ \ \ \ \ \ | |/ / / / / |/| | | | | memory_manager: Improved implementation of read/write/copy block.
| * | | | | memory_manager: Improved implementation of read/write/copy block.Gravatar bunnei2019-04-053-12/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fixes graphical issues with Chocobo's Mystery Dungeon EVERY BUDDY! - Fixes a crash with Mario Tennis Aces
* | | | | | Merge pull request #2317 from FernandoS27/syncGravatar bunnei2019-04-052-1/+27
|\ \ \ \ \ \ | | | | | | | | | | | | | | Implement SyncPoint Register in the GPU.
| * | | | | | Implement SyncPoint Register in the GPU.Gravatar Fernando Sahmkow2019-04-052-1/+27
| | |_|_|/ / | |/| | | |
* | | | | | Merge pull request #2325 from lioncash/nameGravatar bunnei2019-04-051-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | kernel/server_session: Provide a GetName() override
| * | | | | | kernel/server_session: Provide a GetName() overrideGravatar Lioncash2019-04-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given server sessions can be given a name, we should allow retrieving it instead of using the default implementation of GetName(), which would just return "[UNKNOWN KERNEL OBJECT]".
* | | | | | | Merge pull request #2342 from lioncash/warningGravatar bunnei2019-04-052-9/+9
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | common/multi_level_queue: Silence truncation warnings
| * | | | | | | common/multi_level_queue: Silence truncation warning in iterator operator++Gravatar Lioncash2019-04-051-1/+1
| | | | | | | |
| * | | | | | | common/bit_util: Make CountLeading/CountTrailing functions have the same ↵Gravatar Lioncash2019-04-051-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | return types Makes the return type consistently uniform (like the intrinsics we're wrapping). This also conveniently silences a truncation warning within the kernel multi_level_queue.
* | | | | | | | Merge pull request #2240 from FearlessTobi/port-4651Gravatar bunnei2019-04-053-4/+5
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Port citra-emu/citra#4651: "gdbstub: Fix some bugs in IsMemoryBreak() and ServeBreak. Add workaround to let watchpoints break into GDB."
| * | | | | | | | gdbstub: Fix some bugs in IsMemoryBreak() and ServeBreak. Add workaround to ↵Gravatar Dimitri A2019-03-153-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | let watchpoints break into GDB. (#4651) * gdbstub: fix IsMemoryBreak() returning false while connected to client As a result, the only existing codepath for a memory watchpoint hit to break into GDB (InterpeterMainLoop, GDB_BP_CHECK, ARMul_State::RecordBreak) is finally taken, which exposes incorrect logic* in both RecordBreak and ServeBreak. * a blank BreakpointAddress structure is passed, which sets r15 (PC) to NULL * gdbstub: DynCom: default-initialize two members/vars used in conditionals * gdbstub: DynCom: don't record memory watchpoint hits via RecordBreak() For now, instead check for GDBStub::IsMemoryBreak() in InterpreterMainLoop and ServeBreak. Fixes PC being set to a stale/unhit breakpoint address (often zero) when a memory watchpoint (rwatch, watch, awatch) is handled in ServeBreak() and generates a GDB trap. Reasons for removing a call to RecordBreak() for memory watchpoints: * The``breakpoint_data`` we pass is typed Execute or None. It describes the predicted next code breakpoint hit relative to PC; * GDBStub::IsMemoryBreak() returns true if a recent Read/Write operation hit a watchpoint. It doesn't specify which in return, nor does it trace it anywhere. Thus, the only data we could give RecordBreak() is a placeholder BreakpointAddress at offset NULL and type Access. I found the idea silly, compared to simply relying on GDBStub::IsMemoryBreak(). There is currently no measure in the code that remembers the addresses (and types) of any watchpoints that were hit by an instruction, in order to send them to GDB as "extended stop information." I'm considering an implementation for this. * gdbstub: Change an ASSERT to DEBUG_ASSERT I have never seen the (Reg[15] == last_bkpt.address) assert fail in practice, even after several weeks of (locally) developping various branches around GDB. Only leave it inside Debug builds.
* | | | | | | | | Merge pull request #2346 from lioncash/headerGravatar bunnei2019-04-0510-22/+39
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / |/| | | | | | | | video_core/engines: Remove unnecessary inclusions where applicable
| * | | | | | | | video_core/engines: Make memory manager members privateGravatar Lioncash2019-04-059-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These aren't used externally by anything, so they can be made private data members.
| * | | | | | | | video_core/engines: Remove unnecessary inclusions where applicableGravatar Lioncash2019-04-0510-9/+25
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaces header inclusions with forward declarations where applicable and also removes unused headers within the cpp file. This reduces a few more dependencies on core/memory.h
* | | | | | | | Merge pull request #2350 from lioncash/vmemGravatar bunnei2019-04-052-22/+38
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | video_core/memory_manager: Mark a few member functions with the const qualifier
| * | | | | | | | video_core/memory_manager: Make Read() a const qualified member functionGravatar Lioncash2019-04-052-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Given this doesn't actually alter internal state, this can be made a const member function.
| * | | | | | | | video_core/memory_manager: Make ReadBlock() a const qualifier member functionGravatar Lioncash2019-04-052-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now, since we have a const qualified variant of GetPointer(), we can put it to use in ReadBlock() to retrieve the source pointer that is passed into memcpy. Now block reading may be done from a const context.
| * | | | | | | | video_core/memory_manager: Add a const qualified variant of GetPointer()Gravatar Lioncash2019-04-052-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows retrieving read-only pointers from a const context externally.
| * | | | | | | | video_core/memory_manager: Make FindFreeRegion() a const member functionGravatar Lioncash2019-04-052-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't modify internal state, so it can be made a const member function.
| * | | | | | | | video_core/memory_manager: Make GpuToCpuAddress() a const member functionGravatar Lioncash2019-04-052-3/+3
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This doesn't modify any internal state, so it can be made a const member function to allow its use in const contexts.