Flyinghead
13df32ba3f
vk: check vkGetInstanceProcAddr value before use and report error
...
Tentative fix for MINIDUMP-1F
2023-01-08 11:06:47 +01:00
Flyinghead
262a39cafb
android: avoid UI race condition when stopping or resuming game
...
Gamepad events aren't delivered to the UI thread in Android. This can
lead to race conditions between the UI thread (calling gui_display_ui())
and the event thread (calling gui_open_settings()).
Issue #852
Fix for MINIDUMP-1D, MINIDUMP-1E, MINIDUMP-1K
2023-01-08 10:59:36 +01:00
Flyinghead
480f2e31b0
widescreen cheats for 102 Dalmatians. courtesy of Espirral
2023-01-07 12:02:35 +01:00
Flyinghead
d0bb0aea97
android: defer stopping audio until after current frame is rendered
...
In android, stop requests are not run in the UI thread so in
single-threaded mode, they must be deferred until after the current
frame is rendered to avoid deadlocking on audio.
2023-01-07 11:51:32 +01:00
Flyinghead
bf3f927a99
reios: don't crash on unknown trap vector. log error and ignore
2023-01-07 11:46:59 +01:00
Flyinghead
b6491a3842
android: REICAST_HOME -> FLYCAST_HOME
2023-01-05 20:21:15 +01:00
Flyinghead
c04c696ba6
arm64 dynarec: pad link section with nop to allow full mmu relink
...
fix literal pool being overwritten
Fix for MINIDUMP-18
2023-01-05 14:36:23 +01:00
Flyinghead
756ec0e672
arm build fix
2023-01-04 12:27:04 +01:00
Flyinghead
3dfdb60139
arm dynarec: handle immediate operand to fsca
2023-01-04 12:12:24 +01:00
Flyinghead
5a409dbe2c
boxart: [] operator with non-existing key on const json is UB
...
Use json::at() instead.
Don't return pointer to GameBoxart to UI since it can be
replaced/deleted by the scraper thread.
Tentative fix for MINIDUMP-16
2023-01-04 12:09:09 +01:00
Flyinghead
9ef37d9776
arm[64] dynarec: xtrct can have immediate operands
...
Fixes MINIDUMP-15
Sakura Taisen 2 crash
2023-01-03 15:15:13 +01:00
Flyinghead
ba0a357d48
missing change for 12bba31270
2023-01-03 11:32:00 +01:00
Flyinghead
659ffa4406
vk: catch vulkan dyn loader exception when driver can't be loaded
...
Fixes MINIDUMP-R
2023-01-03 11:08:28 +01:00
Flyinghead
12bba31270
lr: fix incorrect DC framebuffer size
2023-01-03 11:03:31 +01:00
flyinghead
dd66e44871
compile warnings
2023-01-02 16:39:34 +01:00
flyinghead
c5c87522ca
x64 dynarec: wrong op in GenReadMemImmediate
...
Fixes MINIDUMP-14
2023-01-02 16:06:58 +01:00
flyinghead
5ef80f0a17
dx11: disable scissor test when rendering framebuffer
...
Issue #847
2023-01-02 16:04:17 +01:00
Flyinghead
cf514b0d6b
pvr: skip remaining vertices if incomplete after inf vertex
...
in makePrimRestartIndex
Issue #846
2022-12-31 16:51:35 +01:00
Flyinghead
2a465d2f03
ios: check if jit is enabled. attempt to enable it by debugging self
...
JIT detection and enabling taken from ppsspp
Re-check JIT and restart AltServer discovery every 10 secs until JIT is
enabled.
Attempt to enable JIT by forking a process to debug the parent process.
(jailbroken devices)
2022-12-30 16:22:38 +01:00
Flyinghead
802f70fedd
pvr: recover from renderer init failure
...
issue MINIDUMP-V
fix some warnings
2022-12-29 19:18:19 +01:00
scribam
5acfa7d3d6
vulkan: return an error if no physical devices found
2022-12-29 19:12:53 +01:00
Flyinghead
85188bf137
naomi: fix button labels for hmgeo
...
Issue #841
2022-12-25 22:09:34 +01:00
Flyinghead
bfc44f2b4e
scraper: skip invalid textures. invalid CUE crash. memory leak
...
Sanity check of PVR texture params before converting it to avoid crash
(MINIDUMP-K).
.cue gdrom needs at least 3 tracks.
Delete disc if invalid.
2022-12-25 11:27:48 +01:00
Flyinghead
96aaa8b14a
elan: don't map RAM with vmem if not naomi2 game
...
Issue #839
2022-12-24 13:33:16 +01:00
Flyinghead
53ed006a54
naomi: 18wheeler, soulsurfer and wldrider input improvements
...
18wheeler: limit wheel range. Issue #693
18wheeler: Implement gear tristate lever with 2 buttons. Fake motor drive board to avoid error messages in deluxe version.
soulsurfer: floormat button/contact is always on
wldriders: unmap rear brake so it doesn't have to be released
2022-12-24 10:48:17 +01:00
Matt Phillips
4b53edb3bd
Basic CPU graphs using ImPlot ( #838 )
2022-12-23 16:07:35 +01:00
Flyinghead
62085539a7
dynarec: reg alloc 64-bit regs. avoid some interpreter fallbacks
...
Option to reg alloc 64-bit regs in two host regs. Used when FPSCR.SZ ==
1 (64-bit reg and memory transfers.) Enabled for arm, arm64 and x64
(windows only) dynarecs.
Don't fallback to interpreter when FPSCR.PR==1 (double precision) for
FMOV, FLDS and FLTS.
2022-12-23 16:06:54 +01:00
scribam
1c8e558e25
deps: update glslang and vulkan
2022-12-23 10:14:31 +01:00
Flyinghead
5703bc7df2
ui: arcade games appear twice if the game list is updated
2022-12-23 10:13:26 +01:00
Flyinghead
95a00a165a
sentry: upload crashes after reading emu.cfg to comply with user choice
...
android: get rid of Send Logs button
2022-12-23 10:06:24 +01:00
Flyinghead
599bc8a823
arm64 dynarec: need up to 5 ops for mem accesses
...
Issue #837
2022-12-22 14:55:42 +01:00
Flyinghead
9578841480
pvr: fix texture bleeding before making indexes
...
fix crash with sorted triangles.
Issue #836
2022-12-22 13:15:32 +01:00
Flyinghead
b5d8cecd91
android: delay sentry upload to avoid broken pipe. Log more stuff
...
tentative fix for the broken pipe error when uploading to sentry on
android.
init log and sleep for 5 secs before upload
log git version, gpu name and version, renderer type and game id
2022-12-21 16:49:08 +01:00
Matt Phillips
6d913f42c8
Host-side profiler - initial commit ( #834 )
...
* Host-side (Flycast) profiler - initial commit
* Profiler - configurable frame warning time
* Compile fix for !DC_PROFILER
2022-12-21 11:24:11 +01:00
Flyinghead
1e0a875fa3
sentry: various fixes. Upload last log lines with the minidump
2022-12-21 11:23:15 +01:00
Flyinghead
4d77ce5a66
unused function
2022-12-20 22:24:15 +01:00
Flyinghead
f3a6fb7d8b
sentry.io integration
2022-12-20 21:52:46 +01:00
Flyinghead
b6f73d96ca
vk,dx: provoking vtx with sorted triangles. No depth write in per-strip
...
Provoking vertex wasn't set with sorted triangles (dx9, dx11, vulkan)
vk,dx9: No depth write in per-strip as in opengl and dx11.
2022-12-20 21:47:19 +01:00
Matt Phillips
13f3c8281f
Fixed single stepping, added support for vCont packets and ranged stepping (faster), initial work to support other breakpoint types
2022-12-18 16:27:38 +01:00
Flyinghead
0107435a73
iOS build fix
2022-12-17 11:25:58 +01:00
Flyinghead
ce674a872a
dyna: implement missing ops: ldc/stc sr/fpscr, tas, div1
...
add dynarec implementations for missing ldc and stc ops with sr and
fpscr
add dynarec implementation for tas.b
canonical implementation for div1
delete unused reg_old_sr_status and reg_sr
2022-12-17 11:09:51 +01:00
Flyinghead
51758b965e
ggpo: disable full framebuffer emulation. memwatch perf fix
...
Disable full framebuffer emulation with ggpo if threaded rendering is
enabled. Would require thread synchronization on VRAM page map.
memwatch: do single lookup on page map in hit()
2022-12-17 10:54:01 +01:00
Flyinghead
7fec511463
maple: don't recreate devs on rollback. Raise error if dest is invalid
...
maple: raise error is maple dest dma address isn't on RAM
maple: don't recreate maple devices when loading a rollback savestate
2022-12-17 10:51:12 +01:00
Flyinghead
2800927fa1
arm64 dynarec: can't rely on faultAddress with 512 MB vmem
...
Use x0 instead
2022-12-16 20:40:23 +01:00
Flyinghead
f133e3cccb
verify() must not call a function with side-effect
2022-12-16 20:40:23 +01:00
Matt Phillips
b0a520fe18
Various GDB fixes and improvements ( #832 )
...
* Enabled GDB server, compile fix for MSVC, added GDB option to config
* GDB - 'vMustReplyEmpty' should not be explicitly handled, it is a test for how the target responds to unknown vpackets (which was incorrect)
* GDB wait for debugger option to allow debugging from bootstrap, and Event::Resume moved after renderer init so agent.interrupt() can pause the renderer
* Draw "Waiting for debugger", and fixed UI not rendering last frame before a state change
* Fixed GDB regs/mem endianness
2022-12-16 20:34:30 +01:00
Matt Phillips
0c081a9597
Support for comma separated "-config section:key=value,section:key=value,..." command line syntax
...
(cherry picked from commit 451997d01e
)
2022-12-15 22:49:55 +01:00
Matt Phillips
7176460de3
External windows serial console ( #828 )
...
* Open external console for serial output on Windows
(cherry picked from commit e41a1410b9
)
* Compile fix for _UNICODE
(cherry picked from commit 4e6927bd27
)
2022-12-15 22:49:20 +01:00
Matt Phillips
733a1fa73d
Added USE_DX9 and USE_DX11 as configurable options in CMake
2022-12-15 22:48:38 +01:00
Flyinghead
e3809ba058
gl: macOS build fix
2022-12-14 23:43:36 +01:00
Flyinghead
4d3de39c64
gl: no GL_PRIMITIVE_RESTART and glPrimitiveRestartIndex in GLES
2022-12-13 23:42:11 +01:00
Flyinghead
1765e50703
lr: missing symbols and functions
2022-12-13 23:33:24 +01:00
Flyinghead
f9feaa313b
pvr: sort triangles during parse. Use primitive restart
...
Sort triangles during ta_parse. Use the same index as other polys. Store
results in rend_context.
Use primitive restart if available to avoid too many degenerate
triangles.
Update renderers.
2022-12-13 22:57:57 +01:00
Flyinghead
9781d8971a
gl: use static buffers for quad vertices
2022-12-13 20:56:19 +01:00
Flyinghead
a0a9b5bbc5
holly: crash when reading a write-only register
2022-12-12 22:15:12 +01:00
Flyinghead
c684faf423
naomi widescreen cheats: initd, initdv2, gunsur2, spawn, cspike, jambo
...
Widescreen cheats for initd, initdv2, gunsur2, spawn, cspike, jambo,
soulsurf.
Courtesy of Goddamn Superhero
Disable ws chear for House of the Dead 2 (wrong gun coordinates)
2022-12-11 16:33:30 +01:00
Flyinghead
cdca559d99
ggpo: optimize memwatch, save/load state. endOfFrame on vblank in
...
ggpo: Optimize memwatch and load/save state. Unprotect memory before restoring a state. Smaller timesync wait. Missing error handling.
pvr: call ggpo::endOfFrame() on vblank in only
ssa: fix warning
2022-12-10 17:19:34 +01:00
Flyinghead
d76dff8594
ggpo: don't call exit on assert. clean up logging
...
Don't call exit when an assertion fails, throw an exception instead. Log
ggpo API errors.
Deleted most ggpo logging methods and use flycast logging.
2022-12-10 13:06:31 +01:00
Flyinghead
1ab4eb00c0
tex cache: minor key mask fix. egl: no need for depth/stencil surface
...
Part of PalSelect was used as cache key for palette textures
PrintTexture fix
egl,wgl,xgl: No need for depth/stencil surface
gl: non-functional refactoring
2022-12-09 17:49:32 +01:00
Flyinghead
32e3e7d9c5
vmem: no more 4GB vmem mode. only map elan RAM in naomi2 mode
...
Do not attempt to reserve 4GM of virtual space on 64-bit hosts. Use
512MB everywhere.
Don't map elan RAM if not needed and dont protect/unprotect it in
memwatch.
2022-12-09 17:37:49 +01:00
Flyinghead
98123b9215
vk: don't sort triangles in per-strip mode
...
useless and now crashes since vertices aren't in ascending order anymore
2022-12-08 21:35:51 +01:00
Flyinghead
9069a49145
pvr: take jitter into account in spg sheduler. fix scheduler edge case
...
Take jitter into account when calculating current scanline
Scheduler would miss the next int if it's on the next scanline
Support for Hblank interrupt mode 2 (every scanline)
2022-12-06 22:04:37 +01:00
Flyinghead
d417237e64
Merge remote-tracking branch 'origin/master' into dev
...
# Conflicts:
# core/emulator.cpp
2022-12-06 21:47:50 +01:00
Flyinghead
446619ce85
atomiswave only has 2 MB of aica ram
...
new savestate version
build.h clean up
2022-12-06 20:51:45 +01:00
Flyinghead
f5fa1f6210
holly, sh4: reg access handlers don't need size. SB_FFST constant 0
2022-12-06 20:42:00 +01:00
Flyinghead
976fb99aa3
pvr: naomi mvsc2 needs more rendering cycles
...
Regression introduced by 0b0e64304e
2022-12-06 19:50:34 +01:00
Flyinghead
a0529d1cfc
drop support for legacy .reicast config dir (linux, macOS)
2022-12-06 18:09:43 +01:00
Flyinghead
8001af9743
sh4: proper write masks for memory-mapped registers
2022-12-06 17:58:30 +01:00
Flyinghead
e48b72a859
race condition causing emu thread exceptions to be ignored
...
in multithreaded mode, checkStatus() *must* be called to report
exceptions thrown by the emu thread
2022-12-05 21:24:27 +01:00
Flyinghead
71ba018782
widescreen cheatcode for vf3tb US
...
courtesy of goddamn superhero
2022-12-05 18:36:49 +01:00
Flyinghead
59ff44132b
aica: get rid of audio samples batching
...
Some audio issues are reported because of this option and the now
correctly clocked aica cpu.
2022-12-05 18:34:52 +01:00
scribam
8a0323ec08
deps: update sdl to version 2.26.1
2022-12-04 16:32:08 +01:00
Flyinghead
4c7df6c7f4
pvr: don't merge polys in per-triangle. merge polys in per-strip
...
Merging polygons in per-triangle can produces a large number of
degenerate triangles (up to x3), which must then be sorted, resulting in
a performance hit. This is useless since the sorted triangles are merged
after being sorted. (Regression introduced by
20d25059bf
)
Issue #818
In per-strip mode, polygons are now sorted before creating the index and
merging. So it doesn't have to be done in the renderer anymore.
2022-12-04 16:31:39 +01:00
Flyinghead
a40210c55c
no aica batching for Tony Hawk's 1 & 2
2022-11-29 17:27:31 +01:00
Flyinghead
034f90c1e0
ggpo: zero-init unused but sent inputs
...
avoids lots of useless rollbacks
2022-11-29 17:12:15 +01:00
DisasterMo
64223927b8
Fix Crowdin config & workflow
...
Also add new languages and update translation scripts
2022-11-28 15:00:25 +01:00
tunip3
e2c03255bb
make Xbox display scale scale with res instead of just switching between 2 presets for 1080p and 4k
2022-11-25 19:21:10 +01:00
scribam
63495d3a6a
deps: update sdl to version 2.26.0
2022-11-22 17:23:32 +01:00
scribam
88466ec352
vulkan: add missing simplification (follow-up from 8426bcad
)
2022-11-19 12:53:28 +01:00
scribam
f6532ca27a
fix some warnings
2022-11-19 12:52:26 +01:00
Flyinghead
76cf989455
disable free play for radirgy noa
...
Issue #527
2022-11-14 16:00:11 +01:00
Flyinghead
5b8e932509
move steam deck hack to sdl/sdl.cpp
2022-11-14 15:59:19 +01:00
scribam
993b705d8b
vulkan: use dynamic dispatch loader
2022-11-09 17:20:05 +01:00
Flyinghead
19204882c4
pvr: reschedule spg when SPG_HBLANK_INT is updated
...
Fixes Triggerheart Exelica input lag
Issue #691
2022-11-04 18:34:43 +01:00
vkedwardli
605dc59f8d
Fix Steam Deck's Game Mode also
2022-11-04 16:01:06 +01:00
Flyinghead
2332884d8b
maple: lower xfer rate to 1 Mbps. More accurate payload size calculation
...
Maple bus max xfer rate is 2 Mbps but actual speed is 1 Mbps.
Fixes Slave Zero (PAL) freeze with HLE.
Some improvements on payload size calc. Clean up.
2022-11-04 11:22:50 +01:00
Flyinghead
94f3d80a75
Merge remote-tracking branch 'origin/master' into dev
...
# Conflicts:
# CMakeLists.txt
# core/hw/pvr/Renderer_if.cpp
# core/oslib/audiobackend_alsa.cpp
# core/rend/vulkan/desc_set.h
# core/rend/vulkan/oit/oit_drawer.cpp
2022-11-02 20:12:34 +01:00
Flyinghead
0b0e64304e
pvr: adaptive end-of-render interrupt delay
...
EoR interrupt delay now depends on the TA context size.
Issue #634
Fixes issues with FMV in some WinCE games (Resident Evil 2, Next Tetris,
Nightmare Creatures 2)
2022-11-01 18:29:44 +01:00
Flyinghead
5a1a766bd4
pvr: emu unresponsive if no render. Present when FB_R_SOF = FB_W_SOF
...
Fix no input polling while waiting for present.
Present frame immediately if FB_R_SOF = FB_W_SOF.
2022-11-01 18:23:54 +01:00
Flyinghead
c15f446ffc
hle bios: fix pal detection for some pal wince games
...
Caesar's Palace 2K, The Next Tetris, KISS
2022-10-31 11:31:21 +01:00
Flyinghead
40dbf53792
pvr: use render pass # to read the right tile when marking blocks
...
Fixes Unreal Tournament flashing/black screen.
gl: mark vram area in rtt to avoid overwriting data (Worms World Party)
Force Worms World Party to use CopyToVRam (regression due to
6a5db32d5d
)
Don't calculate precise aspect ratio and use 4/3 instead (or more if
widescreen or stretch).
Fix clipping issue when using SCALER_CTL.vscalefactor. Avoir crash when
clip values are >= width or height.
vulkan: RenderFramebuffer wasn't working at all if !EmulateFramebuffer
2022-10-30 12:10:24 +01:00
vkedwardli
0cbf6f6601
Fixing Steam Deck's wrong dpi caused by incorrect 60mm * 60mm EDID ( #796 )
2022-10-27 22:00:22 +02:00
bslenul
c8fc873cf9
[Game List] Separate DC and arcade games
2022-10-26 15:37:17 +02:00
Flyinghead
b935bef906
gl: missing init of width and height in GlFramebuffer
...
gl,vk,dx9,dx11: always use the TA context copy for TA_GLOB_TILE_CLIP and
SCALER_CTL
2022-10-25 17:50:41 +02:00
Flyinghead
c1f0dd81d2
pvr: copy pvr regs at start_render time to avoid concurrent update
...
copy TA_GLOB_TILE_CLIP and SCALER_CTL to rend context when starting
render. Use rend context copy to calculate framebuffer size.
Fixes framebuffer size glitches in vf4 water stages.
lr: pass aspect ratio when resizing.
dx11: Wrong sizing of rotated games.
gl: test automation fixes.
2022-10-25 15:00:04 +02:00
Flyinghead
5722dc90f0
Full framebuffer emulation. Renderer interface changes
...
Helps for:
Densha de Go! 2, Issue #171
Vigilante 8, Issue #275
Xtreme Sports
Sonic Shuffle
The Ring of the Nibelungen
2022-10-23 16:32:42 +02:00
Flyinghead
e3c260f4ca
pvr: don't use op list to mark block if tile pointer is null
...
Naomi Doom sets the opaque list block to null in the tile, but op size
in TA_ALLOC_CTRL is non-zero. So use the TR list in this case.
Issue #682
2022-10-23 15:49:23 +02:00
Flyinghead
d1e48c657e
missing overrides
2022-10-23 15:44:12 +02:00
Flyinghead
decf70c87c
get rid of INLINE, NOINLINE, __forceinline
2022-10-22 22:14:19 +02:00
Flyinghead
922df88cdd
msvc build fix
2022-10-22 13:05:11 +02:00
Flyinghead
f25aeee756
audio: don't crash if audio init fails. Fall back to auto
...
Don't crash if an audio backend fails to initialize.
Fall back to auto or run without sound.
Better audio backend framework
2022-10-22 12:08:05 +02:00
Edward Li
2b36953fdc
Always fills the window with responsive size
2022-10-21 10:55:34 +02:00
Edward Li
1dcf302665
Add Aspect Fit & Aspect Fill description for Widescreen and Super Widescreen
2022-10-21 10:54:59 +02:00
Flyinghead
1fd95c2886
Roadsters (US) doesn't support RGB cable
...
Issue #791
Compile warnings
2022-10-21 10:54:26 +02:00
Edward Li
93e1d7fcee
`rend_resize_renderer_if_needed` check for window size changes also
2022-10-20 09:51:04 +02:00
Flyinghead
b2b860bb8e
gl: vmu not showing and memory corruption
...
Fix vmu not displayed
Memory corruption when restarting gl driver (android)
2022-10-20 09:49:53 +02:00
Flyinghead
0bd88fc9d9
gui: div by zero crash if window is too small
2022-10-19 10:07:48 +02:00
Flyinghead
20f9450218
ignore start() if emulator already started
...
can happen on android
2022-10-19 10:06:53 +02:00
flyinghead
401c402afc
Revert "cmake: use more system libs ( #775 )" ( #785 )
...
This reverts commit c5c941e928
.
2022-10-19 10:04:21 +02:00
Flyinghead
77a105d888
set USE_DX9 in CMakeLists.txt instead of build.h
2022-10-18 10:12:27 +02:00
Flyinghead
257c6b729f
rzip: allow multiple writes
2022-10-18 10:08:02 +02:00
Alexandre Bouvier
c5c941e928
cmake: use more system libs ( #775 )
2022-10-18 10:04:15 +02:00
Edward Li
6add19fb04
unprotect elan memory during `dc_reset` hard
2022-10-15 21:32:49 +02:00
Flyinghead
02d4b821d7
naomi: allow eeprom-based settings to be overridden (rotate, region)
2022-10-12 22:59:46 +02:00
scribam
3b3391c0d1
deps: update sdl to version 2.24.1
2022-10-08 18:33:11 +02:00
scribam
8426bcad27
vulkan: simplify function calls
2022-10-08 18:32:01 +02:00
Flyinghead
7da0549b8c
operator [0] on empty vector crashes
...
Issue #763
2022-10-04 18:21:10 +02:00
Flyinghead
b821ece052
alsa: default to 'auto' device if configured one can't be opened
...
Issue #762
2022-10-02 17:09:13 +02:00
Flyinghead
b240da41e0
lr: use VK_API_VERSION_MAJOR/MINOR/PATCH
2022-09-26 11:19:15 +02:00
Flyinghead
1858cf3b33
Merge remote-tracking branch 'origin/master' into dev
2022-09-24 19:28:38 +02:00
Edward Li
2b8f5a7b9d
Print correct version info for Vulkan and MoltenVK
2022-09-21 14:43:28 +02:00
Edward Li
c2e1425209
Stop Apple fanboys from asking where is Metal
2022-09-21 14:43:28 +02:00
scribam
c9c1218234
vulkan: add deps as submodules and sync with Vulkan 1.3.224.1
2022-09-18 16:56:56 +02:00
scribam
11d776aea1
vulkan: remove external files
2022-09-18 16:56:56 +02:00
Flyinghead
f88abf9987
extra depth scaling for south park rally
...
fixes car depth on character selection screen
2022-09-14 17:52:35 +02:00
Flyinghead
4a4fa7792f
vk oit: limit drawer swap chain to 2, same as non-oit
...
Fixes flashing during partial redraws (south park rally)
2022-09-14 17:48:57 +02:00
Flyinghead
aa97a6d64f
pvr: last naomi2 poly was ignored in some cases
...
Fix the disappearing moustache in wild riders
Fix other potential edge cases in pvr parsing
2022-08-25 19:34:23 +02:00
Flyinghead
e0d87eb093
Merge remote-tracking branch 'origin/master' into dev
...
# Conflicts:
# core/rend/gui.cpp
2022-08-22 13:09:56 +02:00
Flyinghead
85b8c599c4
pvr: object list is sometimes shared between op and tr modvols
...
Region tile object list pointers can be identical for op and tr modvols,
in which case tr modvols should be drawn using op modvols geometry.
Used by crazy taxi 1/2, alien front online, daytona usa and probably
many others.
Issue #717
2022-08-22 12:38:04 +02:00
scribam
72136c2bfc
deps: update sdl to version 2.24.0
2022-08-22 12:29:34 +02:00
Flyinghead
71e9420929
macOS: std::exception handler not catching FlycastException
...
Catch std::runtime_error instead
vk: Clear boxart texture cache before shutting down imgui driver
2022-08-14 18:39:09 +02:00
vkedwardli
3c94cd3194
Fix macOS accent menu ( #708 )
...
* `SDL_StartTextInput` only when textfield is focused
* [macOS] "Reveal in Finder" button for Home Directory
* only enable for `USE_SDL`
2022-08-04 17:35:40 +02:00
Flyinghead
a6ac753c64
boxart: ignore disks with invalid ip_meta. sanitize disk id chars
2022-07-29 10:48:39 +02:00
Flyinghead
55600c40a9
sdl: use exp scale for rumble power
...
Better sensitivity for low power values.
Issue #707
2022-07-28 10:47:42 +02:00
Flyinghead
9070c246d4
move iso9660.h
2022-07-28 10:43:44 +02:00
bslenul
75ff5409f4
Switch broadcast region for San Francisco Rush 2049 and Sega Smash Pack - Volume 1
2022-07-25 11:26:12 +02:00
Flyinghead
642fad9a6e
cfg: per-game settings must be deleted when changed back to standard
...
When a per-game setting is the same as the standard one, it is ignored
and not saved to emu.cfg. However the previously saved per-game setting
wasn't deleted, making it impossible to revert.
Issue #653
2022-07-25 11:25:42 +02:00
Edward Li
885862a45e
Get writable log path for macOS also
2022-07-22 18:12:43 +02:00
Edward Li
9b751fced8
NSLog with UTF-8, better color handling
2022-07-22 18:12:43 +02:00
Flyinghead
19ccc6a38d
uwp build fix
2022-07-21 14:51:20 +02:00
Flyinghead
ad8b41adb0
boxart: extract 0GDTEX.PVR. Offline scraping
...
extract iso9660 file system utility out of reios
.pvr limited parser
2022-07-21 10:43:45 +02:00
Flyinghead
807b8dea91
lr: Framebuffer size and aspect ratio. Fix vmu size and position (GL)
...
gl4: fix lightgun xhair size and position
2022-07-19 20:26:37 +02:00
Flyinghead
8e8935b9c4
pvr: xform matrix 240p support. screen stretching changes
...
Use FB_R_CTRL.vclk_div to detect progressive mode.
transform_matrix: Support non-4:3 aspect ratio such as 640x240. Don't
expect 480 height. Issue #690
Add black bars at top and bottom if screen aspect ratio is too low.
Issue #584 .
Framebuffer size doesn't depend on screen stretching. Stretching is done
when blitting to screen.
lr: correct subsequent stretching when drawing vmus and xhair
2022-07-18 18:21:09 +02:00
Flyinghead
76bf574668
gl,gl4: disable anisotropic filtering if not linear
...
Issue #695
2022-07-15 20:36:29 +02:00
Flyinghead
9d17fc15a3
gdrom, hle: don't restart cdda if paused or playing
...
Fix regression due to ab791d1b9c
(unpausing restarts the current track)
Issue #690
2022-07-14 16:49:56 +02:00
Flyinghead
1cadd4e923
gdrom: set sub-q channel flag on audio tracks in TOC (ADDR)
...
Fixes V-Rally 2 CDDA tracks not playing. Issue #534
2022-07-14 16:43:41 +02:00
Flyinghead
ab791d1b9c
gdrom: ignore CD_PLAY when already playing, not when paused
...
Issue #690
2022-07-13 12:52:29 +02:00
Flyinghead
4f206d2773
pvr: set correct framebuffer size in 240p/pixel_double
...
Some games use 240p and pixel_double resulting in a 320x240 framebuffer.
Renderer should be resized accordingly.
Fixes linear filtering artifact in KoF dream match 1999 (Issue #690 )
2022-07-12 15:55:49 +02:00
Flyinghead
7f9d9b81aa
gdrom: don't reset current cdda sector on cd_play if already playing
...
Issue #690
2022-07-12 15:33:11 +02:00
Edward Li
c77c3ab015
DRY
2022-07-09 11:46:27 +02:00
Enrique Santos
c0e52b9a1a
load game: destroy old maple devices before create call
2022-07-08 20:38:16 +02:00
Flyinghead
0840da1bd5
sdl: fix inverted axis detection
2022-07-08 20:36:20 +02:00
Flyinghead
f4986008fe
jvs: fix 86-request decoding
...
Fixes kingrt66 inputs when networked
Issue #673
2022-07-05 14:34:57 +02:00
Flyinghead
19112aecb2
Merge remote-tracking branch 'origin/master' into dev
...
# Conflicts:
# core/hw/naomi/naomi_cart.cpp
2022-07-01 12:42:37 +02:00
Flyinghead
6a5db32d5d
don't protect RTT textures vram
...
Fixes Spikers Battle RTT texture spurious update before use
(transitions)
2022-06-27 13:37:22 +02:00
Flyinghead
b0f3e065be
ui: wrong scaling after imgui driver reset
...
ImGuiStyle::ScaleAllSizes() is cumulative so reset style before calling
it
Issue #676
2022-06-27 13:32:30 +02:00
Flyinghead
9a557978c4
gamesdb: fix exception when boxart is missing
2022-06-26 21:55:00 +02:00
Flyinghead
fe895211c1
ui: reset imgui driver before creating new one
...
Possible fix for Issue #676
2022-06-26 15:23:30 +02:00
Flyinghead
907131b7f5
allow ForceWindowsCE option to be used in per-game config
...
Issue #252
2022-06-24 13:27:21 +02:00
Flyinghead
76508146ae
cheats: only apply widescreen cheat if current value is expected
...
Issue #180
2022-06-24 11:47:24 +02:00
Flyinghead
7f28b767e4
gl: boxart clamp to edge if border not supported
2022-06-24 10:57:48 +02:00
Flyinghead
5f5a748031
boxart: batch uid searches. Bios image. More arcade rom name changes
2022-06-23 22:06:50 +02:00
Flyinghead
74852520dc
maxspeed: allow use of per-game network settings
...
Issue #671
2022-06-20 20:56:53 +02:00
Flyinghead
faec4d8e50
gl: always use int arithmetic in palette index glsl calculation
2022-06-20 20:52:15 +02:00
Flyinghead
d2aca1d621
savestate: overflow crash when serializing
2022-06-20 20:49:09 +02:00
Flyinghead
7bcd8c819a
arcade rom names update. non square boxart
...
Correct handling of non square images
Improve search for arcade game names
Retrieve other images if no boxart (titlescreen, screenshot)
Changed some arcade rom names to more friendly ones
2022-06-20 18:07:06 +02:00
Flyinghead
7209a61583
boxart: race conditions. revert dash in disk id hack
...
Filter BIOS by name like regular games.
2022-06-18 17:49:37 +02:00
Flyinghead
1523fafce0
vk: fix crash when resizing window in boxart mode
2022-06-17 16:17:58 +02:00
Flyinghead
3915c55251
boxart: skip invalid disks. fix disk id dash issue. save found status
2022-06-17 16:13:58 +02:00
Flyinghead
5259aa20e6
boxart: delete trailing [.*] in game names. Remove extension first
2022-06-16 17:03:14 +02:00
Flyinghead
11ecb473b6
new option to broadcast digital outputs over the network
...
Similar to MAME's "-output network" option. Should be compatible with
MAME Hooker and the like.
Limit boxart images loaded per frame to 10.
2022-06-16 16:50:26 +02:00
Flyinghead
54d92a11e8
build fixes
2022-06-15 22:38:05 +02:00
Flyinghead
5eb302898f
box art fetch and display
...
Issue #22
2022-06-15 21:22:12 +02:00
Flyinghead
05961ac883
android build fix
2022-06-11 13:41:44 +02:00
flyinghead
afd07c25ba
pvr: store tex address in render context. texture cache refactoring
...
Store FT_W_SOF1 and FT_W_CTRL in render context since they can be
modified before render end. New tentative fix for vf4 water reflection
flashing black during netplay.
Refactor texture cache to use constructors. RTT code moved from
renderers.
Partial revert of ddcd3861d3
2022-06-11 13:24:22 +02:00
flyinghead
7ab92d88b1
msvc x86 build fix
2022-06-10 17:57:53 +02:00
flyinghead
3780299803
win32 raw api: user-friendly names for devices
...
Issue #664
2022-06-10 17:20:29 +02:00
flyinghead
d78bb9ed3f
don't list hidden folders and files on windows. Better parent dir prompt
...
Issue #666
2022-06-10 15:29:28 +02:00
Flyinghead
b5f1552ed8
elan: don't crash on invalid texture xfer size
...
Issue #647 : fixes initdv3jb area conquered crash
2022-06-06 15:54:25 +02:00
Gabriel Morazán
397ddef68c
(Libretro) Actually allow DX11 only cores.
...
Simple build fix.
2022-06-02 18:11:49 +02:00
Gabriel Morazán
3ec7f293ee
(Libretro) Allow a DX11 only core to be built. ( #657 )
...
Main use case is Xbox systems.
2022-06-01 22:27:51 +02:00
flyinghead
26c8e8dab8
dx11 oit: naomi2 regression. Tr modvols shader needs divPosZ too
2022-06-01 19:26:56 +02:00
Flyinghead
fdcea88519
gl4: wrong depth for transparent polys with native depth interp
...
Issue #630
2022-06-01 19:26:56 +02:00
flyinghead
bf6c73060b
native depth interpolation option to help AMD gpus
...
When enabled, set 1/z in pos.w and use native interpolation for colors,
UV and depth.
Get rid of manual modvol clipping in dx11.
2022-06-01 19:26:56 +02:00
Flyinghead
ddcd3861d3
ggpo: don't protect rtt texture vram if ggpo is enabled
...
tentative fix for flashing water reflection texture in vf4 during
netplay
2022-05-31 17:42:42 +02:00
Flyinghead
971d47eb42
sdl: SDL_QuitSubSystem() on exit
...
Tentative fix for issue #654
2022-05-31 17:42:42 +02:00
Enrique Santos
13bd42bdab
chat: disable window timeout after you respond to message
2022-05-30 16:15:44 +02:00
Flyinghead
71ac212dc7
elan: disable texture for vertices without UV coordinates
...
Fixes initial D white transparent quad at start of race
2022-05-30 16:15:15 +02:00
Flyinghead
1268077f6b
cheat: missing cheat value in constructor
...
Fixes vf4tuned dimm check cheat writing random value (SH4 exception,
boot loop)
2022-05-29 13:30:06 +02:00
Flyinghead
167faff1f3
vk: invalid lightgun crosshair if maple device A isn't a lightgun
2022-05-28 12:58:53 +02:00
Flyinghead
5ac0772a2a
vk oit: out of pool memory with moltenvk during render to texture
2022-05-26 18:06:30 +02:00
Flyinghead
e2c2d6606d
Fix Dead or Alive 2: Limited Edition (JP) widescreen cheat
...
Issue #625
2022-05-26 17:54:45 +02:00
Flyinghead
48361f58b6
vk oit: wrong temporary framebuffer dimensions
2022-05-25 16:44:24 +02:00
Enrique Santos
dcb439f74a
add ggpo chat window timeout
2022-05-23 11:42:11 +02:00
flyinghead
739a27be63
dx11 oit: render target and depth/stencil must have same dimensions
...
Fixes glitches during doa2 attract mode (depth/stencil missing).
2022-05-23 11:41:37 +02:00
Flyinghead
e84cdce398
reios: flashrom read returns 0 on success. system id/timezone flash fix
...
flashrom read returns 0 on success, not size read.
Fixes Slave Zero (PAL) crash
2022-05-21 15:46:22 +02:00
Flyinghead
af2fe242f9
flash: console id is checksummed
2022-05-18 14:58:21 +02:00
Flyinghead
0fb177bf85
reios: fix regression on many games due to 77a2bbbb
...
Jeremy McGrath
Skies of Arcadia
Speed Devils Online
Sydney 2000
Tech Romancer
Time Stalkers
Virtua Athlete 2000
Quake 3 (EU)
Climax Landers (JP)
Frame Gride
Pop'n'Music 1 & 2
Simple2000 2 & 3
2022-05-18 14:56:14 +02:00
Edward Li
baab70c509
Rumble using MacBook's Taptic Engine (take 2)
2022-05-17 16:37:37 +02:00
scribam
12929c4571
openmp: use _OPENMP preprocessor, search openmp pkg unconditionally if enabled
2022-05-17 16:36:57 +02:00
Flyinghead
62522e4eb3
vk: naomi2 crash when lightModel is null
...
fixes crash at end of tutorial in kingrt66
2022-05-17 16:36:34 +02:00
Flyinghead
221060cc70
widescreen cheat for Dynamite Deka2 (JP), Zombie Revenge (naomi)
...
Better Dynamite Deka ex (naomi) widescreen cheat.
Courtesy of Goddamn Superhero
2022-05-16 13:06:38 +02:00
Flyinghead
58d1f7cee1
pvr: reset nextContext in Reset(). Use tactx_Alloc for direct fb render
...
Fix crash with multipass renders
Issue #634
2022-05-16 13:04:38 +02:00
Flyinghead
430256266f
pvr: lightModels TA overrun on beach spikers
...
Better sizing of TA_context lists
2022-05-15 13:41:03 +02:00
Flyinghead
f9e38b11d9
pvr: restore TA_context pool
...
fixes performance regression on android
2022-05-15 13:37:58 +02:00
Flyinghead
78e075546a
libretro android build fix
2022-05-15 13:35:23 +02:00
Flyinghead
903c768f7f
vk oit: First frame after init wasn't displayed
2022-05-13 17:12:31 +02:00
Flyinghead
cd22ba1a2b
android: use WifiManager.MulticastLock to receive broadcast packets
...
In many cases, broadcast UDP packets can't be received on android unless
a MulticastLock is held.
2022-05-12 17:39:49 +02:00
flyinghead
cce8cb8528
dx11 oit: missing TextureFiltering support
...
Issue #628
2022-05-11 19:16:31 +02:00
Flyinghead
4554450d1d
oit: add max layers and pixel buffer size options
2022-05-05 18:01:05 +02:00
Flyinghead
a0d1dbf833
dx11: don't create the device in debug mode
2022-05-04 19:38:43 +02:00
Flyinghead
a1a89df17f
change vf4ft dimm check cheat. Don't apply cheat if not needed.
...
Fixes the SH4 exception seen with the previous cheat on some platforms.
Don't write memory if value is unchanged to avoid unnecessary protection
faults.
2022-05-04 10:30:35 +02:00
Flyinghead
cf36384481
use nearest/point sampling to draw framebuffer if nearest is forced
2022-05-03 17:55:02 +02:00
flyinghead
9103371362
vk: increase descSet pool size for storage buffers and input attachments
...
Fixes out of host memory error on macOS
Issue #619
2022-05-03 17:49:46 +02:00
flyinghead
1b5ad34c8e
dx11: (oit) use temporary render target for multipass
...
Render to temporary render target at end of pass and swap with regular
RT.
Fixes Tony Hawk 2 missing transparent geometry and character shadow.
Issue #618
2022-05-03 17:47:43 +02:00
Flyinghead
3cc991fa4f
oit: poly number/vertex id overflow
...
Use 17 bits for vertex id but substract first vtx index
Use 13 bits for poly number instead of 12
Panzer Front uses more than 4095 tr polys.
Issue #616
2022-05-01 12:33:53 +02:00
Flyinghead
0181685d2f
cheats: use software name as additional condition for widescreen
...
don't enable widescreen cheat for code veronica X
Issue #229
2022-04-30 12:08:36 +02:00
Flyinghead
39bb94dd55
jvs: don't scale ninja assault lightgun coordinates
...
Fixes reload issues (Issue #610 )
2022-04-30 11:50:56 +02:00
Flyinghead
77a2bbbb8d
reios: cancel gd dma int in g1_end_dma. drv_stat returns busy when busy
...
Cancel G1 DMA interrupt in G1_DMA_END (fixes MSR, Psychic Force, Pro
Pinball, Sega Swirl)
GET_DRV_STAT must return busy when drive is busy (fixes Hell Gate, Zero
Gunner)
Better named constants
2022-04-29 15:18:41 +02:00
Flyinghead
afb0a80de1
pvr: autosort needs empty passes to be accounted for
...
Issue #612
2022-04-29 11:37:17 +02:00
Flyinghead
49932e02a6
gdrom: generate raw subcode
2022-04-27 14:32:53 +02:00
Flyinghead
990a4ad583
vk: ignore pipeline cache if loading fails
2022-04-27 14:30:03 +02:00
Flyinghead
fc9e1e401b
naomi: emulate midi ffb drive board response
...
needed for driving simulator
2022-04-27 14:28:58 +02:00
Flyinghead
3b81bbcae5
naomi2: gmp diffuse/specular flags select vertex or model colors only
...
These flags shouldn't be used to disable diffuse/specular shading
Fixes road surface glitches in initdv3e (Usui map)
2022-04-21 13:55:09 +02:00
Flyinghead
902fc2cbe8
naomi: override Region settings if current region BIOS isn't found
2022-04-20 14:16:15 +02:00
Flyinghead
50f5dabf4a
naomi2: use diffuse/specular color before light routing
...
fixes lion's jacket color and shun's face glitch (vf4)
2022-04-20 14:13:42 +02:00
scribam
aa6c9e2106
msvc: fix linking issues in debug build
2022-04-17 13:24:37 +02:00
Flyinghead
c625cc68bf
lr: increase vk descSet pool size. Insert card binding
...
vk: Use same descriptor set pool sizes for standalone and core
lr: bind "Insert Card" to L button (Naomi button 6)
lr: reset input descriptors when loading a new game
lr: don't reset maple devices in arcade mode: reloading eeprom cancels game settings
2022-04-17 13:23:16 +02:00
Flyinghead
039c666247
more types.h clean up. better aica handler templates
2022-04-15 17:03:49 +02:00
Flyinghead
ed5c24c281
arm64 build fix
2022-04-15 11:17:22 +02:00
Flyinghead
f2f4010203
clean up types.h, refactoring
2022-04-14 11:34:45 +02:00
Flyinghead
a9e261d280
simplify TA parsing
2022-04-13 20:36:52 +02:00
Flyinghead
a710674cd4
gui: init once. reset ui driver when needed. android 120+ Hz support
...
ImGui is now initialized once at startup and shutdown before
terminating. graphics initialization is independent.
Move more imgui stuff into imgui drivers.
switch: set scaling on external screen to 1.4, same as xbox
UI scaling refactoring.
2022-04-13 18:06:19 +02:00
Flyinghead
ddfc00ed9f
Merge remote-tracking branch 'origin/master' into dev
2022-04-13 16:29:41 +02:00
Flyinghead
ac71970561
don't save built-in cheats (vf4 dimm check)
2022-04-13 13:10:56 +02:00
Flyinghead
fd50529d86
gl: (lr) black screen when vmu display is on
...
need to call glBindVertexArray(0) to avoid VAO being modified by the
frontend
2022-04-12 18:23:09 +02:00
Flyinghead
15b21fff2b
vk: don't use anisotropic with nearest. Use linear mipmap filter
...
Issue #580
2022-04-11 13:35:48 +02:00
scribam
f46bccfecd
cmake: reunified dx9 files
2022-04-10 11:28:09 +02:00
flyinghead
d035af7ff0
xbox: low resolution (640x480) with recent firmware
...
Device ids for xbox series s/x returned from
GetGamingDeviceModelInformation() have changed
2022-04-09 12:04:51 +02:00
Flyinghead
e0058c17ff
lr: don't terminate emu on deinit. gl4: buffer wasn't released on term()
...
shared libraries containing gnuc unique symbols are never unloaded on
linux, and possibly other platforms. So don't terminate the emulator on
deinit and init it only once.
Issue #566
gl4: buffer not released on term() was causing crashes or black screen when restarted.
2022-04-05 14:53:47 +02:00
Flyinghead
bf61f5cfe8
Merge remote-tracking branch 'origin/master' into dev
2022-04-04 12:11:10 +02:00
Flyinghead
8dcc25e1a9
ta: default base/offset color is white, not black
...
fixes black players in NHL 2K
2022-04-04 11:47:11 +02:00
Flyinghead
a428167dc6
naomi network: alienfnt startup crash if not connected
2022-04-04 11:43:54 +02:00
Flyinghead
48e3a3eb68
aica: double arm clock speed
...
actual aica arm clock seems to be 22.5792 MHz, which means 512 cycles
per sample at 44.1 KHz (from 256)
fixes vf4 audio hiccup in character selection screen
2022-04-03 20:53:44 +02:00
Flyinghead
a635fb3f77
test automation build fix, better exit
2022-04-03 20:46:50 +02:00
scribam
274f2fe10d
ci: add ninja, update actions and ccache support
2022-04-03 15:38:49 +02:00
Flyinghead
320f679038
win32 build fix
2022-04-02 16:59:57 +02:00
Flyinghead
94c20ba29f
elan: reset TA parser before loading state
2022-04-02 16:43:15 +02:00
Flyinghead
8baebcfb5b
maxspeed networking. Store aw force feedback value
2022-04-02 16:41:52 +02:00
flyinghead
2c96d49cf2
dx9, dx11: support for forced point/linear tex sampling and anisotropy
2022-04-02 11:18:48 +02:00
Hugo Locurcio
a9cabdc342
Add texture filter override setting, expose anisotropic filtering
...
The new texture filter option can be set to:
- Default (keeps the game's intended filter mode).
- Force Nearest-Neighbor (crisper appearance).
- Force Linear (smoother appearance).
Additionally, mipmapping can now be enabled on nearest neighbor-filtered
textures (which is used if nearest-neighbor filtering is enabled, including
with anisotropic filtering).
Anisotropic filtering was already implemented in both OpenGL and Vulkan,
but it was not exposed in the GUI.
2022-04-01 16:00:41 +02:00
Hugo Locurcio
90a95b4688
Add 6×, 7×, 8× and 9× options for internal resolution
...
This can be used to get a smoother image (supersampling) on
1440p and 4K displays. The 9× setting is also suited for native
resolution rendering on 8K displays.
2022-04-01 16:00:28 +02:00
flyinghead
7fcce4a59b
naomi network: ignore WSAECONNRESET. Longer timeout for client
2022-03-30 15:48:23 +02:00
Flyinghead
554ffcd08f
naomi: use platform-independent network error codes (win32)
2022-03-30 14:13:02 +02:00
Flyinghead
af0574c04e
build fixes for msvc, ios and android
2022-03-27 15:57:01 +02:00
Flyinghead
6c38295d62
new naomi network protocol. vblank event. initd rumble support
...
new vblank event, used by cheats, lua and naomi net
new udp net protocol for naomi. rx/tx on vblank on emu thread.
input: rumble power configurable (Issue #158 )
ui: rumble intensity slider, enable/disable upnp
aica: hook to consume midi out
decode midi out to simulate rumble for initd
upnp can now be disabled
2022-03-27 15:23:21 +02:00
Flyinghead
1e01dbb151
wrong line padding value when copying RTT to vram due to previous commit
2022-03-26 20:51:07 +01:00
Flyinghead
be270259ee
crash with RTT and copy to VRAM if width > linestride
...
RTT texture width must not exceed FB_W_LINESTRIDE
fixes Flag to flag crash
2022-03-25 15:41:16 +01:00
Flyinghead
55e613fae5
widescreen cheats for gun spike, initdv3e, alpilotj, monkey ball
...
Courtesy of Esppiral
2022-03-21 17:51:31 +01:00
Flyinghead
a5bad2b9b7
more naomi widescreen cheats. Fix vathlete 4-player mode
...
widescreen cheats for asndynmt, doa2m, slashout, spikers battle,
18wheeler, beach spikers. Courtesy of Esppiral
vathlete needs 2 I/O boards for 4-player mode
2022-03-20 17:49:50 +01:00
Flyinghead
ebb251d8cf
widescreen cheat for vf4tuned
...
Courtesy of Esppiral
2022-03-19 11:30:45 +01:00
Flyinghead
56768f2d3d
naomi2: use TA parser. Use N2light directly with vk, dx11
...
Use TA parser to handle list type and clipping for Naomi 2 polys.
Pass all pass-throuch TA data to TA parser but stop on naomi2 command.
Set default projection matrix instead of identity (fixes Area conquered
screen invisible in initd).
Change N2Light and N2LightModel so they are usable in GLSL (vulkan) and
HLSL (dx11).
TA parser throws exception for unhandled param.
ta_vtx.cpp refactoring.
Support for subtractive lights (diffuse+specular). Used in some clubk
circuits.
Fix vulkan crash when direct FB render.
2022-03-16 17:28:45 +01:00
Flyinghead
5b3d36e081
naomi2: network support for clubk and initd
...
clubk: don't reverse handle by default
hotd2 doesn't have a proper game id or standard eeprom
2022-03-15 19:44:24 +01:00
Flyinghead
ad08590197
vulkan: cache per-poly desc sets in map
...
avoid desc set pool exhaustion in per-triangle
2022-03-13 11:39:30 +01:00
Flyinghead
53b5588bda
Merge remote-tracking branch 'origin/master' into dev
2022-03-13 11:01:27 +01:00
Flyinghead
1015a8c098
naomi2: vulkan support
...
oit: use #define instead of functions in GLSL
2022-03-12 17:56:46 +01:00
Flyinghead
27ddc215cc
naomi2: boost lights by constant factor. simplify shaders
2022-03-08 17:38:29 +01:00
Flyinghead
c11a6cd432
naomi2: partial gles2 compatibility
...
Issue #553
2022-03-07 20:32:08 +01:00
Flyinghead
514eedbc63
maple: do not raise maple_dma interrupt for light gun
...
Issue #474 (Virtua Cop 2 momentarily freezes when shot fired)
2022-03-07 19:16:49 +01:00
Flyinghead
1f61f80c92
input: fix naomi rotary encoders
...
Games with multiple JVS input boards poll inputs more than once,
ignoring some relative mouse movements.
Issue #557
2022-03-06 17:57:16 +01:00
scribam
830ffd0559
deps/picotcp: pico_ipv6_source_dev_find requires PICO_SUPPORT_IPV6
...
Backport 529074aab4
2022-02-28 07:24:50 +01:00
scribam
ed066df469
deps: update miniupnpc
2022-02-28 07:24:36 +01:00
Flyinghead
e5863920c4
naomi2: fix beach spiker crash
...
VUR vertices can also have environment mapping
2022-02-22 08:48:51 +01:00
Flyinghead
7f61b44d42
imgui: better drag scrolling code
2022-02-21 19:48:52 +01:00
Flyinghead
a5660fa2b4
missing changes from previous commit
2022-02-18 17:40:00 +01:00
Flyinghead
ecc03e3ebc
naomi: use boot rom id to configure eeprom
...
Make eeprom from scratch if it doesn't exist based on boot id info.
Override eeprom settings to make game happy
Change region to supported one
Get rid of per-rom region info in rom list
New option to configure Naomi games in free play
2022-02-18 17:35:20 +01:00
Flyinghead
af4638e83f
naomi2: fix another initdv2 end of race crash
2022-02-18 16:40:26 +01:00
Flyinghead
cecf1a5497
naomi2: fix initdv2 end of race crash
2022-02-17 18:31:20 +01:00
Flyinghead
f2374982b8
pvr: don't merge polys with != palette. 2nd pass sometimes ignored
...
polys with different palette index shouldn't be merged.
If a pass isn't using any opaque, it can't be found. Fall back to using
the transparent or punch-through list in this case.
2022-02-17 18:30:29 +01:00
Flyinghead
d736dd027d
naomi2: initd card support. lua: fix multi-threading crash
...
initial d card reader support. insert card button.
lua: use mutex to enforce thread-safety
2022-02-16 19:02:04 +01:00
Flyinghead
214db9e0b1
gl4: depth pass need texture and UV for punch-through polys
2022-02-15 17:18:32 +01:00
Flyinghead
3bbc89afc9
dx11: fix crash with modvols
2022-02-15 17:16:45 +01:00
Flyinghead
e35ccbbb18
naomi2: force region for some roms. elan clean up
2022-02-15 17:15:44 +01:00
Flyinghead
20571c5aa1
chd: MIL-CD support
...
Issue #529
2022-02-15 11:34:11 +01:00
Flyinghead
3872a6b475
libretro: support VMU and lightgun crosshair with dx11 OIT renderer
...
OIT support was missing
Issue #525
2022-02-15 11:06:51 +01:00
Flyinghead
083a1c85a8
gl: shader compile error on shield tablet
...
Don't use GL_NV_shader_noperspective_interpolation since it's not really
needed (and wasn't enabled)
Issue #510
2022-02-14 18:54:27 +01:00
Flyinghead
943e0285ac
libretro: support VMU and lightgun crosshair with dx11 renderer
...
Issue #525
2022-02-14 18:47:23 +01:00
Flyinghead
d7abfc688c
dx11: oit depth pass needs the palette for PT polygons
...
Punch-through polys may use a palette, which is needed for alpha testing
Issue #467
2022-02-14 18:41:38 +01:00
Flyinghead
8f01ef90cf
gl,dx9,dx11: only render frame when Renderer::present() has been called
...
Issue #511
2022-02-14 18:38:58 +01:00
flyinghead
8d071bf4ea
naomi2: dx11 support. fix ambient color. no depth write in per-strip
...
dx11: naomi2 support
n2: ambient color was swapping red and blue
gl, dx11: don't write depth in per-strip to avoid missing geometry,
prefer wrong depth order/blending for now
optimize naomi2 per-triangle sorting
2022-02-13 21:01:45 +01:00
Flyinghead
a14086d484
naomi2: shader error in gles. Invert clubkart wheel axis
2022-02-11 19:06:58 +01:00
Flyinghead
20d25059bf
naomi2: remove geom shader. Merge transparent polys. bump mapping fix.
...
elan: Get rid of geometry shader and do geometry clipping manually.
pvr: Aggressively merge transparent polys in per-triangl and OIT mode, duplicating the last vertex to merge opposite cull mode strips.
gl4: reset OIT pointers in final shader. No need for clear pass.
gl4: alternate between 2 buffers for verts.index/tr poly params.
gl4: use gl_VertexID + poly number for poly index.
gl: new GlBuffer class.
2022-02-11 15:54:18 +01:00
Flyinghead
ccee7162bc
naomi2: soulsurfer inputs, 2-volume UV, wrong TA parser selected
...
TAParserDX was used for pass-through TA data. Fixes health bar color in
vf4 and dust color in kingrt66.
2-volume missing u1/v1. Fixes clubk shadows.
2022-02-08 10:32:56 +01:00
Flyinghead
4fe8e40569
libretro: fix texupscale and max upscaled texture size settings value
2022-02-06 20:42:41 +01:00
Flyinghead
debbae6ab1
naomi2: elan v10 emulation. texture dma xfers. 2-volume support
...
emulate elan v10 (fixes modvol in vf4, initd, beachspiker, wldrider)
wrong color order for model and vtx color
model param override xor support
improved light direction precision. Angle attenuation algo change
get rid of alpha light and modifier volume hacks
texture dma xfer from main and elan ram
gl4: use geometry only vtx and geom shaders for depth pass
2-volume support
2022-02-05 14:50:12 +01:00
Flyinghead
2c6f01ae38
naomi2: kingrt66 wiper button. initd gear up/down
...
kingrt66: map wiper button, remap shift H and R
initd: map gear up and down
wldrider: remap push and pull
2022-02-05 14:29:01 +01:00
Flyinghead
0362fd1079
naomi2: disable elan when net rollbacking, optimizations. ggpo: RTT fix
...
n2: do not process elan commands during ggpo rollbacks.
n2: Cache model colors to avoid unpacking for each vtx
pvr: merge equivalent polys with different culling by duping a vtx
pvr: fix crash during direct FB render
pvr: use correct color ordering for naomi2. Use identify matrix for null matrix pointers
ggpo: do not signal end of frame on a render to texture
2022-02-01 17:37:54 +01:00
Flyinghead
38765dc89a
pvr: fix multipass. naomi2: constant color shading.
...
pvr: link multipass TA contexts. Each pass has its own.
pvr: get rid of context pool
naomi2: constant color shading. Use model diffuse and specular
selection. Don't use vtx color for offset color.
naomi2: pseudo-parallel lights fix
naomi2: pass-through TA data needs forced list type. Terminate with
end-of-list
enable RTT copy to vram for Beach Spikers
2022-01-31 20:40:09 +01:00
Flyinghead
78306b3c12
ggpo: memory leak in free_buffer
2022-01-30 12:39:00 +01:00
Flyinghead
e51a291195
ggpo: wrong elan ram offset calculation
2022-01-30 12:39:00 +01:00