Commit graph

6420 commits

Author SHA1 Message Date
patrickvl
af35d9b161 Dumping of vertex declaration now also shows the number of streams (like before it was extracted into it's own function).
Also commented on vertex shader temporary register counts and r12+oPos behavior
2019-10-19 15:57:20 +02:00
patrickvl
0366e647a5 Dump vertex shader separately from conversion 2019-10-19 14:55:20 +02:00
Luke Usher
c0cdb011b6
Merge pull request #1754 from literalmente-game/patch-1
Add missing dcl statement
2019-10-17 08:52:19 +01:00
literalmente-game
f8e660aa40
Add missing dcl statement
Fixes blank shader compilation
2019-10-17 03:44:54 -03:00
Luke Usher
3c497362e4
Merge pull request #1746 from PatrickvL/fix_vertex_decl_skip_token
Fix vertex conversion when skip tokens are present in the Xbox vertex declaration
2019-10-16 13:01:38 +01:00
PatrickvL
12880255f0
Merge pull request #1750 from LukeUsher/restore-fog-hack
Restore fog hack: Fixes Silent Hill 2
2019-10-14 17:44:07 +02:00
Luke Usher
1914e17078 Typo 2019-10-14 16:29:18 +01:00
patrickvl
6ef5b21144 Fix vertex conversion when skip tokens are present in the Xbox vertex declaration. 2019-10-14 14:56:32 +02:00
Luke Usher
4646c14c29 Restore fog hack: Fixes Silent Hill 2 2019-10-14 08:01:15 +01:00
PatrickvL
e5dc2e5e13
Merge pull request #1747 from LukeUsher/fix-bad-pixel-shader-fog-color
Fix an issue with reading FOGCOLOR in a pixel shader
2019-10-13 20:30:58 +02:00
Luke Usher
dae0d84f9b Fix an issue with reading FOGCOLOR in a pixel shader 2019-10-12 19:21:24 +01:00
PatrickvL
17411fa19e
Merge pull request #1742 from LukeUsher/renderstate-texture-state-unpatch
Remove move RenderState/TextureState Patches
2019-10-12 15:35:40 +02:00
Luke Usher
b0ace63021 Fix smashing drive intro 2019-10-12 13:48:34 +01:00
Luke Usher
f2235ab522 Fix missing fog in DolphinClassic 2019-10-11 08:42:03 +01:00
Luke Usher
c79b11109f Fix crash in pixel shaders caused undefined behavior in LTCG handler 2019-10-08 16:24:47 +01:00
Luke Usher
9537158007 Fix nasty bug with LTCG D3DDevice_SetPixelShader_0 2019-10-07 17:03:54 +01:00
Luke Usher
58e0416a96 another typo 2019-10-07 15:58:27 +01:00
Luke Usher
de2b891d60 Typo 2019-10-06 21:13:34 +01:00
Luke Usher
fdbd9fb2ab Add removed patches to unused-patches file. 2019-10-06 17:21:16 +01:00
Luke Usher
94c79876d2 Fix broken pixel shaders (Rallisport Challenge, etc) 2019-10-06 17:21:00 +01:00
Luke Usher
5d0b44303c Fix a regression with XDK 4432 (Buffy and others) 2019-10-05 14:50:50 +01:00
Luke Usher
422e95db88 Remove all RenderState/TextureState Patches, bar one.
With this work, all of these patches are no longer required, and
instead, are replaced with a RenderStateConverter and
TextureStateConverter object

One single render state patch (D3DDevice_SetRenderState_Simple) is still
required, as that bypasses the D3D__RenderStates array in some XDK
versions.
2019-10-03 19:03:37 +01:00
ergo720
89e190977b
Merge pull request #1737 from LukeUsher/xbox-controller-s
Add support for Xbox Controller S
2019-09-29 20:57:55 +02:00
Luke Usher
31078f7307 Add support for Xbox Controller S 2019-09-29 14:47:59 +01:00
Luke Usher
0301c7957a
Merge pull request #1738 from RadWolfie/fix-pr-1736
HOTFIX: Fix wchar_t Buffer Uneven Allocate Memory
2019-09-29 14:30:48 +01:00
RadWolfie
0b0ad41ddb fix wchar_t buffer uneven allocate memory 2019-09-28 21:22:29 -05:00
Luke Usher
b1d3cfb387
Merge pull request #1735 from RadWolfie/fix-new-input-breakage
Fix New GUI Input Breakage
2019-09-28 17:26:03 +01:00
RadWolfie
52da59e5c3 Move SDL2 directly in target_link_libraries since SDL2 is cross-platform 2019-09-27 11:08:21 -05:00
RadWolfie
19ca5361af fix new GUI input breakage for loader projects to compile 2019-09-27 11:08:21 -05:00
RadWolfie
534333a18c
Merge pull request #1736 from RadWolfie/use-std-filesystem
Remove Any Experimental filesystem Linkage
2019-09-27 10:47:02 -05:00
RadWolfie
f38dc91075 replace std's wstring_convert to SDL's iconv library 2019-09-26 10:19:01 -05:00
RadWolfie
b4457c3605 replace experimental filesystem to std filesystem 2019-09-25 13:53:02 -05:00
PatrickvL
a6c0353c5b Fix a large part of XTL-hell (#1731)
* Rename g_CurrentXboxVertexShaderHandle to g_Xbox_VertexShader_Handle

* Remove CxbxDrawContext.XboxVertexShaderHandle field, and replaced reads from this field by g_Xbox_VertexShader_Handle (since all writes to this field used that as source)

* Removed commented-out #include's

* Removed duplicate DEF_VSH_* defines, replaced usage by existing X_D3DVSD_*() defines.

* Removed commented-out #include's from src/vsbc

* Removed nearly all "namespace XTL"-wrappers around #includes; Instead, wrap applicable contents of these included files in namespace XTL. Removed all now-obsolete "XTL::" prefixes.

* Moved all host D3D9 symbols outside of namespace XTL (finally!)

* Removed all "using namespace XTL;" occurences (except one, which is marked with a TODO)

* Restored Unix EOL style (to avoid large diffs with upstream)

* Moved CxbxInitAudio outside XTL namespace (this was the last Cxbx* symbol in XTL)

* Removed final "using namespace XTL" occurence by cleaner wrapping of logging intrinsics inside and outside namespace XTL.

* Prefix a few Xbox types with X_ (and avoid compile-error by removing the now-obsolete duplicate of X_D3DCALLBACK).
Also nicely indent all Direct3D9 alias defines, introduced when porting from Direct3D8. Who knows, one day we might re-define them once again to port to more recent Direct3D versions?

* Made EmuXTL.h obsolete, by #include'ing specific headers instead of it.

* Removed unused #include's of EmuFS.h

* Remove #pragma once, when there's already an include guard present.

* Delete EmuXTL.h and XOnline.cpp, keep but disable XOnline.h for documentation purposes.

* Fix all compiler warnings that have no functional impact. What's left requires more research

* Remove GetVersion, retain Wine check
2019-09-24 16:25:52 -05:00
Luke Usher
fa38cd41b2
Merge pull request #1730 from RadWolfie/fix-delay-input
Implement Input Initialize Latency Timer & Device Emulation Status
2019-09-20 16:29:37 +01:00
RadWolfie
d5f79df0b7 implement input initialize latency timer and device emulation status 2019-09-17 11:45:11 -05:00
PatrickvL
0c470044fb Removed never-set union field : X_D3DVertexShader.CxbxVertexShaderHandle to avoid using garbage data. 2019-09-17 09:57:57 +02:00
PatrickvL
456906b6b4 Removed written-only field : CxbxVertexShader.HostDeclarationSize 2019-09-17 09:51:57 +02:00
RadWolfie
796561dd6c
Merge pull request #1725 from PatrickvL/moving_d3d_types
* Moved XbPushBuffer.h, XbVertexBuffer.h and XbVertexShader.h outside the XTL namespace.
Moved Cxbx-specific types from XbD3DTypes.h towards appropriate above header files.
Fixed up all XTL-hell that resulted from this.

* Moved XbConvert.h outside the XTL namespace.
Fixed up all XTL-hell that resulted from this.

* Moved XbPixelShader.h outside the XTL namespace.
Fixed up all XTL-hell that resulted from this.

* Moved XbState.h outside the XTL namespace.
Fixed up all XTL-hell that resulted from this.
2019-09-14 15:06:41 -05:00
ergo720
7c300c14ed
Merge pull request #1721 from RadWolfie/gui-input-fix-detect
Fix Bind Input Detection
2019-09-14 11:16:40 +02:00
PatrickvL
fee97614c2
Merge pull request #1726 from NZJenkins/king_kong2
Detect and remove register redefinitions in vertex declarations
2019-09-14 09:43:34 +02:00
RadWolfie
14221d0cca fix detect input 2019-09-13 16:50:58 -05:00
PatrickvL
a407b40f46 Moved XbState.h outside the XTL namespace.
Fixed up all XTL-hell that resulted from this.
2019-09-13 14:35:02 +02:00
PatrickvL
7aa793b6b7 Moved XbPixelShader.h outside the XTL namespace.
Fixed up all XTL-hell that resulted from this.
2019-09-13 13:37:41 +02:00
PatrickvL
a6dd0c49a6 Addressed review-comment (removing unneeded XTL namespace prefix) 2019-09-13 13:07:07 +02:00
Anthony Miles
07d53c0e2b fixup commit
- free pXboxDeclarationCopy
- use bitset instead of array
- include method in sort
2019-09-13 20:46:19 +12:00
PatrickvL
98c89ec656 Moved XbConvert.h outside the XTL namespace.
Fixed up all XTL-hell that resulted from this.
2019-09-12 17:46:16 +02:00
patrickvl
32e155e1ba Moved XbPushBuffer.h, XbVertexBuffer.h and XbVertexShader.h outside the XTL namespace.
Moved Cxbx-specific types from XbD3DTypes.h towards appropriate above header files.
Fixed up all XTL-hell that resulted from this.
2019-09-12 17:46:16 +02:00
RadWolfie
b01a6c97cf
Merge pull request #1722 from PatrickvL/vsh_cleanup
Moving, reordering, renaming and other cleanup of D3D symbols
2019-09-12 10:30:12 -05:00
PatrickvL
eb4db9a27a Moving, reordering, renaming and other cleanup of D3D symbols (all taken from my Vsh_unpatching branch) 2019-09-12 09:34:58 +02:00
Anthony Miles
1d6fd7e851 Detect and remove register redefinitions 2019-09-12 18:56:27 +12:00