Commit Graph

4867 Commits

Author SHA1 Message Date
RadWolfie 9e44e1aa93 Rename _logPrefix to _logThreadPrefix 2018-06-07 17:44:08 -05:00
RadWolfie 89366e7d69 Prevent stack corruption for warning message
Co-Authored-By: Luke Usher <luke.usher@outlook.com>
2018-06-07 17:43:43 -05:00
Luke Usher 8b9c62f729
Merge pull request #1246 from PatrickvL/push_buffer
Push buffer
2018-06-07 19:27:05 +01:00
Luke Usher 2e275f942a
Merge pull request #1257 from PatrickvL/ViewPort_bounds
D3D : Limit SetViewport to RenderTarget bounds
2018-06-07 19:11:15 +01:00
PatrickvL c17f926162 D3D : SetViewport should check for an assigned render target first! 2018-06-07 18:45:03 +02:00
PatrickvL 18bef9379c D3D : Limit SetViewport to RenderTarget bounds. This could fix some cases where nothing is visible. 2018-06-07 18:42:27 +02:00
PatrickvL ad9a9c3205 Revert "D3D : More HLE pushbuffer refactoring - state is now kept and/or reset more correctly"
This reverts commit 78381cc0f2.
2018-06-07 18:09:13 +02:00
PatrickvL 4d663eb0c5 D3D : Remove more obsolete debugging features 2018-06-07 18:06:42 +02:00
PatrickvL 78381cc0f2 D3D : More HLE pushbuffer refactoring - state is now kept and/or reset more correctly 2018-06-07 17:35:15 +02:00
PatrickvL e8c8872d33 D3D : More HLE pushbuffer refactoring - it's starting to look (and work) more and more like the LLE counterpart! 2018-06-07 17:03:34 +02:00
PatrickvL bf5061c8f7 D3D : Removed obsolete pushbuffer tracking code 2018-06-07 14:37:18 +02:00
PatrickvL b166af9bbc D3D : HLE Pushbuffer refactorings, using an identical approach as LLE. 2018-06-07 14:36:31 +02:00
patrickvl 3d740be8a3 Add the text "LOG_TEST_CASE:" to popup-messages, so this will get logged too. 2018-06-07 10:19:42 +02:00
PatrickvL cafc1d3bbd D3D : Push buffer command refactoring, modelled after envytools but in more explicit steps (first handling command type, then instruction, then flags). 2018-06-07 10:19:42 +02:00
PatrickvL e8b12345f8 D3D : Disabled common popup in push buffer drawing (for non-FVF shaders) 2018-06-07 10:19:42 +02:00
PatrickvL 29d634784b D3D : Documented SwitchTexture and disabled common popup 2018-06-07 10:19:41 +02:00
PatrickvL 2a7c8d2476 D3D : Added push buffer call and return support (just because NV2A_PGRAPH does it too) 2018-06-07 10:19:41 +02:00
PatrickvL 4aee93fe86 D3D : Push buffer command handling improvements 2018-06-07 10:19:41 +02:00
PatrickvL 4504926a57 NV2A : Prepare activation of shader_cache (all that's left is defining USE_SHADER_CACHE and then search path corrections to include glib_compat.h successfully) 2018-06-07 10:19:40 +02:00
PatrickvL 403d86ecb5 NV2A : Update pgraph-prefixed functions to always start with a verb.
Also, renamed attribute variables to vertex_attribute (and introduce it at one more location).
2018-06-07 10:19:40 +02:00
patrickvl 29cab51a4a D3D : Attempt to render push buffer with non-FVF vertex shader (for now only when there's one stream) 2018-06-07 10:19:40 +02:00
patrickvl f41175c42f D3D : Documented Pushbuffer test-cases, and some code-cleanup 2018-06-07 10:19:39 +02:00
patrickvl fa9e364841 D3D : Fixed pushbuffer command decoding, and added a few test-cases 2018-06-07 10:19:39 +02:00
patrickvl e86540fade LOG_TEST_CASE triggers a popup again, but only under DEBUG builds.
This partailly rolls back part 04b618cf1d
2018-06-07 10:19:39 +02:00
PatrickvL 0158e91d2a D3D : Expanding HLE push-buffer drawing 2018-06-07 10:19:39 +02:00
Luke Usher 4f353eef91
Merge pull request #1253 from RadWolfie/dsound-volume-hot-fix
DSound Volume Hot-fix
2018-06-07 06:44:24 +01:00
RadWolfie 9eab19ae00 Only need convert counter to LONG
Reduce conversion necessary for optimization.
2018-06-06 23:07:29 -05:00
RadWolfie 0911180933 Rely on front speakers only
Since rear speakers can be set to silent, it affect the audio to become silent too with average setup.

Plus DirectSound API doesn't support individual speaker volume, using front left and right speaker are the only solution for HLE with DirectSound. OpenAL API might not have this type of support for HLE anyway.
2018-06-06 22:52:31 -05:00
RadWolfie 88ee1bfe88 Fix volume average conversion 2018-06-06 22:47:18 -05:00
Luke Usher b3cceaf551
Merge pull request #1252 from LukeUsher/fixes
Fix Stack Corruption in Lego Star Wars + Remove D3D8to9 (temporarily)
2018-06-06 19:53:02 +01:00
Luke Usher 1857a2cfc9 Update README.md 2018-06-06 19:49:59 +01:00
Luke Usher 39289ad143 Temporarily remove D3D8to9: Fixes missing graphics in some titles (Lego Star Wars) 2018-06-06 19:47:15 +01:00
Luke Usher b30f01b987 Update test case for regNum > 12 2018-06-06 19:27:20 +01:00
Luke Usher 24fd2bddd3 Fix stack corruption when regnum > 12 2018-06-06 19:24:30 +01:00
Luke Usher 706158149a
Merge pull request #1251 from LukeUsher/cleanup
Remove old documents: These predate Cxbx-R and are no longer valid
2018-06-06 16:11:30 +01:00
Luke Usher 8717a722ca Remove old documents: These predate Cxbx-R and are no longer valid 2018-06-06 08:27:05 +01:00
Luke Usher f58159c55f
Merge pull request #1250 from LukeUsher/rdtsc
Fixed-Point alternative implementation for rdtsc replacement
2018-06-05 10:57:01 +01:00
Luke Usher 97222b6de0 Fixed-Point alternative implementation for rdtsc replacement
Both slightly faster, and more accurate than the previous implementation

Thanks haxar!
2018-06-05 10:54:54 +01:00
PatrickvL d700120994
Merge pull request #1247 from RadWolfie/logging-update
Output log once for both debug and release builds
2018-06-04 10:48:31 +02:00
RadWolfie cb613dbfec Update to use existing log macro
Thanks to @PatrickvL for the suggestion.
2018-06-04 01:59:48 -05:00
RadWolfie c9bc4aa12d Add missing log prefix for DSound 2018-06-04 01:57:52 -05:00
RadWolfie 4acf6c259e
Merge pull request #1248 from RadWolfie/dsound-update-logs
Dsound update logs
2018-06-03 12:34:30 -05:00
RadWolfie fd10061978 Output log once for both debug and release builds
Suppressing warnings from release build isn't ideal. With this commit, we can have better idea what we really need to fix.

Plus spamming log isn't ideal either.
2018-06-03 12:22:50 -05:00
RadWolfie fe48980d29 DSP binary is not supported in HLE 2018-06-03 12:10:47 -05:00
RadWolfie b75807b1bd Remove custom DSound log marco 2018-06-03 11:38:49 -05:00
RadWolfie 323cf48a9c Update logs to output real result
Since DSP relative functions are not supported for DirectSound class from Vista and newer. We cannot provide support anyway. OpenAL has better support by the way.
2018-06-03 11:38:03 -05:00
Luke Usher 880233192a
Merge pull request #1244 from jackchentwkh/xinput_fix
Xinput fix and minor clean up

Doesn't fix lensflare, but may fix some other titles
2018-06-02 18:43:45 +01:00
Luke Usher de7d2929b7
Merge pull request #1245 from PatrickvL/log_mask
Log masks with their actual value
2018-06-02 18:39:44 +01:00
patrickvl b2f5ee9c0b Log masks with their actual value 2018-06-02 16:49:52 +02:00
jackchentwkh c529f51672 fix Otogi non-responsive input issue, again :Q
ChangeConnected flag must be set together with CurrentConnect.
2018-06-02 13:12:47 +08:00