Commit graph

6288 commits

Author SHA1 Message Date
PatrickvL
555f240319
Merge pull request #1888 from LukeUsher/cleanup-createdevice
Cleanup EmuCreateDeviceProxy & Clarify 'Automatic' option
2020-05-07 22:42:57 +02:00
PatrickvL
f3d7ae61c2
Merge pull request #1889 from LukeUsher/fix-rendertarget-test-case
Fix an issue where with CreateDevice LOG_TEST_CASE
2020-05-07 22:32:16 +02:00
Luke Usher
e17d872356 Fix an issue where the 'Xbox CreateDevice did not call SetRenderTarget' test case would be incorrectly flagged if no depth stencil was provided 2020-05-07 20:51:45 +01:00
Luke Usher
db640d5b6f
Merge pull request #1881 from NZJenkins/improve_slots
Improve shader slot emulation
2020-05-07 14:03:35 +01:00
Luke Usher
a32b10aa79 oops: fix typo 2020-05-07 13:54:47 +01:00
Luke Usher
f98023bbb8 Cleanup EmuCreateDeviceProxy & Clarify 'Automatic' option 2020-05-07 13:45:39 +01:00
PatrickvL
5a1b8b55e5
Merge pull request #1887 from LukeUsher/fix-compilation-newer-vs
fix compilation on new installs of vs2019
2020-05-07 14:06:13 +02:00
Luke Usher
0aa92e826a fix compilation on new installs of vs2019 2020-05-07 12:40:01 +01:00
Anthony Miles
ada56843ad Check for shader handles without shader functions 2020-05-04 22:22:13 +12:00
Anthony Miles
7370a29367 Tidy shader creation and handle property assignment 2020-05-04 21:42:59 +12:00
Anthony Miles
176dc9a38c Ensure shader has been created before setting it in SetVertexShader 2020-05-04 20:49:03 +12:00
patrickvl
79102c6ef8 Don't free what hasn't been allocated.
Don't activate declaration when a shader is merely created
Use X_VSH_MAX_ATTRIBUTES instead of 16
Rename SetCxbxVertexShader into RegisterCxbxVertexShader
2020-05-04 10:18:00 +02:00
patrickvl
9ab91550ae Rename SetCxbxVertexShaderHandleDeclaration into SetCxbxVertexDeclaration and give it just the Declaration.
Also fixed a compiler warning
2020-05-04 10:05:41 +02:00
Anthony Miles
1087b3e645 - Reset shader when shader slots are overwritten
- Keep track of the shader slot address
2020-05-04 18:55:51 +12:00
patrickvl
e60d11959c Add a reminder to g_VertexShaderSource 2020-05-01 10:12:40 +02:00
patrickvl
7d53eaae73 Disabled patches on D3DDevice_GetVertexShaderDeclaration and D3DDevice_GetVertexShaderFunction (all they do is read data from their input arguments, which we don't alter anymore, so these two getters can just as well be left unpatched) 2020-04-30 15:44:24 +02:00
patrickvl
6a8534a22e Move D3DDevice_LoadVertexShaderProgram implementation to XbVertexShader.cpp 2020-04-30 15:34:22 +02:00
patrickvl
00e85b8af8 Move D3DDevice_CreateVertexShader implementation to XbVertexShader.cpp 2020-04-30 15:27:30 +02:00
patrickvl
932398547e Move SetCxbxVertexShader to XbVertexShader.cpp 2020-04-30 15:13:39 +02:00
patrickvl
ab6bb98758 Move D3DDevice_DeleteVertexShader implementation to XbVertexShader.cpp 2020-04-30 14:53:10 +02:00
patrickvl
311e1037a6 Move D3DDevice_SelectVertexShader implementation to XbVertexShader.cpp 2020-04-30 14:49:10 +02:00
patrickvl
ddc5d14c52 Move g_VertexShaderSource macro towards VertexShaderSource.cpp (in preparation for the next commit, that's going to use it) 2020-04-30 14:48:04 +02:00
patrickvl
e94be42c40 Fix compile warning on not-supported LOG_TEST_CASE macro argument
Fix compile warning on implicit type cast
2020-04-30 14:39:02 +02:00
patrickvl
7bab062ff5 Move D3DDevice_SetVertexShaderConstant implementation to XbVertexShader.cpp 2020-04-30 14:36:59 +02:00
patrickvl
5a222185a3 Move D3DDevice_SetVertexShader implementation to XbVertexShader.cpp 2020-04-30 14:28:32 +02:00
patrickvl
ea5f494a8e Move DEBUG_D3DRESULT macro towards XbD3D8Logging.h (in preparation for the next commit, that's going to use it) 2020-04-30 14:27:17 +02:00
patrickvl
cc7e1a4069 Fix compile warning on not-supported LOG_TEST_CASE macro arguments 2020-04-30 14:21:13 +02:00
patrickvl
3db98e4e90 Move implementation of D3DDevice_LoadVertexShader towards XbVertexShader.cpp 2020-04-30 13:58:27 +02:00
patrickvl
848f4eeee3 Hide vertex slots behind GetCxbxVertexShaderSlotPtr (which also logs out of range test cases) 2020-04-29 19:08:15 +02:00
patrickvl
c1b58dafb9 Remove everything related to no-longer-set HostFVF variable 2020-04-29 15:14:27 +02:00
Luke Usher
f296636643
Merge pull request #1879 from Margen67/actions
ci: Update release if condition
2020-04-27 08:07:04 +01:00
Margen67
47b53211f9 ci: Update release if condition 2020-04-27 00:04:50 -07:00
Anthony Miles
a2b5d2c466 Improve shader slot emulation 2020-04-27 11:18:16 +12:00
Anthony Miles
eaa095e8a2 - Rename VertexShaderInfo to VertexDeclaration
- Move declaration related fields to CxbxVertexShader.Declaration
2020-04-26 22:01:22 +12:00
PatrickvL
57a8dc6f3b
Merge pull request #1877 from Margen67/typofix
setup.bat: Fix typos, add -j to build
2020-04-25 21:40:36 +02:00
Margen67
1a2df9cd13
setup.bat: Fix typos, add -j to build 2020-04-20 11:16:52 -07:00
PatrickvL
e6b2ed88af
Merge pull request #1872 from Cxbx-Reloaded/cmake_loader_reloaded
Near absolute memory control
2020-04-20 09:50:50 +02:00
RadWolfie
c27da955ab replace placeholder to working emulate_system variable set 2020-04-17 14:54:01 +02:00
PatrickvL
10b7d06be8
Merge pull request #1871 from RadWolfie/enable-loader-ui
LOADER: Enable Loader's UI and Set to Default
2020-04-15 09:02:26 +02:00
RadWolfie
a554f1cbba enable Loader's UI toggleable and set enable by default 2020-04-14 20:27:16 -05:00
ergo720
653252d1f3 Create two independent file mappings for a chihiro system 2020-04-14 20:24:19 -05:00
RadWolfie
0623d4f485 add SEGABOOT_EP_XOR and update GetXbeType to use named value 2020-04-14 20:24:19 -05:00
RadWolfie
d2f104f251 change KB/MB to KiB/MiB 2020-04-14 20:24:19 -05:00
RadWolfie
1a1019b85c replace hardcode 384 to blocks_reserved_t plus add comments 2020-04-14 20:24:19 -05:00
RadWolfie
897bc182f8 use enum class for XbeType to resolve warnings 2020-04-14 20:24:19 -05:00
RadWolfie
55f84cd67e move functions into their own locations 2020-04-14 20:24:19 -05:00
RadWolfie
35319dc724 convert defines to inline constexpr 2020-04-14 20:24:19 -05:00
RadWolfie
57905bab69 replace hardcode addresses to defined values 2020-04-14 20:24:19 -05:00
RadWolfie
32001136ae replace hardcode addresses to macro for AddressRanges files 2020-04-14 20:24:18 -05:00
RadWolfie
2ead1e0fe0 move address ranges into AddressRanges header file 2020-04-14 20:24:18 -05:00