Commit Graph

4630 Commits

Author SHA1 Message Date
PatrickvL aa6896ddce D3D : Fix after rebase 2018-05-11 00:48:12 +02:00
PatrickvL 7ee1b3197f D3D : In EmuFlushIVB, call CxbxDrawPrimitiveUP instead of g_pD3DDevice8->DrawPrimitiveUP.
Also renamed VertexPatchDesc into CxbxDrawContext and VertexPatcher into CxbxVertexBufferConverter.
2018-05-11 00:48:11 +02:00
PatrickvL 738f584e63 D3D : Less primitive patching (not finished yet) 2018-05-11 00:48:09 +02:00
PatrickvL 2e88968bc1 D3D : Copied over CxbxDraw* functions from my WIP_LessVertexPatching branch.
Note : This causes corruption, we're probably missing something
2018-05-11 00:48:08 +02:00
PatrickvL b7f8b94350
Merge pull request #1150 from PatrickvL/disable_popup
D3D : Disable popup on D3DDevice_GetViewportOffsetAndScale (we've got plenty of test-cases now)
2018-05-11 00:45:23 +02:00
patrickvl fb31f6e952 D3D : Disable popup on D3DDevice_GetViewportOffsetAndScale (we've got plenty of test-cases now) 2018-05-11 00:44:48 +02:00
PatrickvL 2905279254
Merge pull request #1147 from PatrickvL/DrawIndexedVerticesUP_PrimitiveTypeFallback
D3D : DrawIndexedVerticesUP fallbacks for two unsupported primitive types
2018-05-09 23:58:44 +02:00
patrickvl 584985bb3a D3D : DrawIndexedVerticesUP fallbacks for two unsupported primitive types 2018-05-09 23:39:53 +02:00
PatrickvL 4c656faad4
Merge pull request #1146 from jackchentwkh/master
Fix RalliSpor crash by skip QUADLIST rendering with index buffer.
2018-05-09 22:20:47 +02:00
jackchentwkh b521a11bb1 Skip unsupported Primitive Type rendering.
add more info with EmuWarning for the ease of future debugging.
2018-05-10 03:16:18 +08:00
PatrickvL 4be153164f
Merge pull request #1144 from jarupxx/LTCG_patch
D3D : Copy over from Standard functions to LTCG optimized functions
2018-05-09 14:22:11 +02:00
jarupxx 5dc9d5310e D3D : Copy over from Standard functions to LTCG optimized functions
due lost parameter in EAX.
- D3DDevice_LoadVertexShader_4
- D3DDevice_SetTextureState_BorderColor_4
- D3DDevice_SetStreamSource_8

Rewrite functions
- D3DDevice_SelectVertexShader_4

Also add functions
- D3DDevice_LoadVertexShader_0
- D3DDevice_SetTextureState_TexCoordIndex_0
- D3DDevice_SetTextureState_ColorKeyColor_4
2018-05-09 20:58:46 +09:00
Luke Usher b62af3df20
Merge pull request #1143 from jackchentwkh/master
skip push buffer rendering when there is no vertex data or possible non-FVF detected.
2018-05-08 13:17:53 +01:00
jackchentwkh b026952740 Skip rendering when dwCount==0 or possible non-FVF push buffer 2018-05-08 18:56:24 +08:00
PatrickvL 454742dc6e
Merge pull request #1142 from jackchentwkh/master
Only warning instead of shut down when possible non-FVF push buffer detected
2018-05-08 12:36:40 +02:00
jackchentwkh c3cc70c6cf only warning instead of shut down when possible non-FVF push buffer detected. 2018-05-08 18:21:06 +08:00
PatrickvL 142e62ba95
Merge pull request #1140 from jarupxx/Leave_LOG_TEST_CASE
Leave LOG TEST_CASE on EndVisibilityTest_0
2018-05-07 11:49:19 +02:00
jarupxx 03921a4b2a Leave LOG TEST_CASE on EndVisibilityTest_0
Valid parameter is passed in EAX
2018-05-07 18:28:13 +09:00
patrickvl 9917594c76 Fixed linker error under Release builds (thanks to Radwolfie's help) 2018-05-06 04:36:59 -05:00
patrickvl 579bb0a898 Avoid linker error under Release builds (but still needs a fix) 2018-05-06 04:36:59 -05:00
PatrickvL 7a76fd4473 D3D : Log host D3DCaps unconditionally 2018-05-06 04:36:59 -05:00
PatrickvL ef9c36346d D3D : Log all host D3DCaps members to string 2018-05-06 04:36:59 -05:00
PatrickvL 5233fe8ccc D3D : Dump host D3DCaps (initial commit - there's more to be rendered) 2018-05-06 04:36:59 -05:00
Luke Usher a3e37583f1
Merge pull request #1131 from PatrickvL/Avoid_CreateTexture_crash
Prevent (one) CreateTexture crash
2018-05-05 16:33:01 +01:00
PatrickvL 4f8543065a D3D : Avoid a crash when creating a fallback texture instead of something that was supposed to become a DepthStencil.
This occurred when Panzer Dragoon ORTA goes in-game for example.
2018-05-04 17:48:07 +02:00
Luke Usher 998a862791
Merge pull request #1127 from LukeUsher/fix-createdevice-fail-d16
Fix an issue where AutoDepthStencilFormat of D16_LOCKABLE caused CreateDevice to fail
2018-05-03 23:20:09 +01:00
Luke Usher 564826e38d Fix an issue where AutoDepthStencilFormat of D16_LOCKABLE caused CreateDevice to fail 2018-05-03 23:17:44 +01:00
Luke Usher 4cc918881d
Merge pull request #1126 from LukeUsher/change-default-rdtsc
Make new RDTSC patch the default
2018-05-03 21:35:37 +01:00
Luke Usher e54e7fbfcf Make new RDTSC patch the default, the old method is optional 2018-05-03 21:23:09 +01:00
Luke Usher 07bad7b1c6
Merge pull request #1123 from jackchentwkh/RDTSC-Patch
Repropose RDTSC patch hack
2018-05-03 18:55:49 +01:00
Luke Usher a9f81d778c
Merge pull request #1125 from jackchentwkh/D3DDevice_BeginPush_two_arg
Quick Fix for 4531 BeginPush OOVPA
2018-05-03 18:54:53 +01:00
jackchentwkh f656648c2c Add BeginPush OOVPA for 4531, tested with crazi taxi 3.
add 4531 to BeginPush OOVPA registration.
revise BeginPush2 loging message.
2018-05-04 01:02:45 +08:00
Luke Usher 45b4a62b65
Merge branch 'master' into RDTSC-Patch 2018-05-03 16:53:33 +01:00
Luke Usher 0d8f1dd269
Merge pull request #1124 from jackchentwkh/D3DDevice_BeginPush_two_arg
Add D3DDevice_BeginPush2 patch for XDK 4134
2018-05-03 16:43:03 +01:00
jackchentwkh 3b8250c598 Add more remarks.
we shall use scaled PerformanceCounter all the time no matter we patched the rdtsc or not.
2018-05-03 23:40:27 +08:00
jackchentwkh cd60b7bbf8 put deleted code back with remarks. 2018-05-03 22:59:13 +08:00
jackchentwkh c5fb332601 add D3DDevice_BeginPush2 for XDK4134
Rallisport uses this version.
2018-05-03 21:55:34 +08:00
Luke Usher fe464da7fd
Merge pull request #1109 from PatrickvL/viewport_scaling
Viewport scaling
2018-05-03 14:06:23 +01:00
jackchentwkh 557ccc13a0 restore hack option
only patch rdtsc when the hack option is selected
2018-05-03 20:38:34 +08:00
jackchentwkh e90c2f659d Using pattern matching for rdtsc search.
exclude certain false positive.
2018-05-03 19:51:33 +08:00
patrickvl ccd82a8e0f HLE : Configurable viewport scaling (as a hack) 2018-05-02 19:10:03 +02:00
Luke Usher 7015aaa07b Return => Continue 2018-05-02 21:51:07 +08:00
Luke Usher e6235bb013 Avoid false positives using method derised by jackchen 2018-05-02 21:51:07 +08:00
Luke Usher 3e516f6b0d Oops, don't break after finding one rdtsc in a section 2018-05-02 21:51:07 +08:00
Luke Usher 8f63dffd98 Fix off-by-one error in rdtsc patch 2018-05-02 21:51:07 +08:00
Luke Usher 7f97ebf71f Fix false positive detecion in ,data segment in some titles 2018-05-02 21:51:07 +08:00
Luke Usher e53213f056 Patch rdtsc instructions 2018-05-02 21:51:07 +08:00
Luke Usher d24b7e54fd
Merge pull request #1116 from jarupxx/doc
Added D3D8LTCG Patterns to documentation
2018-05-02 13:57:06 +01:00
jarupxx 75a9fcac6a Added D3D8LTCG Patterns to documentation
This archive contains most of D3D8LTCG Library for XDK 3925, 4039, 4432, 4531, 4627, 4721, 4831, 4928, 5028, 5120, 5233, 5344, 5455, 5558, 5788, 5849
2018-05-02 21:52:53 +09:00
PatrickvL c7c964394b
Merge pull request #1113 from jackchentwkh/master
RAW pushbuffer handling improve
2018-05-01 22:18:06 +02:00