* 2X and 4X Software Up-Rendering Feature Added
What this change includes:
- 2X software uprender
- 4X software uprender (mostly untested, but yolo)
- significant perf improvements to all SW rendering, including native res
- config setting '[GPU].SoftwareUprender'
What this change is missing:
- UI integration. It can only be enabled from the settings.ini file at the moment
- Testing. I only checked four games so far
* SW Uprender 2x Fixed.
Mainly two typos, one in SetPixel, and one in a template parameter, caused the problems.
I did a bunch of var renaming and cleanup along the way.
* Add preliminary support for on-the-fly resolution change, rename and refactor some vars
* SW uprender: simplified so HW/SW share same setting.
* Fixed crash caused by bad malloc from on-the-fly res change refactor
* Fixed another crash. Bad math typo.
* Fix mode bad math in ReadVRAM
* Fix 4x rendering (mostly) - gradients are off, but could be SW integer precision issue.
hooks up proper software display buffer texture allocation.
* Fix FMVs rendering on host 16bpp display buffers
This bug varies by user's PC hardware and OS. Hard to verify and reproduce. >_<
* Fix hardcoded upscale factor
* Reduce diff size a bit
Co-authored-by: Jean-André Santoni <jean.andre.santoni@gmail.com>
* 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
Fixes misaligned textures in some games such as Crash Bandicoot.
Currently, because the vertex offset is not applied at >1x resolution
scale, this will not work so it is disabled at >1x.
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.