Commit Graph

4436 Commits

Author SHA1 Message Date
RadWolfie 4344f5db58 Remove HLEDatabase files
Moving into new project.
2018-05-12 07:24:10 -05:00
Luke Usher 1af48f935a
Merge pull request #1152 from PatrickvL/DrawingPrimitives
Drawing primitives
2018-05-12 10:54:31 +01:00
patrickvl 04122aafef D3D : Added some notes to handling parent-textures for surface-conversion 2018-05-12 02:20:30 +02:00
patrickvl d2db9557b4 D3D : Fix Burnout so it gets in-game again, by checking parent texture type first, before getting it's surface 2018-05-12 02:03:51 +02:00
patrickvl 672b1d2824 D3D : Call GetVerticesInBuffer once instead of per stream. Also let GetVerticesInBuffer loop over entire index buffer (as the highest index could ly before the starting vertex offset) 2018-05-12 01:38:33 +02:00
patrickvl e8e6fc56fb D3D : Don't crash hard when SetStreamSource fails (this gets Galleon in-game again) 2018-05-12 01:15:23 +02:00
patrickvl 70af9c5684 D3D : Added comments about a few more reported test-cases 2018-05-12 00:19:54 +02:00
patrickvl bac6fc3b2b D3D : Added notes on dynamic textures (which cause unreachable, black mipmap levels) 2018-05-11 22:27:47 +02:00
PatrickvL 4811cf09dc
Merge pull request #27 from jackchentwkh/DrawingPrimitives
Fix fading black regression.
2018-05-11 18:41:19 +02:00
jackchentwkh 54e12cafae Fix fading black regression. 2018-05-12 00:25:20 +08:00
patrickvl a44971470b D3D : Fixed JSRF glitches - no more regressions in this branch!!! 2018-05-11 09:48:03 +02:00
patrickvl 9e1a1394cc D3D : Refactored the determination of how many vertices are in a vertex buffer 2018-05-11 09:15:56 +02:00
patrickvl ad0d817463 rebase fix 2018-05-11 00:53:55 +02:00
patrickvl a85def1d02 D3D : Disabled experiments, trying to get SetRenderTarget working at all times 2018-05-11 00:49:56 +02:00
patrickvl 78997168c4 D3D : Tiny bits of porting to Direct3D 9 2018-05-11 00:49:55 +02:00
patrickvl 125fce4481 D3D : Added (also experimental) support for parent-volume textures behind volumes 2018-05-11 00:49:54 +02:00
patrickvl c0567b1920 D3D : Added (experimental) support for parent-textures behind surfaces 2018-05-11 00:49:52 +02:00
patrickvl 3905de4a11 D3D : Experiment with D3DUsage flags 2018-05-11 00:49:51 +02:00
patrickvl 91ed03eba8 D3D : Refactored initialization of supported-format arrays 2018-05-11 00:49:49 +02:00
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