Fisherman166
a981607e51
Add g_ prefix to FscCacheEvent.
2020-06-07 09:40:55 -07:00
PatrickvL
0afcf04c06
Merge pull request #1915 from Fisherman166/KeReleaseSemaphore
...
Implement KeReleaseSemaphore
2020-06-07 08:10:40 +02:00
RadWolfie
e166b97cd7
check for 3D audio to use mono channel by default instead of stereo
2020-06-07 00:45:05 -05:00
Fisherman166
326f645b8f
Initialize FscCacheEvent at emulation start to match the real kernel implementation.
2020-06-06 16:09:01 -07:00
Fisherman166
6d8d692b7c
Implement FscSetCacheSize matching original kernel implementation.
2020-06-06 13:34:40 -07:00
Fisherman166
857b8f933e
Rewrite HalReadSMCTrayState to match original kernel implementation. Keeps the TRAY_OPEN hack for the time being.
2020-06-06 13:27:54 -07:00
RadWolfie
503ce9b825
fix applications using IDirectSoundBuffer_Lock incorrectly
2020-06-05 20:23:52 -05:00
Fisherman166
db1429a4b9
Implement KeReleaseSemaphore based on kernel reverse engineering. Needs KiWaitTest to be implemented to be fully functional.
2020-06-04 21:26:01 -07:00
Anthony Miles
201ab08043
Treat X_D3DSCM_NORESERVEDCONSTANTS as a flag
2020-06-03 00:10:34 +12:00
Fisherman166
49e68a1ecc
Refactor ExReleaseReadWriteLock.
2020-05-28 09:10:51 -07:00
Fisherman166
b72be80b88
Refactor ExAcquireReadWriteLockShared to remove duplicate code.
2020-05-26 09:20:15 -07:00
Fisherman166
a679073ec6
Implement ExReleaseReadWriteLock.
2020-05-25 16:20:02 -07:00
Fisherman166
6f5a1f2c46
Implement ExAcquireReadWriteLockShared.
2020-05-25 16:20:01 -07:00
Fisherman166
a2e623180a
Implement ExAcquireReadWriteLockExclusive.
2020-05-25 16:20:01 -07:00
RadWolfie
ba8adc04f4
add todo comment
2020-05-15 04:01:06 -05:00
RadWolfie
772e6ed18e
add PatrickvL comments
2020-05-14 19:12:37 -05:00
RadWolfie
9871b25fa8
move audio converter helper
2020-05-14 19:09:19 -05:00
RadWolfie
95e8642970
fix placeholder reference counter
2020-05-14 18:46:16 -05:00
RadWolfie
97abbd0a7c
replace virtual functions to VMT comments
2020-05-14 18:43:44 -05:00
RadWolfie
ada86a42b5
create gc for EmuDirectSoundBuffer destructor
2020-05-14 18:38:05 -05:00
RadWolfie
fad467196a
add test case comment
2020-05-14 17:13:37 -05:00
RadWolfie
0c5117dc06
reword union data for better readability
2020-05-14 17:13:37 -05:00
RadWolfie
06af046c13
also another fixup for pitch type
2020-05-14 17:13:37 -05:00
RadWolfie
ce0e35b052
oops, volume is signed integer
2020-05-14 17:13:37 -05:00
RadWolfie
8b780f2d5c
remove Xb_Volume member from host's structure
2020-05-14 17:13:37 -05:00
RadWolfie
ee4856a06d
add comments
2020-05-14 17:13:37 -05:00
RadWolfie
72401c44d4
use typedef function pointers for better readability and remove redundant
2020-05-14 17:13:37 -05:00
RadWolfie
e91d1bf23c
finally clean up redundant codes
2020-05-14 17:13:37 -05:00
RadWolfie
04dce78f53
forward xbox audio format to internal voice class
2020-05-14 17:13:37 -05:00
RadWolfie
18a22cd934
fix spacing
2020-05-14 17:13:37 -05:00
RadWolfie
ab142abd69
forward headroom setter to voice
2020-05-14 17:13:37 -05:00
RadWolfie
d7d1d781d8
implement hybrid buffer for partial internal exposure
2020-05-14 17:13:36 -05:00
RadWolfie
dab7a608c2
oops
2020-05-14 17:13:36 -05:00
RadWolfie
9f8e617890
fix allowAdminPrivilege not align with other boolean members
2020-05-14 05:02:11 -05:00
RadWolfie
b281861e49
forgot to update history for loader project
2020-05-14 05:02:11 -05:00
RadWolfie
bd93e2288d
enforce verify shared memory structures are align properly
2020-05-14 05:02:11 -05:00
PatrickvL
34f8d30219
Merge pull request #1905 from RadWolfie/separate-admin-priv-vs-invalid-sig
...
Separate Invalid Xbe Signature popup from Admin Privilege Config Bypass
2020-05-14 09:58:31 +02:00
RadWolfie
fcdab48d00
separate invalid xbe sig popup from admin priv config
2020-05-13 16:29:02 -05:00
RadWolfie
d756012ea3
invert GUI's mute config
2020-05-13 15:05:28 -05:00
patrickvl
6d9dfb2dde
Change zero input into a comment instead of LOG_TEST_CASE everyone into madness
2020-05-08 12:13:55 +02:00
patrickvl
ba2d18d17f
Prevent invalid g_Xbox_MultiSampleType values using a setter
...
This avoids zero-dectection later on
Some tooling functions to top it off.
2020-05-08 12:05:29 +02:00
Luke Usher
fec845f6f8
Cleaner fix to the above
2020-05-08 10:00:46 +01:00
Luke Usher
85c0f608e2
Another minor fix
2020-05-08 09:52:54 +01:00
Luke Usher
23104c8280
Fix an issue where rendering broke when MultiSampleType = 0
2020-05-08 09:40:20 +01:00
Luke Usher
e499d3ad07
fix an issue where offset was not used
2020-05-08 09:28:20 +01:00
Luke Usher
b0bcc2fd9b
Add LOG_TEST_CASE as per request
2020-05-08 09:04:58 +01:00
Luke Usher
543756d712
Amendments
2020-05-08 08:49:13 +01:00
Luke Usher
86bb8cad97
Implement support for Xbox MSAA, reducing 'jaggies'
...
Also fixes offset models in GTA3 and potentially others
2020-05-07 22:51:30 +01:00
PatrickvL
555f240319
Merge pull request #1888 from LukeUsher/cleanup-createdevice
...
Cleanup EmuCreateDeviceProxy & Clarify 'Automatic' option
2020-05-07 22:42:57 +02:00
Luke Usher
e17d872356
Fix an issue where the 'Xbox CreateDevice did not call SetRenderTarget' test case would be incorrectly flagged if no depth stencil was provided
2020-05-07 20:51:45 +01:00
Luke Usher
db640d5b6f
Merge pull request #1881 from NZJenkins/improve_slots
...
Improve shader slot emulation
2020-05-07 14:03:35 +01:00
Luke Usher
a32b10aa79
oops: fix typo
2020-05-07 13:54:47 +01:00
Luke Usher
f98023bbb8
Cleanup EmuCreateDeviceProxy & Clarify 'Automatic' option
2020-05-07 13:45:39 +01:00
Luke Usher
0aa92e826a
fix compilation on new installs of vs2019
2020-05-07 12:40:01 +01:00
Anthony Miles
ada56843ad
Check for shader handles without shader functions
2020-05-04 22:22:13 +12:00
Anthony Miles
7370a29367
Tidy shader creation and handle property assignment
2020-05-04 21:42:59 +12:00
Anthony Miles
176dc9a38c
Ensure shader has been created before setting it in SetVertexShader
2020-05-04 20:49:03 +12:00
patrickvl
79102c6ef8
Don't free what hasn't been allocated.
...
Don't activate declaration when a shader is merely created
Use X_VSH_MAX_ATTRIBUTES instead of 16
Rename SetCxbxVertexShader into RegisterCxbxVertexShader
2020-05-04 10:18:00 +02:00
patrickvl
9ab91550ae
Rename SetCxbxVertexShaderHandleDeclaration into SetCxbxVertexDeclaration and give it just the Declaration.
...
Also fixed a compiler warning
2020-05-04 10:05:41 +02:00
Anthony Miles
1087b3e645
- Reset shader when shader slots are overwritten
...
- Keep track of the shader slot address
2020-05-04 18:55:51 +12:00
patrickvl
e60d11959c
Add a reminder to g_VertexShaderSource
2020-05-01 10:12:40 +02:00
patrickvl
7d53eaae73
Disabled patches on D3DDevice_GetVertexShaderDeclaration and D3DDevice_GetVertexShaderFunction (all they do is read data from their input arguments, which we don't alter anymore, so these two getters can just as well be left unpatched)
2020-04-30 15:44:24 +02:00
patrickvl
6a8534a22e
Move D3DDevice_LoadVertexShaderProgram implementation to XbVertexShader.cpp
2020-04-30 15:34:22 +02:00
patrickvl
00e85b8af8
Move D3DDevice_CreateVertexShader implementation to XbVertexShader.cpp
2020-04-30 15:27:30 +02:00
patrickvl
932398547e
Move SetCxbxVertexShader to XbVertexShader.cpp
2020-04-30 15:13:39 +02:00
patrickvl
ab6bb98758
Move D3DDevice_DeleteVertexShader implementation to XbVertexShader.cpp
2020-04-30 14:53:10 +02:00
patrickvl
311e1037a6
Move D3DDevice_SelectVertexShader implementation to XbVertexShader.cpp
2020-04-30 14:49:10 +02:00
patrickvl
ddc5d14c52
Move g_VertexShaderSource macro towards VertexShaderSource.cpp (in preparation for the next commit, that's going to use it)
2020-04-30 14:48:04 +02:00
patrickvl
e94be42c40
Fix compile warning on not-supported LOG_TEST_CASE macro argument
...
Fix compile warning on implicit type cast
2020-04-30 14:39:02 +02:00
patrickvl
7bab062ff5
Move D3DDevice_SetVertexShaderConstant implementation to XbVertexShader.cpp
2020-04-30 14:36:59 +02:00
patrickvl
5a222185a3
Move D3DDevice_SetVertexShader implementation to XbVertexShader.cpp
2020-04-30 14:28:32 +02:00
patrickvl
ea5f494a8e
Move DEBUG_D3DRESULT macro towards XbD3D8Logging.h (in preparation for the next commit, that's going to use it)
2020-04-30 14:27:17 +02:00
patrickvl
cc7e1a4069
Fix compile warning on not-supported LOG_TEST_CASE macro arguments
2020-04-30 14:21:13 +02:00
patrickvl
3db98e4e90
Move implementation of D3DDevice_LoadVertexShader towards XbVertexShader.cpp
2020-04-30 13:58:27 +02:00
patrickvl
848f4eeee3
Hide vertex slots behind GetCxbxVertexShaderSlotPtr (which also logs out of range test cases)
2020-04-29 19:08:15 +02:00
patrickvl
c1b58dafb9
Remove everything related to no-longer-set HostFVF variable
2020-04-29 15:14:27 +02:00
Anthony Miles
a2b5d2c466
Improve shader slot emulation
2020-04-27 11:18:16 +12:00
Anthony Miles
eaa095e8a2
- Rename VertexShaderInfo to VertexDeclaration
...
- Move declaration related fields to CxbxVertexShader.Declaration
2020-04-26 22:01:22 +12:00
RadWolfie
c27da955ab
replace placeholder to working emulate_system variable set
2020-04-17 14:54:01 +02:00
RadWolfie
a554f1cbba
enable Loader's UI toggleable and set enable by default
2020-04-14 20:27:16 -05:00
ergo720
653252d1f3
Create two independent file mappings for a chihiro system
2020-04-14 20:24:19 -05:00
RadWolfie
0623d4f485
add SEGABOOT_EP_XOR and update GetXbeType to use named value
2020-04-14 20:24:19 -05:00
RadWolfie
d2f104f251
change KB/MB to KiB/MiB
2020-04-14 20:24:19 -05:00
RadWolfie
1a1019b85c
replace hardcode 384 to blocks_reserved_t plus add comments
2020-04-14 20:24:19 -05:00
RadWolfie
897bc182f8
use enum class for XbeType to resolve warnings
2020-04-14 20:24:19 -05:00
RadWolfie
55f84cd67e
move functions into their own locations
2020-04-14 20:24:19 -05:00
RadWolfie
35319dc724
convert defines to inline constexpr
2020-04-14 20:24:19 -05:00
RadWolfie
57905bab69
replace hardcode addresses to defined values
2020-04-14 20:24:19 -05:00
RadWolfie
32001136ae
replace hardcode addresses to macro for AddressRanges files
2020-04-14 20:24:18 -05:00
RadWolfie
2ead1e0fe0
move address ranges into AddressRanges header file
2020-04-14 20:24:18 -05:00
RadWolfie
7bfd1c795b
move GetLastErrorString and FreeLastErrorString to loader source file
2020-04-14 20:24:18 -05:00
RadWolfie
04840af6d3
remove old todo comment
2020-04-14 20:24:18 -05:00
RadWolfie
9e1077fe9f
declare ARRAY_SIZE once and use C++11 feature
2020-04-14 20:24:18 -05:00
RadWolfie
af3858c0d8
add todo comments
2020-04-14 20:24:18 -05:00
RadWolfie
fbe4987569
add verbose debug; won't work with loader project
2020-04-14 20:24:18 -05:00
RadWolfie
fb7398d7c9
Get maximum reserve memory ranges from host.
...
Plus more fixup to manage reliable memory design on loader launch and emulator.
2020-04-14 20:24:18 -05:00
RadWolfie
37b230fbfe
scrap win32 draft gui
2020-04-14 20:24:18 -05:00
RadWolfie
8a33562dc8
fix standalone persisted memory support
2020-04-14 20:24:18 -05:00
RadWolfie
b20a970b1d
fix shared memory reboot loss
2020-04-14 20:24:18 -05:00
RadWolfie
7fca148bc6
implement toggle loader project in GUI
2020-04-14 20:24:18 -05:00