Commit Graph

41 Commits (8f9f039665de62cbca2175f1343997fe9b861b71)

Author SHA1 Message Date
Connor McLaughlin cacf7a7cc9 GPU: Precompute texture window expression [SAVEVERSION+] 5 years ago
Connor McLaughlin 3847be86b0 Fix a bunch of random warnings 5 years ago
Connor McLaughlin 0c1b637549 PGXP: Add initial implementation 5 years ago
Connor McLaughlin b6f871d2b9
JIT optimizations and refactoring (#675)
* CPU/Recompiler: Use rel32 call where possible for no-args

* JitCodeBuffer: Support using preallocated buffer

* CPU/Recompiler/AArch64: Use bl instead of blr for short branches

* CPU/CodeCache: Allocate recompiler buffer in program space

This means we don't need 64-bit moves for every call out of the
recompiler.

* GTE: Don't store as u16 and load as u32

* CPU/Recompiler: Add methods to emit global load/stores

* GTE: Convert class to namespace

* CPU/Recompiler: Call GTE functions directly

* Settings: Turn into a global variable

* GPU: Replace local pointers with global

* InterruptController: Turn into a global pointer

* System: Replace local pointers with global

* Timers: Turn into a global instance

* DMA: Turn into a global instance

* SPU: Turn into a global instance

* CDROM: Turn into a global instance

* MDEC: Turn into a global instance

* Pad: Turn into a global instance

* SIO: Turn into a global instance

* CDROM: Move audio FIFO to the heap

* CPU/Recompiler: Drop ASMFunctions

No longer needed since we have code in the same 4GB window.

* CPUCodeCache: Turn class into namespace

* Bus: Local pointer -> global pointers

* CPU: Turn class into namespace

* Bus: Turn into namespace

* GTE: Store registers in CPU state struct

Allows relative addressing on ARM.

* CPU/Recompiler: Align code storage to page size

* CPU/Recompiler: Fix relative branches on A64

* HostInterface: Local references to global

* System: Turn into a namespace, move events out

* Add guard pages

* Android: Fix build
5 years ago
Connor McLaughlin dad63f2303 GPU: Run draw clock at sysclk * 2 6 years ago
Connor McLaughlin c583459c6f GPU: Replace coord/size masks with constants 6 years ago
Connor McLaughlin 096ed21767 GPU: Synchronize before filling/writing with interlaced rendering 6 years ago
Connor McLaughlin 597aa20d83 GPU: Don't panic when FIFO is non-empty with VRAM->CPU copy
This probably is not a good state to be in though, since the DMA request
gets turned off and will never resume until it's copied out.
6 years ago
Connor McLaughlin 759c7c52d5 GPU: Don't wedge when other commands are in FIFO with polyline
Fixes Ridge Racer Type 4.
6 years ago
Connor McLaughlin 610cc74cb9 GPU: Add primitive setup timing 6 years ago
Connor McLaughlin 1757932b3a GPU: Implement FIFO and timings
This will cause a slight performance loss. I've left some knobs in which
can be tweaked to mitigate this, but the goal is to be compatible with
all games which require them.
6 years ago
Connor McLaughlin c483a78889 GPU: Implement interlaced VRAM fills 6 years ago
Connor McLaughlin 7f5c6f8b4f GPU/HW: Move some flush checks to command time 6 years ago
Connor McLaughlin 48fba47ee6 GPU: Implement skip-drawing-to-active-field for interlaced mode
Currently only in the software renderer.
6 years ago
Connor McLaughlin 31581763a3 GPU: Correct starting position for polyline terminator search
Fixes broken visuals in Wild Arms, probably others.
6 years ago
Connor McLaughlin 6bc91f2157 GPU: Polyline must have at least two vertices
Fixes GPU stream corruption in Lifeforce Tenka.
6 years ago
Connor McLaughlin f13cfce34d GPU: Fix incorrect polyline terminator check
Fixes Gran Turismo 2, maybe others.
6 years ago
Connor McLaughlin 46239e6758 GPU: Fix GP0(1Fh) locking up emulator 6 years ago
Connor McLaughlin e2e2b573c0 GPU/HW: Move drawing offset to CPU-side
Saves updating the uniform buffer.
6 years ago
Connor McLaughlin b0b1fd8f1a GPU: Timing for CPU->VRAM transfers
Fixes Monkey Hero, probably others.
6 years ago
Connor McLaughlin ed493c846d GPU: Don't panic on oversized VRAM copies
Fixes #31.
6 years ago
Connor McLaughlin 71c1e243fe Remove YBaseLib dependency 6 years ago
Connor McLaughlin ffe90083d3 GPU: Refactor draw mode setting 6 years ago
Connor McLaughlin 45fc19fd05 GPU: Only latch texpage/mode on polygon/set draw mode
Driver seems to draw an off-screen polygon to set up the parameters,
instead of the set draw mode command.

Fixes broken sprites in Driver/Driver 2.
6 years ago
Connor McLaughlin 9d6d00480c GPU: Implement mask bit handling in software renderer
Still needs implementation in the hardware renderers.
6 years ago
Connor McLaughlin bb4ef2103e GPU: Fix dump vram-to-cpu copies 6 years ago
Connor McLaughlin 49569d29aa GPU: Refactor command execution/VRAM->CPU transfers
Simpler, and handles odd sizes correctly.
6 years ago
Connor McLaughlin 9d66638bce GPU: Handle oversized transfers (wrap around behavior) 6 years ago
Connor McLaughlin 9ea7a8418c GPU: Eliminate temporary buffer when reading back 6 years ago
Connor McLaughlin c0208b6e78 GPU: Flush render before changing drawing area/offset
Fixes "random" broken polygons in hardware backends.
6 years ago
Connor McLaughlin 2c631aba5e GPU: Move stats from renderer class to base classes 6 years ago
Connor McLaughlin afbec85f89 GPU/HW: Track dirty area of VRAM shadow texture via drawing area 6 years ago
Connor McLaughlin 3619b46b45 GPU: Fix parsing of polylines.. again 6 years ago
Connor McLaughlin 3c64a242bb GPU: Fix incorrect parsing of polyline commands 6 years ago
Connor McLaughlin 91c99f0226 GPU/HW: Use uniform blocks for batch rendering 6 years ago
Connor McLaughlin aa1f3ad8f7 GPU: Don't truncate clear colour to 15-bit with true colour on 6 years ago
Connor McLaughlin 9b56499afa Refactoring settings/support changing GPU renderer at runtime 6 years ago
Connor McLaughlin a76ec6fc19 Compile fixes for GCC 6 years ago
Connor McLaughlin faa9e59f61 GPU: Correctly mask src x/y in VRAM->CPU transfer 6 years ago
Connor McLaughlin f046d1008e GPU: Mask high bits in copy commands 6 years ago
Connor McLaughlin baf97cb864 GPU: Split command handlers into seperate file 6 years ago