Joel Linn
fa7f292432
[CPU] `ResolveFunction()` Fix declaration mismatch
2021-06-02 22:28:43 -05:00
Joel Linn
6d548f51b3
[Kernel] net: name anonymous struct
...
- fixes GCC compilation error due to
"member with constructor in anonymous struct"
2021-06-02 22:28:43 -05:00
Joel Linn
c0fb300a05
[Kernel] Remove explicit SHIM calling convention
...
Shim exports are called from GuestToHostThunk which dictates the calling
convention. The default system calling convention is different depending
on OS (Windows vs. everything else) and architecture. PR #1339 addresses
this for x64 Linux.
There is no reason for explicit `__cdecl`. Also, it is not available in
GCC. We could use `__attribute__((ms_abi))` or
`__attribute__((sysv_abi))` but that just adds complexity.
2021-06-02 22:28:43 -05:00
Joel Linn
07a060b002
[Kernel] Solve ambiguity in `RegisterExport()`
...
- Remove overload for exports with `void` return type
- Use `if constexpr (std::is_void<R>::value)` to differentiate
2021-06-02 22:28:43 -05:00
Joel Linn
d40dfa11c5
[Base] Use pragma pack for non msvc as well.
...
- Pack attributes may be ignored by GCC
2021-06-02 22:28:43 -05:00
Joel Linn
d55192ea30
[Base] Refactor byte_swap
...
- Use builtins on non MSVC compilers
- Use `if constexpr` to reduce explicit overloads and SFINAE overhead
2021-06-02 22:28:43 -05:00
Joel Linn
4800194f0d
[Base] Add faster `bit_count` variants
...
- Use C++20 `popcount()` when available
- Else use compiler specific built-ins
2021-06-02 22:28:43 -05:00
Joel Linn
806a33d625
[GPU] Use `le<>` type for depth sample counts
2021-06-02 22:28:43 -05:00
Joel Linn
e58686c9df
[Base] Add `le<>` type
...
- Addition to `be<>` type
2021-06-02 22:28:43 -05:00
Joel Linn
28ca58c0e9
[Base] Fix HighResolutionTimer
...
- Test was failing on Linux 5.11 and GLIBC 2.33
- `timer_t(0)` is a valid handle, so a `valid_` flag was added to guard
destruction
- Similar behaviour on Windows was fixed as well. The invalid values for
`HANDLE` are API dependent.
2021-06-02 22:28:43 -05:00
Joel Linn
6dfa36d1b8
[GPU] Misc GCC build fixes
2021-06-02 22:28:43 -05:00
Joel Linn
5284075cf9
[CPU] Misc GCC build fixes
2021-06-02 22:28:43 -05:00
Joel Linn
86722be9ca
[Base] Make Arena alignment aware
...
- Add align parameter
- Templated Alloc() implicitly aligns type correctly
- Rewind may leak padding that was added due to alignment
2021-06-02 22:28:43 -05:00
Joel Linn
d8cfeac79f
[Base] Remove redundant copy and move operators
...
- Compiler is smart enough to use 128bit vector regs by itself
2021-06-02 22:28:43 -05:00
Joel Linn
4d0d3f3ad4
[Base] Fix semaphore test
...
- Was using `Sleep()`
- Replaced with atomic value and bool flag
2021-06-02 22:28:43 -05:00
Joel Linn
2d9462f02b
[Base] Fix unitialized variable in threading test
2021-06-02 22:28:43 -05:00
Joel Linn
4fb5244176
[Base] Fix namespacing
2021-06-02 22:28:43 -05:00
Joel Linn
a86d7173e1
Refactor FourCC magic uses
...
- Use new fourcc_t type
- Improves compiler compatibility by removing multi chars
2021-06-02 22:28:43 -05:00
Joel Linn
4daa3f5a52
[Base] Add FourCC tests
2021-06-02 22:28:43 -05:00
Joel Linn
9bb920b104
[Base] Add FourCC type
...
- using fourcc_t = uint32_t
- make_fourcc() overloads
2021-06-02 22:28:43 -05:00
Gliniak
fbc31652e0
[XAM/Net] inet_addr: Handle edge cases
2021-05-27 16:16:56 -05:00
Gliniak
29f7987401
[XAM] XamReadTileToTexture: tile_id safety check
2021-05-27 16:16:20 -05:00
Gliniak
29f28b8b60
[Kernel/XAM] CloseContent: Close files related to closed content
2021-05-27 16:16:01 -05:00
Gliniak
f298d7620a
[Kernel/XAM] XamContentGetCreator: Added check for existing content
2021-05-27 16:11:35 -05:00
Triang3l
ea9625fca8
[Kernel] VdSwap virtual/physical address clarification
2021-05-25 21:31:02 +03:00
Triang3l
800db1aa49
[D3D12] Cleanup initialization log levels
2021-05-19 21:10:05 +03:00
emoose
422fc4f24e
[VFS/STFS] Check fread return values, add SVOD local structs
...
A few minor improvements to StfsContainerDevice too, and now StfsContainerFile::ReadSync will set out_bytes_read to the actual
number of bytes read
2021-05-18 09:04:45 -05:00
emoose
478bb90922
[VFS/STFS] Use xe::filesystem::OpenFile instead of memory-mapping
...
Adds StfsDirectoryEntry / StfsDirectoryBlock to make it easier to fread()
2021-05-18 09:04:45 -05:00
emoose
2659b70c90
[VFS/STFS] Improved StfsHashEntry, minor struct improvements
...
Changed XEPACKEDSTRUCT to #pragma pack, added setters for some fields that didn't have them, named some anonymous structs which might help with other compilers.
2021-05-18 09:04:45 -05:00
emoose
aa155612fb
[VFS/STFS] Move x360-specific STFS structs to stfs_xbox.h
2021-05-18 09:04:45 -05:00
Gliniak
1a2282894a
[GPU] Improve fake occlusion query compatibility
...
- Older D3D implementation used different flags
2021-05-17 19:27:23 +03:00
Triang3l
0965975cbe
[VFS] Fix missing unordered_map include in stfs_container_device.h
2021-05-17 02:50:01 +03:00
Triang3l
2d50fc07b4
[Linux] __builtin_ffsll instead of GNU/BSD-specific ffsll
2021-05-17 02:38:51 +03:00
Triang3l
e49e26e4a0
[Kernel] shim_utils lint fix
2021-05-16 18:34:27 +03:00
Triang3l
3a5752fcb6
[D3D12] Split the tessellation VS into indexed and adaptive
2021-05-16 18:27:41 +03:00
Triang3l
9f8a432479
[DXBC] Cleanup: kSysConst_*_Vec/Comp > LoadSystemConstant
2021-05-16 17:43:18 +03:00
Triang3l
ff23b1d9f9
[x64] LoadConstantXmm: Don't load -0 as +0 + cleanup
2021-05-16 14:26:57 +03:00
Triang3l
f39020700a
[GPU] Cleanup: XEPACKED -> static_assert_size/alignas
2021-05-16 14:03:36 +03:00
amine4567
165c6f0e4d
[Build] Support building with the standalone VS Build Tools
2021-05-15 18:50:59 -05:00
gibbed
536f6772da
Fix reference to old var name in xenia-build.
...
Fix reference to old variable name in xenia-build.
2021-05-15 18:13:32 -05:00
Triang3l
dd5ea87213
[GPU] Linear mip tail exact extent estimation
2021-05-15 18:19:26 +03:00
Gliniak
a69a058991
[XAM/App] Fixed issue when error code was handled as success
2021-05-13 23:08:02 -05:00
Gliniak
93c97fdbda
[XAM/Content] Provide title ID for aggregate content
2021-05-13 23:08:02 -05:00
Triang3l
4eca2326c3
[GPU/D3D12] Support texture pitch, more precise texture extent/stride calculations
2021-05-13 23:02:11 +03:00
Triang3l
8a70ae5389
[GPU] Fix RT EDRAM range clamping when using both 32bpp and 64bpp
2021-05-12 20:17:12 +03:00
gibbed
21c28a07f1
[XAM] Write stub buffer in XamReadTileToTexture.
...
[XAM] Write stub texture buffer (white) in XamReadTileToTexture.
2021-05-08 11:13:30 -05:00
gibbed
8d8bab853d
[XAM] Define unknown args for XamReadTileToTexture.
2021-05-08 11:13:30 -05:00
gibbed
37a733e33a
[XAM] More values for dummy achievement details.
...
[XAM] Provide image ID and flags for dummy achievement details.
2021-05-08 11:13:30 -05:00
gibbed
0f6bfcf0d5
[XAM] Base dummy achievement details at ID 1.
2021-05-08 11:13:30 -05:00
gibbed
5d778cfef6
[XAM] Better text for dummy achievement details.
2021-05-08 11:13:30 -05:00