Henrik Rydgård
3eaead8af1
Merge pull request #11956 from unknownbrackets/vfpu-chunk7
...
Correct vmfvc/vmtvc decoding, prefixes on vsgn, vdot, vhdp, and matrix init
2019-04-01 17:09:46 +02:00
Henrik Rydgård
8434ac037c
Merge pull request #11952 from unknownbrackets/vfpu-chunk4
...
Fix vmfvc, vfim -nan, and improve size/swizzle on vh2f/vf2h/vrnds/vdiv
2019-04-01 14:14:28 +02:00
Unknown W. Brackets
6f87987e7b
interp: Correct prefixes on vdot/vhdp.
2019-03-31 17:12:21 -07:00
Unknown W. Brackets
b24f84d1a2
interp: Handle prefixes on matrix init ops.
2019-03-31 17:11:24 -07:00
Unknown W. Brackets
59905de719
interp: Correct vsgn out of swizzle bounds.
2019-03-31 17:10:51 -07:00
Unknown W. Brackets
85ff32eed1
interp: Handle vsgn prefixing.
...
One could compare against 3 using this, it just generates zeros to compare
with.
2019-03-31 17:10:51 -07:00
Unknown W. Brackets
a5214d0b1a
Jit: Ignore high bit in vmfvc/vmtvc.
2019-03-31 17:09:55 -07:00
Unknown W. Brackets
b881a689c4
interp: Ignore high bit in vmfvc/vmtvc.
...
Both 0 and 128 read/write the S prefix, for example.
2019-03-31 17:09:55 -07:00
Unknown W. Brackets
5736b1be2a
interp: Correct some negative invalid zero cases.
...
In these cases, the input value wires to +0. Also, transposed the values
in a comment (oops.)
2019-03-31 13:45:37 -07:00
Unknown W. Brackets
aa998b815c
interp: Force vscmp result of invalid to zero.
...
Some other ops do this, but mostly only that do plus or minus.
2019-03-31 13:41:48 -07:00
Unknown W. Brackets
c7e83cd4fa
interp: Correct vfim for -inf and similar.
...
Was dropping the sign bit before for inf and nan.
2019-03-31 13:41:48 -07:00
Unknown W. Brackets
5749ae09d0
interp: Correct vmfvc register behavior.
...
The target and source registers were completely wrong.
2019-03-31 13:41:48 -07:00
Unknown W. Brackets
b2e024025f
interp: Handle wrong sizes of vf2h/vh2f.
...
Probably not ever used, but they have consistent behavior.
2019-03-31 13:41:48 -07:00
Unknown W. Brackets
aceb0a8244
interp: Correct vrnd prefix handling.
...
We don't match random values perfectly anyway, but at least we should vary
at the right times.
2019-03-31 13:41:48 -07:00
Unknown W. Brackets
dfc2449f35
interp: Match actual vdiv prefix handling.
2019-03-31 13:41:48 -07:00
Henrik Rydgård
8220a348b2
Merge pull request #11951 from unknownbrackets/vfpu-chunk3
...
Improve vrot/vflush/matrix op prefixes improve vscmp and vmtfvc
2019-03-31 22:26:22 +02:00
Henrik Rydgård
00ed829173
Merge pull request #11950 from unknownbrackets/vfpu-chunk2
...
Correct prefixes for vbfy, vscl, vzero, vone, vidt
2019-03-31 20:46:55 +02:00
Unknown W. Brackets
af3ed69144
interp: Mask moves to vfpu ctrl.
...
These bits of the registers can't be written.
2019-03-31 10:37:07 -07:00
Unknown W. Brackets
2a5d4e577d
interp: Handle NAN more correctly in vscmp.
2019-03-31 10:37:07 -07:00
Unknown W. Brackets
db28c61272
interp: Handle flush prefixes slightly better.
2019-03-31 10:37:07 -07:00
Unknown W. Brackets
d40ac043d4
interp: Handle prefixes for Vmmov/Vmmul/Vmscl.
...
I doubt any actual code uses this, but we have some tricky VFPU bugs left,
so just trying for maximum accuracy in the interpreter.
2019-03-31 10:37:07 -07:00
Unknown W. Brackets
26b1368f7b
interp: Handle vrot prefixes mostly correctly.
...
Still some issues with 1/2 results and negate on swizzle.
2019-03-31 10:37:07 -07:00
Unknown W. Brackets
8fd8dce185
interp: Use a helper to generate prefix consts.
...
This makes more logical sense that using the VFPU_SWIZZLE and VFPU_ABS
macros to select the constant, although that's how the bits work.
2019-03-31 10:33:26 -07:00
Unknown W. Brackets
b86a6af364
interp: Properly apply mask on single lane ops.
...
When using something like vadd.s, we should still be applying the mask.
Mainly should only matter if masks are set in a conditional, or if games
nop out instructions.
2019-03-31 10:13:28 -07:00
Unknown W. Brackets
1936e8c4d1
interp: Generate constants using prefixes.
...
This way they properly respect negate in the S prefix.
2019-03-31 10:13:28 -07:00
Unknown W. Brackets
0be3213151
interp: Correct vscl prefix handling.
2019-03-31 10:13:28 -07:00
Unknown W. Brackets
ec1dae57eb
interp: Fix vbfy prefix handling.
2019-03-31 10:09:18 -07:00
Henrik Rydgård
2d2c0fab49
Merge pull request #11949 from unknownbrackets/vfpu-chunk1
...
Skip IR for many unhandled prefixes, small interp correctness fixes
2019-03-31 19:06:16 +02:00
Unknown W. Brackets
d5273f589a
interp: Mask value in vpfxd.
...
The actual register ends up with only the lower 12 bits, which makes sense
since those are the only ones that do anything.
2019-03-31 08:23:36 -07:00
Unknown W. Brackets
9d1d4473e8
interp: Confirm vi2f/vf2i prefix handling.
2019-03-31 08:22:52 -07:00
Unknown W. Brackets
30223cb17f
interp: Apply T prefix to D in vcmov.
2019-03-31 08:22:15 -07:00
Unknown W. Brackets
fef8e71b8f
interp: Correct behavior for matrixes with size=1.
...
Games don't (shouldn't?) actually use 1x1 matrices, but they seem to have
predictable behavior in matrix ops.
2019-03-31 08:21:29 -07:00
Unknown W. Brackets
cfab70f149
interp: Handle abs/neg on nan values better.
...
`fabsf` was altering other bits.
2019-03-31 08:18:49 -07:00
Unknown W. Brackets
7dc775e54f
IR: Use interp for unhandled prefix cases.
...
The interpreter is not changed yet, so in theory this shouldn't change
behavior.
2019-03-31 08:17:11 -07:00
Unknown W. Brackets
62928e13d8
Merge pull request #11942 from jeeeyul/master
...
Fixes iOS exit freezing, Selective PTRACE syscall
2019-03-27 19:14:34 -07:00
Jeeeyul Lee
53e254d352
Disables iOS exit animation to prevent freezing.
...
Selective PTRACE sys call.
2019-03-27 11:01:20 +09:00
Henrik Rydgård
ed1aa74827
Address feedback from #11936 (support memory types without CACHED as a backup)
2019-03-26 10:39:51 +01:00
Henrik Rydgård
87c7f2f534
Merge pull request #11938 from LunaMoo/texture_hotkeys
...
Add texture dump/replace hotkeys.
2019-03-26 10:37:21 +01:00
LunaMoo
1fa7bbc816
Add texture dump/replace hotkeys.
2019-03-26 06:13:05 +01:00
Henrik Rydgård
0b5909c09a
Merge pull request #11936 from hrydgard/vulkan-readback-cached-mem
...
Vulkan: Request cached memory for readbacks.
2019-03-25 22:43:26 +01:00
Henrik Rydgård
60889767bf
Vulkan: Request cached memory for readbacks. First try coherent too but also support non-coherent cached memory.
...
Should speed up readbacks slightly.
This is just a common sense optimization, I haven't measured it. Writes to
coherent non-cached memory is OK due to hardware write combining, but for
reads you really want cached to avoid a memory transaction for every
single read (instead reading full cache lines).
2019-03-25 21:40:25 +01:00
Henrik Rydgård
47ce2fcbb8
Merge pull request #11933 from unknownbrackets/texcache
...
TexCache: Align bufw properly even for VRAM
2019-03-25 08:10:32 +01:00
Unknown W. Brackets
1199008641
TexCache: Align bufw properly even for VRAM.
...
Fixes minimap arrows in Manhunt 2 (see #9615.)
2019-03-24 19:21:08 -07:00
Henrik Rydgård
8f4bafea9c
Merge pull request #11932 from unknownbrackets/funchash
...
Debugger: Prevent saving a -1 sized func
2019-03-24 21:19:43 +01:00
Unknown W. Brackets
f53ea7e44f
Debugger: Prevent saving a -1 sized func.
2019-03-24 13:00:05 -07:00
Henrik Rydgård
8adb0dfd61
Vulkan validation: INFO level has gotten too spammy, turn it off.
2019-03-24 11:56:51 +01:00
Henrik Rydgård
d3c0a010a0
Fix invalid argument string for kuKernelLoadModule. Fixes #11895 .
2019-03-24 11:56:35 +01:00
Henrik Rydgård
6cd7615cb0
Merge pull request #11924 from unknownbrackets/kernel-minor
...
Allow kernel threads to beget kernel threads
2019-03-24 11:19:01 +01:00
Henrik Rydgård
703fdc5561
MSVC project files: Fix silly search/replace error from #11883
2019-03-24 11:17:47 +01:00
Henrik Rydgård
85fcac20d9
Merge pull request #11926 from unknownbrackets/vfpu-ir
...
IR: Correct vmmul optimizations
2019-03-24 11:17:22 +01:00