Commit Graph

4417 Commits

Author SHA1 Message Date
patrickvl d77fe1c1a4 D3D : Popup D3DDevice_DrawVertices test-cases for Quad-rendering with a StartVertex above 0 2018-05-11 00:49:48 +02:00
patrickvl b4daa37cab D3D : Take StartIndex into account when calling WalkIndexBuffer 2018-05-11 00:49:47 +02:00
patrickvl 143b02aa1d D3D : Instead of calling WalkIndexBuffer on pQuadToTriangleIndexBuffer, we can derive the LowIndex and HighIndexes ourselves 2018-05-11 00:49:30 +02:00
PatrickvL 7d2d08c027 Merge pull request #24 from jackchentwkh/DrawingPrimitives Fix missing diagonal half screen. 2018-05-11 00:49:18 +02:00
jackchentwkh 1d3e93963f not sleep enough!! :Q 2018-05-11 00:49:17 +02:00
jackchentwkh 1704ae8fd1 oops, something wrogn during rebase.
here is the code.
2018-05-11 00:49:15 +02:00
jackchentwkh 2aacd23d62 Fix missing diagonal half screen. 2018-05-11 00:49:14 +02:00
patrickvl 78124fca5e D3D : Small refactorings 2018-05-11 00:49:12 +02:00
patrickvl b3a10ba949 D3D : Apply WalkIndexBuffer everywhere possible 2018-05-11 00:49:11 +02:00
patrickvl b35ec48a27 D3D : Renamed to g_CachedIndexBase to g_XboxBaseVertexIndex 2018-05-11 00:49:09 +02:00
PatrickvL 8fd868c508 Merge pull request #23 from jackchentwkh/DrawingPrimitives Add index buffer walk through for all indexed rendering calls. 2018-05-11 00:49:08 +02:00
jackchentwkh 6ccf591cd2 Use WalkIndexBuffer() 2018-05-11 00:49:06 +02:00
jackchentwkh dd99b48511 Add index buffer walk through to setup min. index and index vertex span correctly. 2018-05-11 00:49:05 +02:00
PatrickvL ddaf4b293e Merge pull request #22 from jackchentwkh/DrawingPrimitives Romove wrong pIndexData assignment 2018-05-11 00:48:47 +02:00
jackchentwkh 724239f721 Romove wrong pIndexData assignment
pIndexData was assigned in line#432 with correct value.
2018-05-11 00:48:46 +02:00
PatrickvL b0a736be65 Merge pull request #21 from LukeUsher/DrawingPrimitives Fix vertex buffer size calculation: pIndexData wasn't set in DrawContext 2018-05-11 00:48:44 +02:00
Luke Usher cd751877e4 Fix vertex buffer size calculation: pIndexData wasn't set in DrawContext 2018-05-11 00:48:42 +02:00
patrickvl 1415ce2a1a Post-rebase fixes 2018-05-11 00:48:41 +02:00
PatrickvL 57f49dd378 D3D : Incomplete (!) attempt at fixing cube texture conversion (this needs adjusting). XDK test cases : CubeMap, Fur, FuzzyTeapot, Strip
Also some much needed code cleanup (indenting, comments, grouping variables, etc).
2018-05-11 00:48:40 +02:00
PatrickvL 5e8a34cb22 D3D : Determine texture dimensions via already existing tooling functions. This fixes the bump texture in BumpEarth XDK sample.
Also split up texture-format support array into 6 versions : texture vs surface, and normal vs render-target vs depth-stencil.
2018-05-11 00:48:38 +02:00
patrickvl 86c3455f81 D3D : Populate (to-patch) stream info directly, instead of via a memcpy 2018-05-11 00:48:37 +02:00
patrickvl 2f6e79e71b D3D : Renamed DynamicPatch to Info, making the vertex-conversion code a bit better to understand. Also merged CxbxVertexStreamPatch into CxbxVertexShaderInfo and CxbxVertexShaderElementPatch into CxbxVertexShaderStreamInfo, recuding the number of confusing types. 2018-05-11 00:48:35 +02:00
PatrickvL 72d9d63450 Cleaning up and renaming lots of vertex conversion code, towards finding the reason vertex-streams aren't converted correctly (see Dolphin sample) 2018-05-11 00:48:34 +02:00
patrickvl c6d0cca1a7 D3D : Introduced and used MapXboxVertexShaderHandleToCxbxVertexShader 2018-05-11 00:48:32 +02:00
patrickvl a47170b1f1 D3D : Disabled bNeedRHWReset partially. Added dimensionality to texture-normalization 2018-05-11 00:48:31 +02:00
patrickvl 44399f9ab9 D3D : DrawIndexedVertices must pass on the active IndexBase, so GetVertexBufferSize takes it into account 2018-05-11 00:48:29 +02:00
patrickvl 0e1887e5a7 D3D : Added a few test-cases (removed popups for them) 2018-05-11 00:48:28 +02:00
PatrickvL 33b0564b9e D3D : Removed dead code 2018-05-11 00:48:27 +02:00
PatrickvL 47957f0b79 D3D : Silence two LOG_TEST_CASE's (because comments already show a few cases) 2018-05-11 00:48:25 +02:00
PatrickvL a3c250445e D3D : Fixed memory leak, and a mistake in the previous commit (assigning uiHostVertexStride too soon) 2018-05-11 00:48:24 +02:00
PatrickvL a3a240a5b5 D3D : More cleanup 2018-05-11 00:48:23 +02:00
PatrickvL 73ccf18285 D3D : Some more renaming and code cleanup 2018-05-11 00:48:21 +02:00
PatrickvL 47d00b4d7a D3D : Addressed Luke's review comments (somewhat) 2018-05-11 00:48:20 +02:00
PatrickvL a93cdfa15e D3D : New primitive drawing code starts working! 2018-05-11 00:48:18 +02:00
patrickvl 8c0a784785 Rebase fixes 2018-05-11 00:48:17 +02:00
patrickvl a9e28964f1 D3D : Many more renames from WIP_LessVertexPatching branch, and now also most of it's vertex buffer conversion (not everything, yet) 2018-05-11 00:48:15 +02:00
PatrickvL a13ee28307 D3D : Renames, taken from WIP_LessVertexPatching (no functional change yet) 2018-05-11 00:48:14 +02:00
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