27637 Commits

Author SHA1 Message Date
Henrik Rydgård
82bc6f6cc5 Windows ARM fix, cleanup 2020-07-14 13:47:25 +02:00
Henrik Rydgård
056999a691 Refactor MachineContext.h to reduce ifdefs elsewhere.
Also fixes Windows on ARM64 (at least the build).
2020-07-14 13:47:25 +02:00
Henrik Rydgård
fe91f62f92
Merge pull request #11795 from hrydgard/exception-handler
Exception handler - catch bad memory accesses by the JIT
2020-07-14 13:35:16 +02:00
Henrik Rydgård
f62df94ab2 There's no sigcontext on 64-bit iOS either, apparently. 2020-07-14 11:39:31 +02:00
Henrik Rydgård
893aa29191 Yet another iOS buildfix attempt 2020-07-14 10:34:40 +02:00
Henrik Rydgård
2916e5b67f
Merge pull request #13139 from hrydgard/vulkan-readback-fencewait
Vulkan: Switch to a fence to synchronize readbacks
2020-07-14 10:28:43 +02:00
Henrik Rydgård
f6cc45a96a Another iOS buildfix attempt 2020-07-14 09:31:58 +02:00
Henrik Rydgård
6f97c3d422 Various platform buildfixes 2020-07-14 09:25:59 +02:00
Henrik Rydgård
a56f391713 Make fastmem memory exceptions report the exceptions to Core correctly. 2020-07-14 09:25:45 +02:00
Henrik Rydgard
465367bf1b iOS buildfix attempt 2020-07-14 09:25:45 +02:00
Henrik Rydgard
430c3ee6a3 HandleFault: Add missing nullcheck 2020-07-14 09:25:45 +02:00
Henrik Rydgard
15c7358e80 Try USE_SIGACTION_ON_APPLE on IOS. 2020-07-14 09:25:45 +02:00
Henrik Rydgard
ac456c2231 MachineContext, Linux/Android: Try to support android-x86 (32-bit) 2020-07-14 09:25:45 +02:00
Henrik Rydgard
fdcf4f06f2 Add x64Analyzer to Android.mk. Some minor cleanup 2020-07-14 09:25:45 +02:00
Henrik Rydgård
236cb57224 More info on crash screen 2020-07-14 09:25:45 +02:00
Henrik Rydgård
96a40bb36d Exceptions: A bit more consistency in callback registeration. 2020-07-14 09:25:45 +02:00
Henrik Rydgård
c3016fe6a5 Mac/Linux buildfixes 2020-07-14 09:25:45 +02:00
Henrik Rydgard
cbc90955ba Draw a minimal crash dump on the emu screen after a crash (if bIgnoreBadMemAccess is false).
Add setting for ignore bad memory accesses
2020-07-14 09:25:45 +02:00
Henrik Rydgard
c988d42b04 ARM/ARM64 instruction analysis, hook up to handler 2020-07-14 09:25:45 +02:00
Henrik Rydgard
aa802ecc0f Skip bad reads/writes by the guest executable. 2020-07-14 09:25:45 +02:00
Henrik Rydgard
1fce6de8b1 Simple exception handler so we can ignore accesses that happen within the PSP memory space. 2020-07-14 09:25:45 +02:00
Henrik Rydgård
b5e7220ed1 Switch to a fence instead for readbacks. Some sources suggest this is better than idling a queue or device.
Like https://stackoverflow.com/questions/39537176/in-what-situations-is-vkfence-better-than-vkqueuewaitidle-for-vkqueuesubmit .

Additionally, this is easier to refactor and loosen up if we can in the
future.
2020-07-14 09:06:07 +02:00
Henrik Rydgård
e66f034fb3 Readback: Downgrade from vkWaitDeviceIdle to vkWaitQueueIdle. Probably effectively pretty much the same. 2020-07-14 09:06:07 +02:00
Henrik Rydgård
e8255441fb
Merge pull request #13137 from twinaphex/master
(Libretro) Add optimal input read codepath - bitmasks
2020-07-14 07:27:18 +02:00
Unknown W. Brackets
dd909d36cc Osk: Draw shadows on all the letters. 2020-07-13 18:24:05 -07:00
Unknown W. Brackets
f16a6b8abd MsgDialog: Show better error messages.
I think the PSP really did just show error codes, but that's not a reason
to keep that confusion going.  For common save errors, let's show the
messages.

Some games, for example, simply show the no data found error when you play
for the first time and trigger anything to check for data.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets
3daf536e3c MsgDialog: Allow text to be wider.
Our font is a bit different, let's add a bit more as long as the spacing
looks okay.  Reduce scale if there's a lot of non-ASCII, since the PSP's
font seemed to use smaller glyphs than ours for those chars.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets
b181a93e5e MsgDialog: Add scrollbar when message is long.
Some games hard wrap their messages, and PSP firmware also showed a
scrollbar.  Let's do the same.

One intentional difference: trying to ensure we always show part of a
hidden line to make it clear to the user that there's more text.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets
3586128d8d PPGe: Draw nicer drop shadows.
Only when we have a text drawer for text, because it really adds up.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets
143ba22097 PPGe: Handle text shadows more consistently.
Don't really want them wrapping differently or etc.  Let's handle
centrally so we can make them consistent and better.
2020-07-13 18:20:57 -07:00
Unknown W. Brackets
9ebb402e4f Vulkan: Buildfix. 2020-07-13 18:19:36 -07:00
Henrik Rydgård
ee4690f1b9
Merge pull request #13138 from hrydgard/unbind-stuff
Vulkan: Make sure textures/samplers are unbound at the end of PresentationCommon::CopyToOutput
2020-07-13 23:58:08 +02:00
Henrik Rydgård
131a1eedfb Vulkan: Make sure textures/samplers are unbound at the end of PresentationCommon::CopyToOutput.
Validation caught an issue where old stuff lingered in sampler 1 and texture 1.

Bug probably introduced in #12921, but could also be others.
2020-07-13 23:32:37 +02:00
Henrik Rydgård
53b2ab191b Revert "Disable a new compiler warning that doesn't do us much good"
This reverts commit e3a807fdc1f01b3a038d0c1609333d04d5d47528.
2020-07-13 23:31:51 +02:00
twinaphex
b8ad9c4d38 (Libretro) Add MSVC 2019 target 2020-07-13 21:12:41 +02:00
twinaphex
5a3e955a5b Change libretro.cpp to confirm to libretro code formatting conventions 2020-07-13 21:11:26 +02:00
Henrik Rydgård
e3a807fdc1 Disable a new compiler warning that doesn't do us much good 2020-07-13 19:54:08 +02:00
Henrik Rydgård
92778675df
Merge pull request #12879 from unknownbrackets/init-crash
Windows: Make init crash warnings more generic
2020-07-13 19:43:25 +02:00
twinaphex
20d85e57c9 (Libretro) Add optimal input read codepath - bitmasks 2020-07-13 19:13:18 +02:00
Henrik Rydgård
bb6219e402
Merge pull request #12921 from unknownbrackets/postshader
Use less FBOs for chained post-processing shaders
2020-07-13 18:52:53 +02:00
Henrik Rydgård
59af3d5823
Merge pull request #13066 from hrydgard/vulkan-outofdate-handling
Move the Vulkan swapchain out-of-date checking to the vkQueuePresentKHR call
2020-07-13 18:50:11 +02:00
Henrik Rydgård
e8370b94c0 Remove irrelevant comment 2020-07-13 18:14:12 +02:00
Henrik Rydgård
dc6e7a7938 Move the Vulkan swapchain out-of-date checking to the vkQueuePresentKHR call. 2020-07-13 18:14:12 +02:00
Henrik Rydgård
09238edd8e
Merge pull request #12913 from unknownbrackets/gles-invalidate
Add glInvalidateFramebuffer on clobber
2020-07-13 18:05:20 +02:00
Unknown W. Brackets
dbbcaa9eca GLES: Invalidate framebuffers bound DONT_CARE.
Let's try to invalidate when it's possible.  We move the invalidate to the
end of the render when detected.
2020-07-13 08:00:24 -07:00
Henrik Rydgård
6009bf7b74
Merge pull request #12952 from unknownbrackets/vulkan-safesize
Vulkan: Match safe size behavior on all backends
2020-07-13 15:59:09 +02:00
Henrik Rydgård
4537b807c6
Merge pull request #12969 from unknownbrackets/vertex-cache
Fix and improve the GLES vertex cache
2020-07-13 14:38:06 +02:00
Henrik Rydgård
b58ca8af12
Merge pull request #12945 from unknownbrackets/io-timing
Make file open timing a bit more accurate
2020-07-13 13:37:53 +02:00
Henrik Rydgård
de6801da2b
Merge pull request #13136 from unknownbrackets/crash-minor
Add exec crash checks and minor cleanup
2020-07-13 11:42:41 +02:00
Henrik Rydgård
629edf9454
Merge pull request #13134 from twinaphex/master
(Libretro) Add custom GLEW - interfaces with libretro get_proc_address -
2020-07-13 11:39:14 +02:00