Commit Graph

4067 Commits

Author SHA1 Message Date
PatrickvL 61fc3c5f76
Merge pull request #999 from PatrickvL/IVB_Diffuse
IVB : Default Diffuse color to white
2018-03-18 15:42:38 +01:00
patrickvl 9bb8afcb1b IVB : Default Diffuse color to white 2018-03-18 15:42:21 +01:00
PatrickvL 9e136c7b4b
Merge pull request #994 from jarupxx/D3DTSS_flags_fix
D3DTSS flags fix
2018-03-18 08:09:38 +01:00
jarupxx f6dab74dda Adjust D3DTSS flags for below XDK 3948
Test case: Tony Hawk's Pro Skater 2X
2018-03-18 07:48:23 +09:00
jarupxx eda796ff88 Improve D3DDevice_MultiplyTransform 3911 OOVPA
Verified with
- [3925] Azurik
- [5344] Starsky & Hutch
2018-03-18 07:41:54 +09:00
Luke Usher 747aecbe5a
Merge pull request #997 from x1nixmzeng/patch-1
Download from the last successful non-PR builds
2018-03-17 20:52:12 +00:00
x1nixmzeng a313f655ff
Download from the last successful non-PR builds
Fixes #996
2018-03-17 19:57:46 +00:00
PatrickvL 12985c7d03
Merge pull request #993 from PatrickvL/VertexShaderHandles
Documented vertex shader functions
2018-03-16 23:26:56 +01:00
patrickvl d6f8cfe129 Described more VertexShader functions 2018-03-16 18:08:52 +01:00
patrickvl e8469077ff Described arguments and steps of a few VertexShader functions 2018-03-16 18:08:51 +01:00
patrickvl c2a96bbe48 Rename g_CurrentVertexShader into g_CurrentXboxVertexShaderHandle 2018-03-16 18:08:51 +01:00
Luke Usher 226607d1ae
Merge pull request #992 from LukeUsher/various-tweaks-and-fixes
Various tweaks and fixes
2018-03-16 15:29:30 +00:00
Luke Usher bda64774f3 Fix Debug Mode compilation 2018-03-16 13:27:15 +00:00
Luke Usher 985bb16515 Fix crash in EmuFS (Push/Pop FS:00)
This solution is NOT thread safe, but is better than outright
crashing.
2018-03-16 13:01:04 +00:00
Luke Usher 54067c295e Change texture format EmuWarning to DbgPrintf: It kills performance when using the Debug console 2018-03-15 21:48:35 +00:00
Luke Usher d39aad4d4e Cleanup old Vertex code 2018-03-15 21:33:31 +00:00
Luke Usher ddfc930c49 Prevent double memcpy for patched primitives 2018-03-15 21:13:38 +00:00
Luke Usher d30aadda4c Oops, forgot to commit updated project files.. 2018-03-15 10:39:27 +00:00
Luke Usher 0eec1618fe Fix compilation by moving Graphics exports to a new file 2018-03-15 10:39:27 +00:00
Luke Usher 36b423bf1c Use High Performance GPUs by default 2018-03-15 10:39:26 +00:00
Luke Usher 7c1031f321 Attempt to fix AMD rendering issues 2018-03-15 10:39:26 +00:00
Luke Usher 3b4d10a0b7 Stop using old resource/texture cache for vertex buffers. A new vertex buffer cache will be implemented soon.. 2018-03-15 10:39:26 +00:00
Luke Usher 0a9475244a Fix an issue where the wrong stride was used for StreamZeroData 2018-03-15 10:39:26 +00:00
Luke Usher 9c98a76f0a Reduce the number of calls to GetVertexBufferSize 2018-03-15 10:39:26 +00:00
Luke Usher cdd7ed973c Make GetCachedVertexBufferObject return if a new buffer was creadted (and therefore invalidated) 2018-03-15 10:39:26 +00:00
Luke Usher d4232df766 Cache Vertex Buffer Objects, but not their content.
This gives a performance boost by avoiding the need to constantly
Allocate and Free vertex buffers every single usage.
2018-03-15 10:39:25 +00:00
Luke Usher 9ff8df52b3 Attempt to fix DirectSoundGetSampleTime (Counts at 48Khz) 2018-03-15 10:39:25 +00:00
Luke Usher a418cda776 Disable Verex Cache: Fixes missing polygons in JSRF but kills performance.. investigating better solution 2018-03-15 10:39:25 +00:00
Luke Usher 4ecbd306b7 Use unordered_map in EmuD3D: This is faster, and we don't require caches to be ordered 2018-03-15 10:39:25 +00:00
Luke Usher e31167e4a5 Simplfy Deriving of D3DRS_CULLMODE 2018-03-15 10:39:25 +00:00
Luke Usher 116d189594
Merge pull request #989 from PatrickvL/IVB_fixes
IVB fixes
2018-03-15 10:38:23 +00:00
patrickvl 7a43686214 IVB : Only apply D3DFVF_POSITION_MASK after potential fixups 2018-03-14 00:43:50 +01:00
PatrickvL 7c0831e009 IVB : Fix illegal FVF before converting g_InlineVertexBuffer_Table to host FVF format.
This might fix the "EmuFlushIVB uses wrong stride" sanity check failure.
2018-03-13 18:24:00 +01:00
PatrickvL 25a597bd7f IVB : Cleanup after rebase 2018-03-13 18:06:38 +01:00
PatrickvL b6677ba090 IVB : Working on further IVB improvements 2018-03-13 17:53:43 +01:00
Luke Usher 090663d7cc
Merge pull request #983 from PatrickvL/InlineVertexBuffer
IVB : Renames and refactorings, copied over from WIP_LessVertexPatching.
2018-03-13 12:32:55 +00:00
PatrickvL 3df4a18619 IVB : Select FVF position mask once without overwriting the other FVF bits 2018-03-13 12:38:43 +01:00
PatrickvL f35ba8dd1f IVB : Renames and refactorings, copied over from WIP_LessVertexPatching.
This stops the inline vertex buffer from overflowing, and improves the support for flexible vertex formats.
2018-03-13 12:38:43 +01:00
Luke Usher 93cf2ab789
Merge pull request #984 from PatrickvL/YUY2
D3D : Added YUY2 and UYVY conversions, derived from libyuv.
2018-03-12 19:57:28 +00:00
PatrickvL 1117180233 D3D : Added YUY2 and UYVY conversions, derived from libyuv. Also, added a fallback to ARGB when a first CreateTexture attempt doesn't work 2018-03-12 18:05:41 +01:00
Luke Usher b8c5808a23
Merge pull request #980 from LukeUsher/master
Fix a regression where some FMVs stopped rendering after D3D8to9 was introduced
2018-03-10 21:55:58 +00:00
Luke Usher 72cd6fb135 Fix a regression where some FMVs stopped rendering after D3D8to9 was introduced. (Test case: xonlinedash 4920) 2018-03-10 21:54:54 +00:00
PatrickvL 72143392e7
Merge pull request #979 from PatrickvL/ps_version
Pixel shader updates
2018-03-10 08:51:12 +01:00
PatrickvL baa84898fb PixelShader : Comments 2018-03-09 17:53:32 +01:00
PatrickvL 6a54601693 PixelShader : Fixed a few mistakes (ifndef was converted into the opposite check , insertion of texture modes must not precede ps opcode) and some cleanup 2018-03-09 17:45:20 +01:00
PatrickvL c3065d0bb1 PixelShader : Avoided ZeroMemory, introduce and use PO_XPS and convert it to PO_PS, rename arguments to unique symbols (some conflicted with members), started using D3DPS_VERSION() macro, show more errors 2018-03-09 16:32:05 +01:00
PatrickvL 158b717f2e PixelShader : Working towards support for a configurable shader model 2018-03-08 18:59:56 +01:00
Luke Usher 2dbc1ff702
Merge pull request #976 from LukeUsher/d3d8to9-experimental
D3d8to9 experimental
2018-03-08 09:25:51 +00:00
Luke Usher 18839d868b Attempt to fix PushBuffer non-FVF issue 2018-03-08 08:56:10 +00:00
Luke Usher 29d7b38a83 Fix a crash when logging failed shades 2018-03-08 08:30:26 +00:00