gibbed
e2346ee539
[PPC] Support basic form of sc.
2020-02-11 06:45:57 -06:00
Rick Gibbed
ce1d632f4e
[CI] Include SDL2.dll as part of artifacts.
2020-02-11 04:34:37 -06:00
Gliniak
d241a98189
[Kernel] Rewrote ObReferenceObjectByHandle
2020-02-10 20:52:23 -06:00
Triang3l
014d03193e
[D3D12] Convert dxbc_shader_translator_om.cc to new DXBC emission code
2020-02-10 23:50:26 +03:00
Joel Linn
160f218210
[APU/Linux] Implement cross platform audio using SDL2 library.
2020-02-10 14:01:47 -06:00
Joel Linn
64f3925c7d
[HID/Linux] Implement cross platform controller input using SDL2 library.
2020-02-10 13:41:19 -06:00
Joel Linn
498b73612f
Link against SDL2.
...
- Use MSVC delayed loading on Windows.
- Rely on system libraries for Linux.
- Add libsdl2-dev to Travis.
2020-02-10 13:41:19 -06:00
Joel Linn
d355d433c5
Add SDL2 submodule for MSVC development.
...
Tracking 2.0.10 headers and libraries.
2020-02-10 13:41:19 -06:00
Rados??aw Gli??ski
404aa82147
[CPU] Implemented instructions: rldclx, rldcrx
2020-02-09 16:48:50 -06:00
gibbed
0b3cdf2aaa
[Base] Fix non-Windows bit_scan_forward.
2020-02-09 16:37:52 -06:00
Prism Tutaj
fc37f3e93a
[App] Fix discord cvar
2020-02-09 16:21:51 -06:00
Joel Linn
2aa008e02e
[HID] Fix Demo for XInput
2020-02-09 16:19:39 -06:00
Gliniak
0d866aa173
[CPU] Increased maximum function count
2020-02-09 15:47:29 -06:00
Silent
684f9fedec
[Base] Remove kMaxPath from Windows, it should not be used
...
All instances of kMaxPath or MAX_PATH being used have been removed,
and removing this constant is supposed to encourage writing code
without artificial constraints on path length.
2020-02-09 14:02:37 -06:00
Silent
f392347673
[GPU] Remove MAX_PATH limit from Shader::Dump
2020-02-09 14:02:37 -06:00
Silent
d3a73022fd
[UI] Remove MAX_PATH limit from WM_DROPFILES
...
Also required const-ifying a file drop message.
2020-02-09 14:02:22 -06:00
Silent
96a9397349
[Base] Remove MAX_PATH limit from GetUserFolder
...
Replace SHGetFolderPath with SHGetKnownFolderPath to remove the limit
2020-02-09 14:01:39 -06:00
Silent
6f2c39d8d1
[Base] Remove MAX_PATH limit from to_absolute_path
...
Let _wfullpath allocate memory by itself to remove the limit
2020-02-09 14:01:39 -06:00
gibbed
74c95c64d2
[Kernel] Ignore page size with base addr allocs.
...
Changes NtAllocateVirtualMemory so that it ignores specified page size when a
base address is specified.
Fixes a crash seen in N3 demo boot.
2020-02-09 06:54:27 -06:00
Justin Moore
96a7908c28
[Base] Fix formatting errors accidentally introduced
2020-02-08 16:30:17 -06:00
Rick Gibbed
754e64fcf1
Fix warning that newer Python is whining about.
...
Fix a warning that a newer version of Python is whining about:
SyntaxWarning: "is" with a literal. Did you mean "=="?
2020-02-08 16:25:13 -06:00
Justin Moore
7ed6296bb2
[Base] Call SetThreadDescription to name threads on versions of Windows that support it.
2020-02-08 21:12:42 +00:00
Justin Moore
1111394c83
Merge branch 'noshbar-unintialised-fileaccess-fix'
2020-02-08 14:44:26 -06:00
noshbar
2ce455fc73
[Base] Initialize file 'open_access' flag before using it.
...
In the 'OpenExisting' function, 'open_access' is used to create the flags for opening the file.
However, it is not set to zero, so could end up being incorrect file modes, potentially even emptying the file for appending, which would be bad.
This simply initialises it to zero first.
2020-02-08 14:43:46 -06:00
Triang3l
85fb028faa
[D3D12] Cleaner DXBC emission code, port ROV prologue to it
2020-02-07 09:42:43 +03:00
Prism Tutaj
1cce25d5e7
[CPU] Change thunk layout and fix Linux thunk misalignment
2020-02-05 09:49:29 -06:00
Joel Linn
f0723c211b
[UI] Fix frame leak on context loss.
2020-02-05 09:48:31 -06:00
Joel Linn
2c99228041
[UI] Use ticks as frame time instead of file time.
...
File time is not as accurate as its resolution suggests.
This results in a zero time delta between frames for high fps.
2020-02-05 09:48:31 -06:00
illusion98
c3f3bd8701
[UI] Add F2 Hotkey to open current git commit in browser
2020-02-05 09:46:30 -06:00
Triang3l
211e30d791
[GPU] Remove repeated word in a comment
2020-02-02 21:07:51 +03:00
Triang3l
4061445087
[GPU] Remove unused kConstantInt/Bool shader operands
2020-02-02 21:05:00 +03:00
Silent
38bf6c8822
[Kernel] Make XexUnloadImage fully release the image
...
Previously XexUnloadImage did not cleanup the image fully,
and if XexLoadImage was to be called again on the same module,
it was not initialized fully, leading to a crash when using it.
2020-01-27 06:35:10 -06:00
Silent
9d48e904da
[Kernel] (Partially) fix module refcounting
...
.xex module handles were retained twice in several places,
possibly causing them to leak.
More placed may have to be fixed too.
2020-01-27 06:35:10 -06:00
Silent
f278e30d21
[Kernel] Fix SHA1 and SHA256 state endianness
...
Fixes malfunctioning SHA256 hash,
corrupting its state between Update and Finish calls.
2020-01-27 06:33:39 -06:00
Triang3l
c43ccc073d
[D3D12] Submit command lists on primary buffer end
2019-12-04 21:42:26 +03:00
Joel Linn
922f1f220a
[CPU] Implement mftb instruction natively.
...
When the cvars clock_no_scaling and clock_source_raw are set, tick counts will be directly calculated in the emitted code.
2019-12-01 17:11:58 -06:00
Joel Linn
15d422d988
[Base] Optional raw Clock source.
...
New cvar clock_source_raw allows to use the cpu cycle counter itself as an alternative time source, if system timing resolution is to low and causes problems.
2019-12-01 17:11:58 -06:00
Joel Linn
f88d46cead
[Base] Optional Clock scaling bypass.
...
New cvar clock_no_scaling bypasses all time scaling code.
Clock state is non dynamic.
Timing is always derived from host.
2019-12-01 17:11:58 -06:00
Joel Linn
7e244e0488
[Base] Clock state now unaltered by threading.
...
- Removed tick and time values from ThreadSavedState.
- Removed affiliated get/set code from Save and Restore.
- Removed dangerous SetGuestTickCount method.
2019-12-01 17:11:58 -06:00
Joel Linn
d6ce72ddc9
[Base] Clock reworked.
...
- Time progression is now equal and in sync on all threads.
- Floating point imprecisions do not interfere with timing.
2019-12-01 17:11:58 -06:00
Triang3l
6a3a56b3b9
[D3D12] Workaround for texture flickering on Nvidia - don't use sampler 2047
2019-12-01 21:39:48 +03:00
Silent
c5db959154
[Kernel] Retain handles and not objects in XThread
...
This fixes cases introduced by 52e836d0f81e752ba368717e68773b591adfa9cf
where thread handles get closed before the thread finishes.
Handle was assumed to be alive there, which was not true as
threads self-referenced only their objects, not their handles.
Affected games: Payday 2 Demo
2019-11-30 20:08:30 -06:00
Silent
728531eff7
[Kernel] Operate on handle refcounts in Ob funcs
...
Although this seems counter-intuitive, operating on handle
reference counters in
- ObLookupThreadByThreadId
- ObReferenceObjectByHandle
- ObDereferenceObject
allows to cleanly clean up handles for resources created elsewhere
and destructed by ObDereferenceObject (for example, threads with 0x80
creation flag). Operating on pointer reference counters alone
would leave a stray handle in the slots list.
2019-11-30 20:08:30 -06:00
Silent
05ef022fd7
[Kernel] Do not retain handle in ExCreateThread
...
Closing the thread handle should delete the thread object
if it's finished. When this handle was retained, closing the handle
left a lingering handle reference and thus this XThread would leak
2019-11-30 20:08:30 -06:00
Silent
5bec69e983
[Kernel] Add some useful asserts
2019-11-30 20:08:30 -06:00
gibbed
ae15c27a24
[x64] Take advantage of StashConstantXmm.
2019-11-30 20:08:10 -06:00
gibbed
04a54cc58f
[x64] Fix constant src2 in VECTOR_ROTATE_LEFT_V128.
2019-11-30 20:08:10 -06:00
gibbed
f7a8c5ce7a
[x64] Fix corruption of src1 in calls to EmulateVectorRotateLeft.
...
To mitigate this mistake in the future, implemented new
StashConstantXmm functions.
2019-11-30 20:08:10 -06:00
gibbed
43cef29c6d
[UI] Disable saving of imgui INI file.
...
By default imgui saves an INI file named 'imgui.ini' to the current directory,
which is undesired behavior. Until we can properly specify a full path to
a good location, disable saving of the INI file.
2019-11-30 18:54:15 -06:00
aerosoul
bc8b629092
[Kernel] Enable XEX1 loading
2019-11-20 18:09:28 -06:00