Commit Graph

2366 Commits

Author SHA1 Message Date
twinaphex
5d4ecd68be Make this __MACH__ only 2020-01-23 16:12:12 +01:00
twinaphex
744e5797ce Buildfixes for Android 2020-01-23 13:18:49 +01:00
twinaphex
d38cd7403e Push buildfix for libFLAC 2020-01-23 13:07:11 +01:00
Zachary Cook
24b6e231a3 Change default for CPU Dynarec to disabled 2020-01-23 02:12:21 -05:00
Zachary Cook
a9e439afeb Fix Mac mmap support 2020-01-22 23:17:10 -05:00
twinaphex
f0550fbb30 Add more CPU overclocking 2020-01-23 05:06:01 +01:00
twinaphex
ce507dfde2 Try to fix Android 2020-01-22 20:05:30 +01:00
twinaphex
f36f1d233e Enable HAVE_LIGHTREC=1 for Android 2020-01-22 16:23:49 +01:00
Twinaphex
759dce0d43
Merge pull request #590 from libretro/dynarec
Lightrec Dynarec
2020-01-22 15:41:13 +01:00
Zachary Cook
986444d837 Add lightrec dynarec support
Only output for big-ass-debugger if LIGHTREC_DEBUG=1

LIGHTREC_DEBUG=1 implies DEBUG=1, to disable threaded recompiler, so that output is reliable

Select which dynarec option with core config option

Default back to the faster option, and should allow running debugger easier

Fix crash when switching dynarec option at run-time, need to invalidate lightrec_state

Fix exe loading enough to get into lightrec interpreter

Code for reloading expansion1 is from @simias dynarec

Fix savestate loading

Cleanup LIGHTREC_DEBUG

Keep track of previous dynarec option properly

Fully re-initialize lightrec when switching dynarec option

Add option to invalidate stores always (Full) or just for DMA (DMA Only)

Add option to configure amount of cycles that can pass in dynarec before a DMA/GPU update is forced

Do not init lightrec for beetle interpreter

Make lightrec memory logging more concise

Runahead can use a second instance, use exclusive shared memory and try another name

Fix load state again

Change default dynarec option to interpreter

Reword DMA/GPU event cycles option

Don't build lightrec by default, require HAVE_LIGHTREC=1

Revert ReadAbsorb changes, incompatible with old save states

Revert changes to GPR, much more compatible with beetle interpreter

Fix subrepos so they can be updated cleanly in the future
2020-01-21 20:43:53 -05:00
Zachary Cook
9f79743096 Add deps for dynarec
Fix subrepos due to squashing history

git subrepo pull (merge) deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "81d07d4e"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "807c6fe7"
git-subrepo:
  version:  "0.4.0"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "5d6aba9"

git subrepo pull (merge) deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "5084f032"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "e56284be"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a04d8c2"

git subrepo commit (merge) deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "a349e172"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "e077ae7b"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a04d8c2"

git subrepo commit (merge) deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "f8db9295"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "85195183"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a04d8c2"

git subrepo commit (merge) deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "11267e7c"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "f7121d08"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a04d8c2"

git subrepo pull (merge) deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "57c58dbf"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "6c9d6551"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a04d8c2"

git subrepo commit (merge) deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "eddfccd0"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "452f23f0"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a04d8c2"

git subrepo commit (merge) deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "342c892e"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "72881247"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a04d8c2"

git subrepo pull (merge) deps/lightrec

subrepo:
  subdir:   "deps/lightrec"
  merged:   "3e1cf147"
upstream:
  origin:   "https://github.com/pcercuei/lightrec.git"
  branch:   "master"
  commit:   "a6ac0156"
git-subrepo:
  version:  "0.4.1"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "a04d8c2"
2020-01-21 19:39:21 -05:00
twinaphex
18a9de19f3 Backport this from mainline (mednafen 1.22.2) -
PSX: Fixed a regression introduced in 1.22.0-UNSTABLE that broke a few PS1 games(e.g. SimCity 2000 and Rise 2)

the games already worked, but figure it can't do any real harm to
backport this
2019-12-27 00:23:36 +01:00
rz5
0a3f9d3026 From the upstream changelog:
Handle SPU CD volume as signed 16-bit instead of unsigned; fixes lowest volume setting in "Star Wars Dark Forces".
2019-12-26 02:13:38 +01:00
ggdrt
2bcb026ed5 Update READMEs 2019-12-25 11:04:17 -08:00
Twinaphex
8cdfd50b10
Merge pull request #578 from ggdrt/rsx
Restore rsx_libs and various rsx cleanups
2019-12-19 22:48:07 +01:00
Twinaphex
8ed15d2090
Merge pull request #577 from Themaister/texture-corruption-fix
parallel-psx: Fix precision bug with resolve roundtrip.
2019-12-18 21:31:42 +01:00
Hans-Kristian Arntzen
9c6351702b parallel-psx: Fix precision bug with resolve roundtrip.
This is a big problem when using paletted textures. It is very easy to
trigger scenarios where we roundtrip resolve unscaled -> scaled ->
unscaled.

We need to round in pack_abgr1555 because we can get an off-by-one
otherwise, especially when resolving large upscaling factors.

Also, remove mediump from the resolve shaders, since we need pretty
decent precision to ensure there is a 1:1 roundtrip.
2019-12-18 21:26:20 +01:00
ggdrt
d63a7aaf52 Restore and update rsx_lib_vulkan 2019-12-13 21:13:51 -08:00
ggdrt
a0b2943329 Restore and update rsx_lib_gl 2019-12-13 21:13:43 -08:00
ggdrt
d3e2f5870e Clean up rsx_intf.h 2019-12-12 20:53:06 -08:00
ggdrt
2557d1ab05 Remove deprecated rsx.h 2019-12-10 23:41:28 -08:00
ggdrt
b847cabf09
Merge pull request #575 from ggdrt/lightgun
Lightgun Fixes
2019-12-10 16:29:28 -08:00
ggdrt
4dfbbd4951 Adjust lightgun input scaling for PAL and overscan 2019-12-10 10:05:03 -08:00
ggdrt
f6775d56fe Fix lightgun color detection for SW renderer upscale 2019-12-10 10:04:43 -08:00
ggdrt
22411871bb Add lightgun cursor upscaling for SW renderer 2019-12-09 11:52:23 -08:00
ggdrt
4e1c6f1c41 Separate core globals from callbacks 2019-12-08 09:26:41 -08:00
ggdrt
8ad1e5711e Add -MMD to Makefile for non-MSVC builds (#462) 2019-12-07 11:17:24 -08:00
ggdrt
db35d8359f Clean up Makefile formatting
Use tabs only for recipes, spaces elsewhere
2019-12-07 11:17:21 -08:00
Twinaphex
56e5cbcef9
Merge pull request #574 from ggdrt/doc
Minor updates
2019-12-07 00:10:10 +01:00
ggdrt
0897fda867 Allow line render hack for non-HW build 2019-12-06 09:04:28 -08:00
ggdrt
dec5afe8e2 Rewrite core option sublabels 2019-12-06 09:04:18 -08:00
ggdrt
0147ae94b7 Add rsx subdirectory README 2019-12-06 09:01:54 -08:00
Twinaphex
5bdfd11a6c
Merge pull request #573 from ggdrt/hw-context
Fix GET_PREFERRED_HW_RENDER handling and fallback
2019-12-04 04:05:16 +01:00
ggdrt
748d4f80e3 Fix GET_PREFERRED_HW_RENDER handling and fallback
Core now properly falls back to software renderer when requested
hardware context is not Vulkan/OpenGL instead of defaulting to Vulkan
for every context other than OpenGL. Core now also checks each hardware
renderer instead of only Vulkan for frontends that do not support
RETRO_ENVIRONMENT_GET_PREFERRED_HW_RENDER.
2019-12-03 16:52:10 -08:00
ggdrt
93a187f699 Fix upscale not being set on startup in non-HW build 2019-11-25 13:10:52 -08:00
ggdrt
edc90765b4 Revert "Changes to core startup. Fixes #553"
This reverts commit b0d55624a5.
2019-11-24 02:23:52 -08:00
ggdrt
980b24b4ef Update RSX dump and playback for recent additions 2019-11-22 07:19:55 -08:00
ggdrt
f6dd05aafd Fix regression in GL Display VRAM from 26da9f0 2019-11-21 21:46:43 -08:00
ggdrt
115278fa3a Minor update to some option sublabels 2019-11-19 22:41:59 -08:00
ggdrt
10aa015416 Reorder core options by approximate category 2019-11-19 22:41:59 -08:00
ggdrt
d00717f88f Standardize input.h/input.cpp formatting 2019-11-19 22:41:59 -08:00
ggdrt
ddf68bc9e9 Clean RSX and libretro.cpp options style
Makes cstring comparison style consistent within each file, based on the
most common style for each individual file. RSX uses !strcmp while
libretro.cpp uses strcmp == 0. Also minor whitespace fixes.

Co-authored-by: rz5 <rz5@users.noreply.github.com>
Co-authored-by: ggdrt <45282415+ggdrt@users.noreply.github.com>
2019-11-19 22:39:53 -08:00
ggdrt
b20b562ed1 Adhere core option values to standard format 2019-11-19 22:17:25 -08:00
ggdrt
6ab4219737 Expose base PGXP core option for non-HW build 2019-11-19 22:17:25 -08:00
ggdrt
5324185ffb Hide frame duping option for HW renderers & SW fix 2019-11-19 22:17:25 -08:00
ggdrt
49828593ce Add horizontal offset option to GL and VK 2019-11-19 15:54:49 -08:00
ggdrt
26da9f0188 Refactor GL viewport calculation code
GL renderer now respects horizontal display range when crop overscan
setting is enabled.
2019-11-19 15:53:05 -08:00
ggdrt
67872c1529 Clean up RSX interface style
Co-authored-by: rz5 <rz5@users.noreply.github.com>
Co-authored-by: ggdrt <45282415+ggdrt@users.noreply.github.com>
2019-11-19 09:12:21 -08:00
ggdrt
592708520c Implement initial/last scanline options for Vulkan 2019-11-17 19:47:05 -08:00
rz5
b0d55624a5 Changes to core startup. Fixes #553
* Shared memcards and memcard0 method core options are now only checked in retro_load_game and require a restart
* In retro_load_game, rsx_intf_open is called first before check_variables and alloc_surface
* check_variables no longer receives any params
* Ensure none of the renderers call SET_SYSTEM_AV_INFO before we're in retro_run
* Ensure the first iteration of retro_run checks core options even if they weren't updated yet
* Store the upscale shift when calling GPU_Init() and prevent calling delete on a null pointer in GPU_Rescale()
2019-11-15 00:17:53 +00:00