Commit graph

  • f54fb15ac8 Make sure packet iterator is validate after DSStream_Packet_Clear() calls erase(). this fixs debug builds with PGR2 jackchentwkh 2021-05-23 21:57:52 +08:00
  • 55ada8d50d Use official SDL2 repository Margen67 2021-05-23 01:44:12 -10:00
  • b43ddf9156 remove extra space in end of line, replace tabs with spaces. jackchentwkh 2021-05-23 18:15:35 +08:00
  • a7b6fc5e8e Fix DSoundBufferResizeSetSize with DSBuffer creation failure when remained hos buffer bytes is less then DSBSIZE_MIN, also correct a wrongly used argument with call to DSound3DBufferCreate. add more sanity checks. this fixs PGR2, now release build can enter the race. but debug build has different issue with vector/iterator. jackchentwkh 2021-05-23 15:58:39 +08:00
  • 5d222c10a0
    Merge pull request #2221 from jackchentwkh/ImageDescWithRebaseAddress CI-5d222c1 ergo720 2021-05-21 19:38:41 +02:00
  • 8cc4b10ce0 Added test case + fixed a macro redefinition warning ergo720 2021-05-21 19:25:22 +02:00
  • df22c8baed
    Merge pull request #2210 from RadWolfie/fix-chihiro-support CI-df22c8b Luke Usher 2021-05-21 17:56:57 +01:00
  • 2e1ed31aaa Untabfied code and update code style ergo720 2021-05-21 13:08:57 +02:00
  • a665cf1f8e Replace host CreateFile/GetFileSize/ReadFile/Close with xbox::NtCreateFile/NtQueryFile/NtReadFile/NtClose. Add necessary error check logic, Add logic for loading image file from xbe section in case we encounter such guest code, alghough highly unlikely. Basicaly reversed from PGR2's code. jackchentwkh 2021-05-21 13:28:13 +08:00
  • d49762d27e Rebase Code and State Segments in EffectMaps. fix PGR2 jackchentwkh 2021-05-19 19:20:39 +08:00
  • 48e19dc281 Fix passthru not passing through all components Previous behaviour aligned with ps_1_3 texcoord, where alpha = 1 but appears to be incorrect. Note ps_1_4 texcrd leaves alpha undefined Fixes Metal Arms menu clouds Anthony 2021-05-19 22:31:54 +12:00
  • 8d725a689c kernel: rename tmp_buffer to p_default_mount_path RadWolfie 2021-05-18 16:07:56 -05:00
  • 08dd615d37 review remarks RadWolfie 2021-04-27 06:21:11 -05:00
  • cf3655bed1 fix g_hCurDir issue by auto-bind to D letter when symbolic link is called occur RadWolfie 2021-04-25 16:53:43 -05:00
  • d8eb26fbda kernel: fix chihiro support RadWolfie 2021-04-25 15:45:06 -05:00
  • 9eadb8d393 remove unused code RadWolfie 2021-04-25 13:25:21 -05:00
  • 6f793076c4 Merge pull request #2218 from PatrickvL/hlsl_texbem Luke Usher 2021-05-17 10:36:37 +01:00
  • 777258e2b7 Fix HLSL PS bump environment mapping (most of the research done by medieval, thanks!) PatrickvL 2021-05-15 21:06:12 +02:00
  • 3c46de2bf1 Merge pull request #2198 from PatrickvL/ps_tweaks PatrickvL 2021-04-23 22:48:21 +02:00
  • 9ef8fa17f4 Fix DolphinClassic sample, by not making fogDepth absolute (thanks NZJenkins!) PatrickvL 2021-04-23 12:12:46 +02:00
  • 488aad4890 HLSL Pixel Shader tweaks; PatrickvL 2021-04-14 13:13:40 +02:00
  • 9fa3f17067 Merge pull request #2204 from NZJenkins/hlsl-fixes PatrickvL 2021-04-23 00:43:17 +02:00
  • a432a7bda5 Redefine undefined ALPHAOP behaviour for Crash WoC To aid debugging add a LOG_TEST_CASE , and include ALPHAARGs when ALPHAOP is disabled Anthony 2021-04-22 01:44:51 +12:00
  • dfa27171fd Merge pull request #2202 from NZJenkins/hlsl-fixes PatrickvL 2021-04-22 10:13:36 +02:00
  • ea7cfebbf1 Include debug comment about how the final combiner hlsl was generated Make hasFinalCombiner correspond to DecodedHasFinalCombiner Anthony 2021-04-20 23:53:06 +12:00
  • cd181b002b Force VS to write to oFog.x Default fog factor to 1 (no fog) Anthony 2021-04-20 23:17:08 +12:00
  • cb4fdbf243 Merge pull request #2201 from NZJenkins/hlsl-fixes Luke Usher 2021-04-20 08:12:55 +01:00
  • ed7d202d83 Merge pull request #2196 from NZJenkins/hlsl-fixes PatrickvL 2021-04-13 15:11:00 +02:00
  • 61138f2288 Mask flags when detecting colorarg1 + missing texture case Anthony 2021-04-19 23:08:06 +12:00
  • 141e33f2c6 Reuse colorOp variable And additional comments Anthony 2021-04-19 20:45:01 +12:00
  • 8408b9cf7a Fix GTA III logos Depending on ALPHAOP == DISABLE Anthony 2021-04-19 20:29:27 +12:00
  • 476816d3b3 Implement missing texture behaviour Anthony 2021-04-19 19:10:31 +12:00
  • 44e8a2b44c Fix reflection equation Improve BumpDemo Anthony 2021-04-13 22:20:17 +12:00
  • 8241ee697d Fix DOTPRODUCT3 texture op Improves PerPixelLighting Anthony 2021-04-12 23:53:06 +12:00
  • b00ddf3e0d Merge pull request #2184 from NZJenkins/ff-ps NZJenkins 2021-04-10 03:21:41 +12:00
  • c28fcd0510 Use SAMPLE_NONE instead of IsTextureSet Anthony 2021-04-09 22:38:33 +12:00
  • d1fd1dfee5 Normalize the values returned by the texture state converter Anthony 2021-04-06 19:42:04 +12:00
  • cc726ca16c Disable lighting for point sprites Anthony 2021-04-03 19:58:27 +13:00
  • dae89b9a6d Passthrough fogging and generate fog factor for fixed function mode Anthony 2021-03-31 01:47:57 +13:00
  • 57d380363e Fix implicitly extern shader variable So the hardcoded values are used, as values were unintuitively being read from constant registers Anthony 2021-03-22 22:30:12 +13:00
  • 8a6ba9b3f9 Fixed function pixel shader Anthony 2021-03-21 23:16:44 +13:00
  • 9536e344ed Re-enable texture stage swap hack Anthony 2021-03-20 00:15:06 +13:00
  • 26b9480cea fix up fog mode (#2163) medievil1 2021-03-17 18:54:18 -04:00
  • 1b04a6bd78 Improve scaling of depth buffer texture coordinates - GetZScale accepts a PixelContainer rather than a surface - Fix accidental call to CxbxGetPixelContainerDepth instead of GetZScale - Assume we should scale the z component for all depth buffers, not just linear ones Anthony 2021-03-13 18:44:08 +13:00
  • 10018314a4 Fix Azurik render issue Remove #ifndef blocks that were driven by the opposite define than they should have been Also provide the opposite flag as a comment, next to where the 'driver' define Anthony 2021-03-11 21:53:42 +13:00
  • 30c9a4ee28 Fix array index out-of-range crash Remove PS_REGISTER_ONE usage since its not a register, but a combination of PS_REGISTER_ZERO and an INPUT_MAPPING Anthony 2021-02-15 21:53:11 +13:00
  • 1a4589f659 Fix fog when xfc is undefined * flip fog factor lerp. fog factor 1 = no fog * ensure RC is zero initialized Anthony 2021-02-07 00:49:39 +13:00
  • 5ff8e3c531 fixup typo VXSH instead of PXSH Anthony 2021-02-06 23:27:52 +13:00
  • df5b3fc6dd use vs_3_0 Anthony 2021-02-06 23:27:21 +13:00
  • f33d9a667e fix abs instead of clamp Anthony 2021-02-04 20:27:32 +13:00
  • bea9bf87d5 Fix front/back colour usage Anthony 2021-02-04 18:53:14 +13:00
  • add8edc3b4 Include Pixel Shader HLSL in output artifacts (and fixed a few typos in FixedFunction HLSL) PatrickvL 2021-02-01 18:17:42 +01:00
  • aec45c413a Corrected fixed-function formula's in final combiner PatrickvL 2021-02-01 13:20:26 +01:00
  • e71f1b9d3f fixup enable complement in final combiner Anthony 2021-02-01 22:53:32 +13:00
  • 9f2cfdff1e fixup FC0 and FC1 constant mapping Anthony 2021-02-01 20:03:39 +13:00
  • 0dad4ea233 Calculate the fog factor in the vertex shader Anthony 2021-02-01 19:40:53 +13:00
  • 809e94a367 fixup fog colour constant register Anthony 2021-01-31 22:28:31 +13:00
  • b4868d1a12 Use sampler state Anthony 2021-01-31 18:34:51 +13:00
  • 87630f2569 Wrap PS_INPUTMAPPING ops in brackets for consistent order of operations Anthony 2021-01-31 17:25:45 +13:00
  • 20d8492a1c Renames, indenting, comments PatrickvL 2021-01-06 16:34:38 +01:00
  • b474f5f262 WIP pointsprite nuances PatrickvL 2020-12-22 16:27:04 +01:00
  • 9cd21b78f6 Code cleanup (comments and variable renames) PatrickvL 2020-12-09 16:55:47 +01:00
  • 35cefcc88d No time to test, but here's alphakill support in PS HLSL patrickvl 2020-11-29 18:08:13 +01:00
  • 45b2068fdf In DxbxUpdateActivePixelShader, transfer values step by step, instead of using a switch/case loop. Also, working towards removing host SetTextureStageState calls (doesn't work yet). PatrickvL 2020-11-28 21:51:36 +01:00
  • d28a0524e6 Fixes after rebase PatrickvL 2020-11-28 16:48:07 +01:00
  • 2a30c0c653 RenderState mapping table review remarks (nothing functional) PatrickvL 2020-11-25 17:10:05 +01:00
  • 4ee41d09a3 Unrelated to PS : PatrickvL 2020-11-25 17:09:41 +01:00
  • 7ac4024174 [WIP] Xbox register combiner to HLSL pixel shader PatrickvL 2020-11-17 13:23:19 +01:00
  • e53899d1db Generalized HLSL shader compilation PatrickvL 2020-12-09 22:55:47 +01:00
  • cec1b0b885
    Merge pull request #2215 from NZJenkins/ivb-float4 CI-cec1b0b Luke Usher 2021-05-17 16:55:04 +01:00
  • 9d601299ad In CxbxImpl_SetVertexData4f, call CxbxSetVertexAttribute *after* detecting Register X_D3DVSDE_VERTEX, and updating it to X_D3DVSDE_POSITION, to avoid needless "Register < 0" logging, and to have current position values written to the NV2A vertex attribute value buffer. PatrickvL 2021-05-17 14:51:03 +02:00
  • 75e759df16 Replaced malloc with ExAllocatePool ergo720 2021-05-17 14:21:29 +02:00
  • 717e5922bb Fix HLSL PS bump environment mapping (most of the research done by medieval, thanks!) PatrickvL 2021-05-15 21:06:12 +02:00
  • b0b47ab744 Initialize vertex attribute format once Anthony 2021-05-16 22:33:04 +12:00
  • 867a0b1045 Fix 'NumVertexIndices' instead of 'NumVertices' and tidy Anthony 2021-05-16 21:59:10 +12:00
  • 0453e451f1 Change IVB to an array of 4-float slots Will fix Halo logo and menu text rendering (once it's visible!) - Remove references to fixed function concepts, since slots might contain anything e.g. don't exclude the 4th component of the slot corresponding to NORMAL in fixed function mode - Use the IVB table directly for simplicity. Copy all table data to the vertex buffer Anthony 2021-05-07 00:52:22 +12:00
  • a04a079f19 Adding code to allocate memory for ImageDesc and copy ImageDesc from DSP ImageBuffer. Tested with Otogi, success. jackchentwkh 2021-05-16 15:42:44 +08:00
  • f9863abacf Merge pull request #2198 from PatrickvL/ps_tweaks PatrickvL 2021-04-23 22:48:21 +02:00
  • 100af8d417 Fix DolphinClassic sample, by not making fogDepth absolute (thanks NZJenkins!) PatrickvL 2021-04-23 12:12:46 +02:00
  • b046c70970 HLSL Pixel Shader tweaks; PatrickvL 2021-04-14 13:13:40 +02:00
  • 2d1fcab125 Merge pull request #2204 from NZJenkins/hlsl-fixes PatrickvL 2021-04-23 00:43:17 +02:00
  • 8001b23550 Redefine undefined ALPHAOP behaviour for Crash WoC To aid debugging add a LOG_TEST_CASE , and include ALPHAARGs when ALPHAOP is disabled Anthony 2021-04-22 01:44:51 +12:00
  • 1922dd5c19 Merge pull request #2202 from NZJenkins/hlsl-fixes PatrickvL 2021-04-22 10:13:36 +02:00
  • bc9727ef52 Include debug comment about how the final combiner hlsl was generated Make hasFinalCombiner correspond to DecodedHasFinalCombiner Anthony 2021-04-20 23:53:06 +12:00
  • f33a2da880 Force VS to write to oFog.x Default fog factor to 1 (no fog) Anthony 2021-04-20 23:17:08 +12:00
  • 378bc70152 Merge pull request #2201 from NZJenkins/hlsl-fixes Luke Usher 2021-04-20 08:12:55 +01:00
  • 38e2bdf9be Merge pull request #2196 from NZJenkins/hlsl-fixes PatrickvL 2021-04-13 15:11:00 +02:00
  • b30a4f5794 Mask flags when detecting colorarg1 + missing texture case Anthony 2021-04-19 23:08:06 +12:00
  • c13f9f1a24 Reuse colorOp variable And additional comments Anthony 2021-04-19 20:45:01 +12:00
  • 7f6d7b49b9 Fix GTA III logos Depending on ALPHAOP == DISABLE Anthony 2021-04-19 20:29:27 +12:00
  • 67365ebd9b Implement missing texture behaviour Anthony 2021-04-19 19:10:31 +12:00
  • cc3ff50a9e Fix reflection equation Improve BumpDemo Anthony 2021-04-13 22:20:17 +12:00
  • d411972de0 Fix DOTPRODUCT3 texture op Improves PerPixelLighting Anthony 2021-04-12 23:53:06 +12:00
  • 8cc33ab840 Merge pull request #2184 from NZJenkins/ff-ps NZJenkins 2021-04-10 03:21:41 +12:00
  • 6c6dffdc78 Use SAMPLE_NONE instead of IsTextureSet Anthony 2021-04-09 22:38:33 +12:00
  • ae7586a58a Normalize the values returned by the texture state converter Anthony 2021-04-06 19:42:04 +12:00
  • 67b2be40f1 Disable lighting for point sprites Anthony 2021-04-03 19:58:27 +13:00
  • 600ed2abf3 Passthrough fogging and generate fog factor for fixed function mode Anthony 2021-03-31 01:47:57 +13:00
  • d01b239a89 Fix implicitly extern shader variable So the hardcoded values are used, as values were unintuitively being read from constant registers Anthony 2021-03-22 22:30:12 +13:00
  • 2cc7328479 Fixed function pixel shader Anthony 2021-03-21 23:16:44 +13:00