Commit graph

  • b884d16766 Started porting Clear Ignore BeginScene and EndScene calls under D3D11 For D3D11, move a Present call to SwapChain Replace a D3D9 SetRenderTarget call by CxbxSetRenderTarget PatrickvL 2022-01-23 17:32:38 +01:00
  • 377230bcf5 Ported GetBackBuffer PatrickvL 2021-07-21 17:22:01 +02:00
  • 475eb5deb9 Removed g_UseFixedFunctionVertexShader, as it never changes from true anymore. PatrickvL 2021-07-19 14:37:17 +02:00
  • 53acc42ad9 Avoid ImGui related crashes when render_base is removed PatrickvL 2021-07-16 10:51:47 +02:00
  • 391741a075 Ported vertex shader creation and activation For this, introduced and used CxbxCreateVertexShader, and refactored CxbxUpdateHostVertexShader, to perform local state tracking and switch active host vertex shader only when required Removed ResetD3DDevice method PatrickvL 2021-07-16 10:28:29 +02:00
  • aa98efbc1a Introduced and used CxbxSetPixelShader, to perform local state tracking and switch active host pixel shader when required PatrickvL 2021-07-14 17:26:28 +02:00
  • a704afff26 Ported pixel shader creation and activation PatrickvL 2021-07-14 17:08:51 +02:00
  • 4a23347d78 Extended the NV2A register defines (completing the kelvin Nv097 set from other sources like recent xemu additions, so all credit to them, although they haven't copied over the defines we've added over the years). PatrickvL 2021-06-18 12:56:59 +02:00
  • 9c0f4a5991 Introduced Xbox version of D3DPOOL (which seems to be ignored in all XDK API's) PatrickvL 2021-06-16 17:40:54 +02:00
  • bd83d00b1b Introduced Xbox version of X_D3DBACKBUFFER_TYPE PatrickvL 2021-06-16 17:33:03 +02:00
  • 8e3651cb70 Introduced Xbox version of X_POINT and X_RECT (for now, aliassed to Windows types) PatrickvL 2021-06-16 17:27:10 +02:00
  • 824c840102 Introduced Xbox version of X_D3DDEVICE_CREATION_PARAMETERS (although D3DDevice_GetCreationParameters was the only function using this, but it's no longer patched) PatrickvL 2021-06-16 17:03:33 +02:00
  • 5225e9e609 Introduced Xbox version of HWND PatrickvL 2021-06-16 16:55:57 +02:00
  • 7a9382a79f Introduced Xbox version of D3DCUBEMAP_FACES PatrickvL 2021-06-16 16:40:38 +02:00
  • 67c6c4245f Introduced Xbox version of D3DDVTYPE PatrickvL 2021-06-16 16:28:21 +02:00
  • f2529e8cb7 Reviewed texture formats patrickvl 2021-06-13 23:05:52 +02:00
  • 9baea76494 Ported texture creation and locking/unlocking patrickvl 2021-06-13 22:07:43 +02:00
  • 337755b325 Use feature level 10.0 Port CreateTexture PatrickvL 2021-06-13 18:30:50 +02:00
  • 11a0834b83 CxbxSetIndices() never returns anything Copied over example CreateDevice initialization (probably won't compile) Leave out g_pDirect3D and g_D3DCaps globals (no longer required in D3D11) Call CheckFormatSupport from g_pD3DDevice (not g_pDirect3D) Ported CreateQuery (using a D3D11_QUERY_DESC argument) PatrickvL 2021-06-12 17:44:47 +02:00
  • cd0bf92e50 Ported vertex attribute conversion from D3D9 (which uses DeclCaps) to D3D11 (which seemingly supports all vertex attribute formats we need, in feature level 10 already?) PatrickvL 2021-06-11 13:52:31 +02:00
  • d8e4d27841 Ported vertex attribute conversion from D3D9 (which uses DeclCaps) to D3D11 (which seemingly supports all vertex attribute formats we need, in feature level 10 already?) PatrickvL 2021-06-11 13:52:31 +02:00
  • 10e28379b4 Mapped D3D9 D3DDECLTYPE to D3D11 DXGI_FORMAT Also a feeble attempt at converting part of the vertex declaration data PatrickvL 2021-06-10 18:28:33 +02:00
  • 32fae4a0e6 Took a stab at SetSamplerState > CreateSamplerState + PSSetSamplers Temporary alias CXBXFORMAT, mapped to D3D9 D3DFORMAT or D3D11 DXGI_FORMAT Mapped D3D9 D3DFORMAT's to D3D11 DXGI_FORMAT's (for as far as possible - needs more work) Ported D3D9 CheckDeviceFormat to D3D11 CheckFormatSupport PatrickvL 2021-06-10 17:47:43 +02:00
  • 0531d0dff7 Introduced wrappers for the easy, one-to-one mappable D3D calls PatrickvL 2021-06-10 13:32:00 +02:00
  • 2cb703c24a Remove FullScreen_PresentationInterval alias Make sure all code uses aliasses, so nothing but the aliasses refer to D3D 9 types (making it easier to spot all places where we have to convert to 11) Remove unused symbol dwBytesRead Fixed hint on missing argument to XB_InitializeObjectAttributes macro PatrickvL 2021-06-10 10:24:20 +02:00
  • 1413a604ef Removed some unused aliasses Aliassed some more Dx11 symbols PatrickvL 2021-06-09 12:45:23 +02:00
  • 1668ed6779 Introduced a few Xbox D3D types that were until now aliassed to D3D9 Adjusted a few assignments that can now no longer rely on the copy operator. Added D3DDevice_SetBackMaterial implementation (and trampoline) Trampolined D3DDevice_SetMaterial and unpatched D3DDevice_GetMaterial No longer call SetLight on host (fixed function won't be possible under DxD11 anyway) PatrickvL 2021-06-08 17:33:35 +02:00
  • 132fa33b8a Some preliminary interface mapping from DX9 to DX11 (nothing functional, and still using a conditional define, to keep things compiling for now) PatrickvL 2021-06-08 11:43:35 +02:00
  • 3515449200 Merge branch 'testbed' CI-3515449 Luke Usher 2024-06-07 20:05:04 +01:00
  • 6aba34fe0d Merge branch 'master' of https://github.com/cxbx-reloaded/cxbx-reloaded Luke Usher 2024-06-07 20:04:53 +01:00
  • a3b2306b12 Merge branch 'master' of https://github.com/cxbx-reloaded/cxbx-reloaded into testbed Luke Usher 2024-06-07 20:04:18 +01:00
  • bfae57175e
    Merge pull request #2458 from LukeUsher/fix-compilation-vs2022 PatrickvL 2024-05-25 11:02:05 +02:00
  • 23134a1d44 chihiro: merge experimental Chihiro emulation Luke Usher 2024-05-23 09:55:44 +01:00
  • 00939039c4 Revert "Update dependencies" Luke Usher 2024-05-23 09:46:24 +01:00
  • 4cdb5f5cba Merge remote-tracking branch 'ergo720/less_busy_loops' into testbed Luke Usher 2024-05-23 09:22:33 +01:00
  • 5eb505a71b EmuX86: Let invalid memory accesses trigger a warning rather than a fatal error Luke Usher 2024-05-22 14:02:38 +01:00
  • eb2381eb8e Merge branch 'fix-compilation-vs2022' Luke Usher 2024-05-22 12:50:04 +01:00
  • 953c91a8c2
    Merge pull request #2457 from Ryce-Fast/master Luke Usher 2024-05-22 12:48:43 +01:00
  • 1615ecc976 fix the build on vs2022 17.9.1 Luke Usher 2024-05-22 12:46:03 +01:00
  • 0007d20b03
    Merge pull request #2445 from medievil1/fog-stuff CI-0007d20 Luke Usher 2024-05-22 12:42:07 +01:00
  • 643ce9207c Update dependencies Ryce-Fast 2024-03-14 14:06:25 +01:00
  • 5837658a9e
    Update MediaBoard.cpp AlesanddroPB95 2024-03-10 14:04:02 +01:00
  • 372ccb0f12
    Update README.md AlesanddroPB95 2024-03-10 13:47:03 +01:00
  • 783d773d0d
    Create cmake-multi-platform.yml AlesanddroPB95 2024-03-10 11:45:34 +01:00
  • bfb10092c0
    Merge pull request #2451 from RadWolfie/fix-hardware-model CI-bfb1009 RadWolfie 2024-02-08 12:48:46 -06:00
  • f5b4878245
    Merge pull request #2452 from medievil1/my-master CI-f5b4878 Luke Usher 2024-02-04 19:47:12 +00:00
  • 4174fbc23f review remarks RadWolfie 2024-02-04 13:29:40 -06:00
  • 0560ed6955 change clamp to saturate in shader templates medievil1 2024-02-03 14:46:54 -05:00
  • 875015164c fix incorrect setting in pixel shader template medievil1 2024-02-03 14:38:16 -05:00
  • aedb5ba87b address review comment medievil1 2024-02-03 12:08:00 -05:00
  • d6f1e5f17a
    Merge pull request #11 from medievil1/PB-PR3 jackchentwkh 2024-02-03 19:38:54 +08:00
  • e5dcdebe7f device: corrected conversions based on hardware model RadWolfie 2024-02-03 02:45:37 -06:00
  • bd31c6e118 Address Review comments medievil1 2024-02-01 15:08:29 -05:00
  • bd067a90c5 address review comments medievil1 2024-01-31 20:41:18 -05:00
  • d0ce26ea33 address review comment medievil1 2024-01-31 17:31:28 -05:00
  • 918f4a472c address review comment medievil1 2024-01-24 00:17:35 -05:00
  • e62bd88f9f just adding more info to comment medievil1 2024-01-23 21:54:23 -05:00
  • 31e5287fb4 crash fix.... medievil1 2024-01-22 16:30:01 -05:00
  • 787ca602f4 fix formatting issues medievil1 2024-01-22 14:46:15 -05:00
  • 4dc638541b add FF pixelshader fog medievil1 2024-01-20 03:00:02 -05:00
  • ad0b8340da change flow of fog table/enable medievil1 2024-01-24 00:34:47 -05:00
  • 7298b6c4dc address review comment medievil1 2024-01-23 21:45:15 -05:00
  • b20db36e15 fix template formatting medievil1 2024-01-20 20:54:49 -05:00
  • a03d50df56 add FF fog move to Pixelshader medievil1 2024-01-20 15:14:02 -05:00
  • 72c954439f fog stuff medievil1 2024-01-19 02:58:08 -05:00
  • 0e25897f77 address review comments medievil1 2024-01-19 00:56:03 -05:00
  • c6049b768c address review comments medievil1 2024-01-18 09:30:07 -05:00
  • 399baccadb fog stuff medievil1 2024-01-16 15:15:41 -05:00
  • 3edc388abf
    Merge pull request #2444 from RadWolfie/update-time-api CI-3edc388 ergo720 2024-01-15 15:38:03 +01:00
  • 796e8d2beb kernel: change 1000 to MSECSPERSEC RadWolfie 2024-01-15 05:19:57 -06:00
  • 282c5f5622 kernel: RtlTimeToTimeFields no longer need to be logged RadWolfie 2024-01-13 16:25:58 -06:00
  • 8e5b27d054 kernel: fix RtlTimeToTimeFields implement to match test results RadWolfie 2024-01-13 16:22:05 -06:00
  • b64a3b6faa kernel: fix comment typo in RtlTimeToTimeFields RadWolfie 2024-01-13 16:18:23 -06:00
  • d64e172c9f kernel: RtlTimeFieldsToTime no longer need to be logged RadWolfie 2024-01-05 01:26:08 -06:00
  • d6b96b8ea1 kernel: clean up RtlTimeFieldsToTime bad indents RadWolfie 2024-01-05 01:19:10 -06:00
  • 131b330a85 kernel: Change RtlTimeFieldsToTime's Time format into more readable math operation RadWolfie 2024-01-05 01:17:43 -06:00
  • bf6193202a kernel: split RtlTimeFieldsToTime range check into their own if statements for clear reading RadWolfie 2024-01-05 01:15:15 -06:00
  • 06c28a847e Revert "Merge pull request #2441 from ergo720/time_fix" RadWolfie 2024-01-05 00:33:34 -06:00
  • 8cc9c73f58
    Merge pull request #2441 from ergo720/time_fix CI-8cc9c73 PatrickvL 2023-12-30 09:53:52 +01:00
  • 2452965580 Fixed a bug in RtlTimeFieldsToTime ergo720 2023-12-29 14:00:15 +01:00
  • eddc14e151
    Merge pull request #2439 from NZJenkins/hotload_shaders CI-eddc14e PatrickvL 2023-12-29 11:43:42 +01:00
  • 0813935307
    Merge 0448f07891 into 31ff15ba1d jackchentwkh 2023-12-21 19:15:48 +01:00
  • 31ff15ba1d
    Merge pull request #2440 from RadWolfie/fix-xkts-issues CI-31ff15b Luke Usher 2023-12-21 15:29:44 +00:00
  • 4d9151ca26 rtl: remove unnecessary double setter in RtlInitUnicodeString RadWolfie 2023-12-20 09:31:35 -06:00
  • 0448f07891 correct typo in X_Lock2DSurface medievil1 2023-12-18 16:45:16 -05:00
  • 1f1d1ac631 rtl: fix RtlCompareString and RtlCompareUnicodeString to match with kernel test suite RadWolfie 2023-12-17 20:50:46 -06:00
  • e5043dbc05 fix UNICODE_STRING's Buffer variable type issue RadWolfie 2023-12-17 20:49:10 -06:00
  • a2fb41856d kernel: fix RtlWalkFrameChain according to xbox kernel test suite failed test RadWolfie 2023-12-17 19:02:20 -06:00
  • b09d3ca69a kernel: update RtlAnsiStringToUnicodeString to include error log returns RadWolfie 2023-12-17 11:41:12 -06:00
  • c01bda144b In CxbxImpl_SetRenderTargetTexture avoid a typecast from X_D3DTexture to X_D3DSurface (the code is already working with a surface) PatrickvL 2023-12-08 18:49:18 +01:00
  • aeac5fca78 In EmuKrnlRtl.cpp, solved a compiler Warning C4838 "conversion from 'xbox::longlong_xt' to 'xbox::dword_xt' requires a narrowing conversion", by explicitly assigning to LARGE_INTEGER.QuadPart. PatrickvL 2023-12-08 18:29:23 +01:00
  • 20aa36d529 In XbConvert.cpp, solved a few occurences of compiler Warning C4838 "conversion from 'int' to 'uint8_t' requires a narrowing conversion" PatrickvL 2023-12-08 18:12:27 +01:00
  • d447413ee9 Fix misplaced closing brace in NV2ASetFixedFunctionDefaultVertexAttributes (this might actually fix BACKDIFFUSE related rendering issues!) PatrickvL 2023-12-08 18:04:33 +01:00
  • 1f11e92cd1 Solve lnt-comparison-bitwise-precedence Warning "Comparison operator has a higher precedence than bitwise operator." PatrickvL 2023-12-08 18:02:10 +01:00
  • 737c3e9a36 Fix typo (pXborSurface > pXboxSurface) PatrickvL 2023-12-08 17:56:30 +01:00
  • 910fb5c6d9 Make a note in places where EmuKickOffWait can now be used to implement a TODO remark PatrickvL 2023-12-08 16:51:22 +01:00
  • 1fcbfc340f Move all HLE_PushInit() calls to HLE_PushPrepare() and safeguard it against yet-unknown g_pXbox_D3DDevice. PatrickvL 2023-12-08 16:50:35 +01:00
  • a9184ace46 correct EmuKickOff to EmuKickOffWait medievil1 2023-12-08 05:21:22 -05:00
  • 7bd2cb02e3 g_pXbox_pPush = nullptr fix medievil1 2023-12-05 22:19:48 -05:00
  • 610809c9a7 fix for viewport and clip window setup in multi-sample mode. Jack Chen 2023-11-19 12:46:37 +08:00