Triang3l
9009cba90a
[GPU] Refactor shader dumps - bin and txt files for both ucode and host
2020-12-25 21:46:07 +03:00
Triang3l
2bc0113dae
[GPU] Add missing override specifier to SPIR-V shader translator
2020-12-25 21:11:43 +03:00
Triang3l
dcde08a493
[GPU] PS and rasterization disabling cleanup
2020-12-24 23:40:38 +03:00
Triang3l
733efa5ff8
[GPU] Add a missing default label to GatherAluResultInformation
2020-12-22 22:29:00 +03:00
Triang3l
c7fbe0e6d5
[GPU] Scale gradients by SSAA factor
2020-12-20 16:35:15 +03:00
Triang3l
e6fa0ad139
[GPU] Dynamic r# count via shader modifications + refactoring
2020-12-19 16:14:54 +03:00
Triang3l
b106aa88e6
[GPU] Complete some register bitfield declarations
2020-12-12 20:01:41 +03:00
Triang3l
e348d6361e
[PPC] Disable frsqrte tests in a way not breaking the rest
2020-12-12 14:00:29 +03:00
Triang3l
da60649202
[D3D12] Fix texture_cache.cc formatting
2020-12-11 21:21:26 +03:00
Triang3l
5c47a3a588
[x64] vcfux single rounding for 0x80000000+
2020-12-11 21:20:13 +03:00
Triang3l
d0b849aad7
[PPC] vcfsx/vcfux: Only mul if needed
2020-12-10 21:34:37 +03:00
Triang3l
cb93ddf873
[PPC] vcfsx/vcfux optimization/simplification
2020-12-10 21:29:33 +03:00
Triang3l
db1d6b1fef
[PPC] Fix test suite name being ignored
2020-12-10 21:27:26 +03:00
Triang3l
040661f366
[D3D12] Fix a lint error in pipeline desc
2020-12-10 21:23:13 +03:00
Triang3l
34c5fc9c2f
[DXBC] ROV: Update a todo comment about early Z
2020-12-10 12:41:29 +03:00
Triang3l
8bcfcf6452
[GPU] Update v_mad_legacy_f32 comment
2020-12-10 12:39:02 +03:00
Triang3l
bc0c2040e2
[DXBC] ROV: Force late Z write with kill instructions
2020-12-10 12:36:37 +03:00
Triang3l
9349cf4ff4
[D3D12] Fix custom sample position reset
2020-12-08 22:43:15 +03:00
Triang3l
b7216f91f7
[D3D12] Re-add forgotten RenderTargetCache::EndFrame call
2020-12-08 22:36:47 +03:00
Triang3l
36a0bcec8b
[GPU] XXH3 hash instead of XXH64
2020-12-08 22:31:09 +03:00
Triang3l
9a4643d0f2
[GPU] Non-ROV f24 trunc/round, host shader modifications, cache dir
2020-12-07 22:31:46 +03:00
Prism Tutaj
a86609e93a
[GTK UI] Fix GTK submenus
2020-12-06 17:26:30 -06:00
Gliniak
06ab8589b4
[Kernel/IO] Return error creating dir as non-dir.
...
[Kernel/IO] Return error when creating directory with non-directory
flag in NtCreateFile.
2020-12-06 17:07:34 -06:00
Triang3l
cadc31c93f
[GPU] Fix uninitialized viewport_top when drawing without a viewport
2020-12-06 15:55:28 +03:00
Gliniak
ff5c5f01e0
[Kernel] Zeroing out pages without write protect flag
2020-12-05 14:18:03 -06:00
gibbed
1513dd235b
[Kernel] Code reentrance for guest fibers.
...
[Kernel] Code reentrance using exceptions for guest fibers.
2020-12-05 14:17:33 -06:00
gibbed
d420215de1
[Kernel] Allow 0 return for MmQueryAddressProtect.
2020-12-05 14:17:19 -06:00
Radosław Gliński
d2cf0167fd
[XAM/User] Added flag for local profile
...
It should fix games where right now there is no profile found.
Example: EA Sports games
2020-12-03 01:21:33 -06:00
Gliniak
c3d48eb2fa
[XAM/Net] Implemented WSASetLastError
2020-11-29 10:48:29 -06:00
gibbed
215f2a340b
[XAM] Ensure items returned is set in enumerate.
...
[XAM] Ensure items returned is set in xeXamEnumerate.
2020-11-29 02:03:44 -06:00
Joel Linn
b30fcbd29a
[HID] Change order to xinput, sdl, winkey
2020-11-28 14:22:50 -06:00
Joel Linn
842ac86b1f
[HID] More modern c++ in SDL backend.
2020-11-28 14:22:50 -06:00
Joel Linn
ff56fbdf46
[HID] Honor `is_active()` in SDL input backend.
2020-11-28 14:22:50 -06:00
Joel Linn
7931dbe180
[HID] `is_active` debugging for hid-demo.
2020-11-28 14:22:50 -06:00
gibbed
319699130a
[XAM] Improvement rollup. Content, enumerators...
...
- [Kernel] Create guest object for XEnumerator.
- [XAM] Split content data into host/guest variants.
- [XAM] Correct message return type from RESULT to HRESULT.
- [XAM] Add a new dummy content device for ODD.
- [XAM] Implement XamContentAggregateCreateEnumerator.
- [XAM] Implement XamGetPrivateEnumStructureFromHandle.
- [XAM] Implement XMsgCompleteIORequest (sketchy).
- [XAM] Implement XamGetOverlappedResult (sketchy).
- [XAM] Implement XamTaskSchedule (sketchy).
2020-11-27 14:19:30 -06:00
gibbed
5328b72268
[XAM] Split content device exports to a new file.
2020-11-27 14:19:30 -06:00
gibbed
f8d663cd1e
[XAM] Rename NUI export group.
2020-11-27 14:19:30 -06:00
gibbed
1481735d36
[XAM] Rework how export groups are registered.
2020-11-27 14:19:30 -06:00
gibbed
42b1427087
[XAM] Split enum exports to a new file.
2020-11-27 14:19:30 -06:00
gibbed
326220309b
[x64] Handle constant in LOG2_F32/F64/V128.
2020-11-27 05:34:08 -06:00
gibbed
6c073d3c84
[HID] Add 'is active' checks to winkey input.
...
[HID] Add 'is active' checks to winkey input driver.
2020-11-27 05:23:21 -06:00
gibbed
dd25e69e66
[HID] Pass 'is active' callback to input drivers.
2020-11-27 05:23:21 -06:00
gibbed
f8e6ac4108
Defer XAM UI functions & other improvements.
...
- [Kernel] Fix global locking in kernel dispatch thread.
- [Kernel] Improve CompleteOverlappedDeferred/CompleteOverlappedDeferredEx.
- [XAM] Identify unknowns in XamNotifyCreateListener/XNotifyListener.
- [XAM] Defer XamShowMessageBoxUI.
- [XAM] Defer XamShowKeyboardUI.
- [XAM] Fix cancel handling in XamShowKeyboardUI.
- [XAM] Defer XamShowDeviceSelectorUI.
- [XAM] Defer XamShowDirtyDiscErrorUI.
2020-11-27 05:15:17 -06:00
Triang3l
e3a82e1930
[D3D12] Remove leftovers of old resolve code
2020-11-26 23:06:46 +03:00
Triang3l
d353cade76
[Base] mapped_memory_win: more explicit invalid handle values
2020-11-24 22:49:56 +03:00
Triang3l
a73592c2ef
[Memory/CPU] UWP: Support separate code execution and write memory, FromApp functions + other Windows memory fixes
2020-11-24 22:18:50 +03:00
gibbed
cabd28b9bb
[VFS] Fix handling of remove_all return value.
2020-11-24 02:02:49 -06:00
gibbed
bda31a443e
[VFS] Avoid exception on remove/remove_all.
2020-11-24 00:23:38 -06:00
gibbed
164aa8e8ca
[Kernel] Scope object type enum.
2020-11-22 20:34:07 -06:00
gibbed
bdeae25353
[Kernel] Add comment about Shadowrun bug.
...
[Kernel] Add comment about Shadowrun thread name bug and a bonus lint fix.
2020-11-22 15:49:25 -06:00
Gliniak
a6868d1f8a
[Memory] Removed redundant BaseHeap::IsGuestPhysicalHeap
2020-11-22 15:43:53 -06:00
Gliniak
26b0aa0cc4
[Kernel/Memory] Restrict NtVirtualMemory only to virtual memory range
2020-11-22 15:43:53 -06:00
Gliniak
c071500ff4
[Base] Specify heap type on initialization
2020-11-22 15:43:53 -06:00
Triang3l
2cb7d26d62
[Android] Add a comment about pthreads dynamic loading
2020-11-23 00:42:58 +03:00
Gliniak
aae292aab5
[Kernel/Memory] MmQueryAddressProtect - Check for protect_bits equals 0
2020-11-22 15:40:03 -06:00
gibbed
8749ca2260
[Kernel] Filter thread names from guest.
2020-11-22 14:54:08 -06:00
gibbed
4f25a96928
[Kernel] Overhaul Rtl time functions.
...
- Add date third party submodule.
- [Kernel] Add xclock.
- [Kernel] Reimplement RtlTimeToTimeFields using std::chrono/date/xclock.
- [Kernel] Reimplement RtlTimeFieldsToTime using std::chrono/date/xclock.
- Supersedes #1612 .
2020-11-22 14:48:36 -06:00
Triang3l
63ff758049
[Threading] Android thread naming and other cleanup
2020-11-22 20:03:45 +03:00
Triang3l
aca23c08cf
[Memory] Fix kFileMappingHandleInvalid typos in tests
2020-11-22 18:49:47 +03:00
Triang3l
a39266b71e
[Threading] Android thread termination signal
2020-11-22 18:48:55 +03:00
Triang3l
0ebf073385
[Base] Affinity and yield to sched on Android
2020-11-22 16:56:04 +03:00
Triang3l
9ef7fb62d3
[Memory] Android memory mapping
2020-11-22 16:32:46 +03:00
Triang3l
ec507dc2f6
[Memory] Fix forgotten kFileMappingHandleInvalid
2020-11-22 14:34:09 +03:00
Triang3l
86ae42919d
[Memory] Close shared memory FD and properly handle its invalid value
2020-11-22 14:17:37 +03:00
Sandy Carter
432369ae84
[kernel] Define param order between compilers
...
Fix issue in clang where args were inverted last to first due to the way
c++ implements function calls.
The function make_tuple, being a function, has undefined ordering of
resolution of the values of its parameters `Ps(init)` and would vary
between compilers. Namely clang would resolve them in order and msvc
would resolve them in reverse order.
This normally would not matter except for the fact that init maintains
a mutable state which is affected my the order of operations:
init.ordinal is a counter and also defines where in memory a value is
stored.
The C++ standard doesn't define an order of resolution of parameters in
a function but it will define an order in a brace-initializer.
Switching make_tuple for a brace-initializer enforces an order which is
the same between all compilers (tested gcc, clang and msvc).
Prior code was written to decrement ordinal due to the reverse
traversal.
This has been switched to incrementing thanks to the in-order
traversal.
2020-11-22 13:54:00 +03:00
Sandy Carter
49e194009b
[memory linux] Properly unlink shared memory
...
shm_unlink(name) is the proper way to close a shared memory in linux.
Prior to this, xenia was creating and not cleaning up shared memory handle
which would accumulate in /dev/shm. shm_unlink is the proper way of doing
this.
Add filename to CloseFileMappingHandle signature.
Add simple test to open and close.
2020-11-22 13:54:00 +03:00
Sandy Carter
2c7009ca80
[memory] Move "Local\\" prefix to win impl
...
CreateFileMappingHandle now takes shared memory name without a prefix.
The doc of shm_open recommends not using slashes and prefixing with "/".
The prefixing has been moved to the os implementation layer.
Invocations of CreateFileMappingHandle were all using "Local\\" so these
prefixes were removed.
2020-11-22 13:54:00 +03:00
Sandy Carter
22ef265057
[memory] Add Memory mapping view tests
...
Add test for mapping and for mapping with access.
2020-11-22 13:54:00 +03:00
uytvbn
962b90f699
[Linux] Implement virtual memory allocation
2020-11-22 13:54:00 +03:00
Sandy Carter
5fa59fc4a9
threading_posix: don't delete thread_local thread object
...
Disabling on exit thread delete as it causes an assert fail.
There isn't a leak here because current_thread_ is a thread_local static.
2020-11-21 22:30:43 -06:00
Sandy Carter
aa332dcc8e
threading_posix: Increase stack size in test
...
16 KB is not enough for the linux thread to be spawned so bump up to 16MB
2020-11-21 22:30:43 -06:00
Triang3l
9f45a1f338
[Base] Use bswap_16/32/64 from byteswap.h on Linux
2020-11-21 23:54:20 +03:00
Joel Linn
923678dad7
[GPU] Add performance counter registers.
...
v3: Document registers referenced by D3D in `gpu.md`.
2020-11-21 21:55:52 +03:00
Joel Linn
f6dc9ad517
[GPU] Skip viz-query geometry (if marked).
...
Document research about viz queries.
v2: Remove viz status unions and move comments to register definitions.
Add contributors to TODOs.
v3: Comment out unused variables.
Add TODO for correctly dropping draw calls with memexport.
Register comment formatting.
2020-11-21 21:55:52 +03:00
Triang3l
b06138b464
[GPU] Disable faceness for rectangles temporarily
2020-11-21 21:52:17 +03:00
Triang3l
48c97dd3b4
[Base] Android and Arm platform defines
2020-11-21 16:26:26 +03:00
Triang3l
00a7d1a067
[D3D12] Cleanup rasterizer state
2020-11-20 23:12:12 +03:00
Triang3l
44a3f200c3
[GPU] Rename PrimitiveTwoFaced to PrimitivePolygonal, add rects to it and ignore fill modes for non-polygons
2020-11-19 23:55:49 +03:00
Triang3l
99bb82fd1c
[GPU] Separate GetHostViewportInfo X and Y bounds
2020-11-18 12:27:36 +03:00
gibbed
49dc0e9c39
[XAM] Rollup of user fixes.
...
- [XAM] Fix XamUserGetXUID type mask handling.
- [XAM] Fix XamGetUserName return values.
- [XAM] Fix XamGetUserName copy size.
- [XAM] Implement XamGetUserGamerTag.
- [XAM] Fix XamUserCheckPrivilege handling of all users.
- [XAM] Stub XamUserGetMembershipTier.
2020-11-17 19:58:30 -06:00
Triang3l
b7ba3051f2
[Kernel] Fix null in thread affinity init + ignore affinity when less than 6 cores
2020-11-16 23:15:51 +03:00
Satori
52230fd4e8
[Base] Fix FileLogSink not writing to log file
2020-11-16 14:04:17 -06:00
Triang3l
10d7bcde93
[GPU] Viewport in draw_util with host API flexibility
2020-11-16 23:03:42 +03:00
Satori
b74eac36c7
[Base] Log to stdout by default
2020-11-16 01:52:27 -06:00
Satori
446837edb1
[Base/Win] Add cvars to enable a console window to be shown with xenia
2020-11-16 01:52:27 -06:00
Satori
42b10209fe
[Base] Add support for multiple log sinks in Logger
2020-11-16 01:52:27 -06:00
Sandy
36466231d0
threading test: zero initialize counter
...
The high performance test atomic counters need to be set to zero to have reliable results.
2020-11-16 00:13:14 -06:00
Cancerous
94b9616b3a
[XAM] Raise the size of the dummy HDD to 20GB.
...
- [XAM] Raise the size of the dummy HDD to 20GB.
- [XAM] Rename unknown field to device_type in X_CONTENT_DEVICE_DATA.
2020-11-15 15:04:40 -06:00
Cancerous
ce1a31faad
[Kernel] Set flag 5 in XboxHardwareInfo.
...
[Kernel] Set flag 5 (indicates storage is initialized) in XboxHardwareInfo.
2020-11-15 15:04:40 -06:00
gibbed
362251df0b
[Base] Fix dangling pointer in LaunchWebBrowser.
...
[Base] Fix dangling pointer in LaunchWebBrowser. Fixes #1614 .
2020-11-15 14:36:13 -06:00
gibbed
a4e5c4cecf
[App] Fix dangling ptr in Discord playing update.
...
[App] Fix dangling pointer in Discord playing update. Fixes #1621 .
2020-11-15 13:59:25 -06:00
gibbed
e848a20c23
[Kernel] Allow wildcard filter to end in *.
2020-11-15 13:29:34 -06:00
gibbed
32e8b47a33
[Kernel] Enforce *. in wildcard matching. Supersedes #1675 .
2020-11-15 13:24:06 -06:00
Gliniak
d1f7ee3593
[Audio/XMA] Invalidate output buffer when there is no valid input buffer
2020-11-15 11:31:11 -06:00
Triang3l
91d5ba444a
[Base/Kernel] Add and use truncating null-terminating string copying
2020-11-15 11:27:59 -06:00
Joel Linn
68cf47e245
[threading] Fix Fence for multiple waiting threads
2020-11-15 11:12:05 -06:00
Sandy Carter
d7094fae52
[threading linux] Implement native_handle
...
Move wait implementation to not use native_handle.
Implement native_handle for each primitive using posix natives.
2020-11-15 11:12:05 -06:00
Sandy Carter
e945a13957
[threading linux] Implement suspend count
...
Add suspend count to thread implementation.
Increment suspend count on suspend and decrement on resume.
Wait on suspend count to be decremented to 0.
Return suspend count on suspend and on resume before incr/decr.
Fix naming of resume suspend count to make clear that suspend count is
before incr/decr.
Add test.
2020-11-15 11:12:05 -06:00
Sandy Carter
382dd8860f
[threading] Change thread names to suit pthread
...
Shorten names to 16.
Rename Win32 to Windowing.
Shorten GraphicsSystem thread names due to 16 length limit of pthread.
Without this change, both show up as GraphicsSystem.
Remove redundant "Worker" and "Thread" from names.
Remove redundant thread handle from thread name.
2020-11-15 11:12:05 -06:00
Sandy Carter
a503b6222f
[threads linux] Free and signal suspended threads
...
Give other threads access to initially suspended threads by signalling
conditional variable before waiting for state to be changed again.
2020-11-15 11:12:05 -06:00