Luke Usher
81bf7e06c7
Merge pull request #1771 from PatrickvL/correct_render_state_info
...
Corrections in render state information
2019-11-20 15:54:10 +00:00
patrickvl
8aef04f83a
Comment-only change, no function impact;
...
Re-orded render state verification comments incrementally, like this:
"Verified [absent in X, ]present in Y[ , removed in Z]" (whereby X < Y < Z).
This makes these comments easier to read and understand.
2019-11-20 16:38:29 +01:00
PatrickvL
db90d6a8b8
Verified all render states; Updated D3DRS_MULTISAMPLEMODE to 4039 (might even be 4034)
2019-11-19 17:40:50 +01:00
PatrickvL
ae05bdba58
Correct D3DRS_MULTISAMPLERENDERTARGETMODE from 4039 to 4034.
...
This has no functional impact anyway, since there's no host renderstate associated with this (and later) render states.
2019-11-19 15:52:34 +01:00
PatrickvL
ae3fbc67c7
Rename g_SetStreamSources into g_Xbox_SetStreamSource (which better reflects it's contents)
2019-11-18 17:57:02 +01:00
RadWolfie
ffa5feb709
Merge pull request #1781 from PatrickvL/VersionVariable
...
Turn Cxbx version define into a variable
2019-11-18 09:40:04 -06:00
PatrickvL
ca1d2b2722
Reinstated version string in initial caption bar.
2019-11-18 14:44:47 +01:00
patrickvl
61b3743567
Addressed review remarks
2019-11-18 14:44:46 +01:00
patrickvl
0aac02c0c0
Fixed comment header
2019-11-18 14:44:46 +01:00
PatrickvL
9cf3591393
Turn Cxbx version define into a variable
...
This is intended to reduce the number of files that need to be
recompiled when updating a repository.
2019-11-18 14:44:44 +01:00
Luke Usher
fd7c9ccb47
Merge pull request #1782 from PatrickvL/even_more_cleanup
...
Some more cleanup
2019-11-18 13:20:07 +00:00
PatrickvL
5814eaa7fd
Do the extended availability check of render states everywhere it might have an impact.
2019-11-18 12:06:48 +01:00
patrickvl
d5a5e9fc9a
Disable X_D3DRS_MULTISAMPLETYPE in a simpler way, which also allows for easier disabling of other render states as well (would the need ever arise).
2019-11-17 16:17:10 +01:00
patrickvl
2c46324320
Replaced two literal numbers by their corresponding symbols (no functional change, just an improvement that was due)
2019-11-16 22:32:49 +01:00
PatrickvL
477ab534c5
This commit solved the fact that X_D3DRS_MULTISAMPLEMODE replaces the older X_D3DRS_MULTISAMPLETYPE (which was available below 4039).
...
This allows restoring X_D3DRS_MULTISAMPLEMODE back to 4361 where it belongs (as far as we know).
Adjusted X_D3DRS_MULTISAMPLERENDERTARGETMODE to XDK 4039 (was 4242)
Made comments on DxbxRenderStateInfo and _X_D3DRENDERSTATETYPE consistent again.
Also use X_D3DRS_* FIRST / LAST defines wherever applicable.
This is a subset of work done earlier in 67cfc36fca
2019-11-16 21:48:15 +01:00
patrickvl
070316c677
Updated CONTRIBUTORS once more
...
and renamed setup.cmd to setup.bat per RadWolfie's suggestion
2019-11-16 21:36:39 +01:00
Luke Usher
c7a5046be0
Merge pull request #1780 from PatrickvL/read_xbox_fogcolor
...
Read Fog color through GetXboxRenderState
2019-11-16 19:20:35 +00:00
patrickvl
8dfb3e20c2
Introduced CxbxImpl_SetStreamSource, and simplified it's storage.
...
Also some renaming and comments (all this copied over from Vsh_unpatching)
2019-11-16 17:12:20 +01:00
patrickvl
2012d86522
Introduce two CxbxImpl_*'s for as-yet unimplemented functions.
2019-11-16 14:44:29 +01:00
Anthony Miles
4c4b0f4022
Use xbox, host, prefixes
2019-11-16 22:51:29 +13:00
Anthony Miles
22e6fe58e0
Add shader comments
2019-11-16 21:04:32 +13:00
Anthony Miles
56b78fbdfe
expp returns 1 in the w component
2019-11-16 21:04:32 +13:00
Anthony Miles
8902118a66
Use const
2019-11-16 21:04:32 +13:00
PatrickvL
e47fe0787a
Co-ordinate usage of reserved registers
2019-11-16 21:03:21 +13:00
PatrickvL
b3671fe0e4
Read Fog color through GetXboxRenderState (not via host GetRenderState), just like all other states.
...
Also updated a few random comments and stuff mentioning the now-obsolete EmuMappedD3DRenderState.
Removed unused code and replaced manual conversion of DWORD to 4 ARGB floats by using D3DXCOLOR.
2019-11-15 17:59:16 +01:00
Anthony Miles
c5b0457dec
- Reserve a scratch register, and avoid interfering with registers reserved for undeclared v
...
- Assume 32 registers are available for simplicity
- Reserve space for all 16 v registers
2019-11-15 21:05:29 +13:00
PatrickvL
f4177031f8
Added a rudimentary setup script, to get up and running more easily.
2019-11-14 13:26:20 +01:00
PatrickvL
9c81eda65e
Make resource file language-neutral, so that Visual Studio won't complain when regional settings aren't compatible. (See https://stackoverflow.com/a/58011025/12170 )
...
Also applied the advisory steps from our GPL license to our About dialog, and trimmed this advise from COPYING itself.
2019-11-14 13:26:20 +01:00
PatrickvL
d2375abaa8
Updated CONTRIBUTORS
2019-11-14 13:26:19 +01:00
Anthony Miles
3b787aeef5
Update expp instruction handling
2019-11-14 22:28:03 +13:00
Luke Usher
829177f57a
Better implementation of RtlAssert
2019-11-12 20:14:27 +00:00
Luke Usher
6b08ee81cc
Fix kernel event handling
2019-11-12 20:14:27 +00:00
Luke Usher
b59107a956
nvnet: cleanup + bug fixes
2019-11-12 20:14:27 +00:00
Luke Usher
18e0311f00
Fix an issue where multicast packets were not captured
2019-11-12 20:14:27 +00:00
Luke Usher
8bf71bd7df
Merge pull request #1769 from PatrickvL/nv2a_callbacks
...
Support Xbox Direct3D "read" callback events
2019-11-12 10:48:05 +00:00
Luke Usher
c916e3431b
Merge pull request #1774 from NZJenkins/truncate_mova
...
Truncate input to mova
2019-11-12 10:12:41 +00:00
Anthony Miles
f9e8bb64f6
Make sure we truncate the contents of the 'a' register, so it isn't rounded to the nearest integer
2019-11-12 22:33:50 +13:00
Luke Usher
1a64cbd2f4
Revert "Disable Read callbacks again"
...
This reverts commit d0655335d3
.
2019-11-09 22:57:31 +00:00
Luke Usher
7bd88cfb14
Fix a crash caused by double-free of g_pD3DDevice
...
This was only a problem for release builds, as the code for this was
disabled in Debug builds.
This fixes the crash when booting halo: It was unrelated to the (now
disabled) callbacks
2019-11-09 22:55:44 +00:00
PatrickvL
d0655335d3
Disable Read callbacks again
2019-11-07 18:30:48 +01:00
Luke Usher
97b13c35fa
Merge pull request #1770 from PatrickvL/fix_memleak_pointsprite_textures
...
Avoid memory leak in point-sprite texture swaps
2019-11-07 15:41:30 +00:00
PatrickvL
9aea68534e
Merge pull request #1763 from PatrickvL/variable_renaming
...
Small code-cleanup
2019-11-07 16:20:02 +01:00
PatrickvL
d1d0700504
Introduce host CPU idle wait function.
...
Introduce host GPU flushing functionality.
Put Xbox callbacks into a queue instead of keeping around only one.
Use host GPU query events to emulate callback events at roughly the same time when the NV2A Xbox GPU would.
All this can be (programmatically) disabled by a g_bHack_DisableHostGPUQueries boolean (later, this could be made configurable).
2019-11-05 15:29:03 +01:00
PatrickvL
b36286a237
Move Xbox callback insertion and handling into separate functions, and call them where appropriate.
2019-11-05 15:25:05 +01:00
x1nixmzeng
cd183128d6
Fixed CMake designer settings for debugger gui
2019-11-04 20:46:46 +00:00
Luke Usher
d50cc9c5bb
Merge pull request #1763 from PatrickvL/variable_renaming
...
Small code-cleanup
2019-11-03 10:25:45 +00:00
patrickvl
364499cda0
Reordered Direct3D global variables
2019-11-02 17:03:06 +01:00
patrickvl
54bd0e2a18
Change NULL into nullptr or xbnullptr or xbnull, depending the situation
2019-11-02 16:24:37 +01:00
patrickvl
e41d684cfa
Renamed global variables (taken from Vsh_unpatching), removed (or commented-out) unused variables, and additional comments
2019-11-02 16:24:36 +01:00
Fred Hallock
8ae612fdb7
Add support for relative Xbe paths ( #1766 )
...
* Fixed an issue where the Xbe path needs to be absolute. I added a call to std::filesystem::absolute to resolve the path to absolute at the earliest that it is accessed from __argv so that there is no chance for it to cause a problem.
2019-11-02 09:41:13 +00:00