Commit graph

  • 0a306d9f3d refine set_vertex_data, draw_inline_buffer() code jackchentwkh 2021-07-01 11:58:35 +08:00
  • 53fc652212 disable assert(arg0 >> 29 != COMMAND_INSTRUCTION_NON_INCREASING_METHODS); jackchentwkh 2021-07-01 11:24:54 +08:00
  • d10a8ecc00 remove unnecessary CxbxUpdateNativeD3DResources() calls after HLE draw calls jackchentwkh 2021-07-01 11:13:14 +08:00
  • 5f620506a8 Replace pg->primitive_mode with pg->KelvinPrimitive.SetBeginEnd Comment-out pg->primitive_mode Verify non-increasing methods can be detected using the high 3 command-bits. Assert method data won't be written out of bounds Use memcpy to copy values into pg->regs[] (and thus into KelvinPrimitive fields) Simplify asserts on SetBeginEnd PatrickvL 2021-06-30 17:59:59 +02:00
  • bbb8209707 call CxbxUpdateNativeD3DResources() after set g_InlineVertexBuffer_DeclarationOverride, fix vertex buffer address offset jackchentwkh 2021-06-30 17:34:35 +08:00
  • 6336d96ecb disable shader program related code and g_InlineVertexBuffer_DeclarationOverride jackchentwkh 2021-06-30 12:01:15 +08:00
  • eced9a7501 remove XbVertexBuffer.h in nv2a_int.h, fix compilation, move draw calls code back to HLE draw calls. jackchentwkh 2021-06-30 10:10:51 +08:00
  • 33a4fd5775 add missed brackets for CASE_4(NV097_SET_VERTEX4F, 4) jackchentwkh 2021-06-30 09:09:14 +08:00
  • 63c4d2374f add draw inline buffer, draw arrays, jackchentwkh 2021-06-29 20:47:58 +08:00
  • ff0d540057 Unpatch D3DDevice_SetVertexShaderConstant() jackchentwkh 2021-06-27 22:00:30 +08:00
  • a25e759c9d Enable pushbuffer recodging, disable fixup for now jackchentwkh 2021-06-27 21:42:33 +08:00
  • 6b08f57dd1 correct returned address of HLE_get_NV2A_vertex_program_slot_ptr() and rename program_load to vsh_program_slots jackchentwkh 2021-06-27 17:24:56 +08:00
  • dc80fae03b remap HLE vertex shader program g_Xbox_VertexShader_FunctionSlots[137*4] to prgaph.program_data[137][4] jackchentwkh 2021-06-27 16:59:33 +08:00
  • 00f46febe0 improve CxbxImpl_LoadVertexShader(), add CxbxImpl_SetVertexShaderConstant() jackchentwkh 2021-06-27 16:12:28 +08:00
  • 91c5c8db06 notes for setting vertex shader links between NV2A with HLE jackchentwkh 2021-06-27 14:14:59 +08:00
  • 78d5d39f28 restore strings.hpp jackchentwkh 2021-06-27 13:15:09 +08:00
  • cf6682ca75 correcting vertex attribute offset, add more comments jackchentwkh 2021-06-27 13:07:49 +08:00
  • 1950b85adb easy and general vertex attribute format setting jackchentwkh 2021-06-26 20:45:42 +08:00
  • 5bd337f5b7 create attribute format for stream zero, fix stupid bug jackchentwkh 2021-06-26 19:34:31 +08:00
  • 55c65b659e set all NV2A register index to dword index jackchentwkh 2021-06-26 00:02:23 +08:00
  • c5526ee0dc notes for SetVertexData4ub as fixed function color state jackchentwkh 2021-06-25 14:58:39 +08:00
  • edbf8c87fa fix NV097_SET_VERTEX_DATAXX method handling jackchentwkh 2021-06-25 14:33:29 +08:00
  • d7539d6aa8 Two Sided Light naming correction and minor fix jackchentwkh 2021-06-25 01:09:08 +08:00
  • c0d6c06832 squash merge pushbuffer reconstruct jackchentwkh 2021-06-24 22:14:50 +08:00
  • 7e2414ebc3 update todo to.... done medievil1 2023-07-01 13:44:36 -04:00
  • 9ad5fabc00 implementing a todo in SetHostResource medievil1 2023-07-01 13:42:49 -04:00
  • 045bb9c836 re-enable texture fix for Crimson skies medievil1 2023-06-29 22:00:39 -04:00
  • 56c7177395 q8w8v8u8 decoding addition medievil1 2023-06-29 21:57:58 -04:00
  • 8f2bec2ef6
    Merge branch 'Cxbx-Reloaded:master' into test3 medievil1 2023-06-25 03:23:15 -04:00
  • db54078aea adapt patricks inline hlsl shader loading medievil1 2023-06-25 02:24:47 -04:00
  • 52d2c6a192 Don't inline our custom pixel shader template. PatrickvL 2022-07-18 11:39:41 +02:00
  • 7563dd3ecf Never change the thread priority on the host and the disable boost flag too ergo720 2023-04-05 17:48:31 +02:00
  • 32ec4ee6f9 Use a DPC for expired timers + don't execute NV2A DPCs from the timer thread to avoid the exception overhead ergo720 2023-04-01 18:55:56 +02:00
  • e89b5b2130 Fixed an issue in WaitApc where the wait block was not removed when using a zero timeout or when satisfied by a user APC + properly lock the wait block operations to avoid a race between SatisfyWait and KiTimerExpiration ergo720 2023-03-31 15:49:40 +02:00
  • 709108b045 Implemented PTIMER alarm interrupt of NV2A + fixed a bug in timer_init ergo720 2023-03-28 00:02:34 +02:00
  • ccd77fcf4d Fixed wrong nv2a clock frequency ergo720 2023-03-26 21:26:30 +02:00
  • ea1657018f Fixed a bug in KeTickCount + check all timer indices when we are late in KiClockIsr ergo720 2023-03-23 01:45:39 +01:00
  • ac31523b09 Make sure to reset WaitStatus when a new wait starts ergo720 2023-03-22 21:42:34 +01:00
  • 680340f53d Make sure that GetNativeHandle succeeds before attempting to get the native handle ergo720 2023-03-22 20:51:21 +01:00
  • c292874487 Fixed a bug in KiInsertTimerTable + log all objects being waited on in NtWaitForMultipleObjectsEx ergo720 2023-03-20 17:25:43 +01:00
  • 9238ae3f81 Account for partial milliseconds in KiClockIsr ergo720 2023-03-20 13:27:26 +01:00
  • e454e901cc Fixed a race condition in WaitApc + removed wrong InsertTailList for ktimers used during a timeout ergo720 2023-03-19 00:09:16 +01:00
  • 253c198421 Always create a wait object even when we satisfy the wait on the host side + fixed a bug in KiWaitTestNoYield ergo720 2023-03-18 11:38:39 +01:00
  • 8cefa8ba8f Revert to using the host to do thread suspension ergo720 2023-03-14 23:57:40 +01:00
  • c3b3a1b107 Hack: <= thread priority instead of >= ergo720 2023-03-15 00:09:50 +01:00
  • 745f450a6c Setup a KTIMER for the other functions using WaitApc too ergo720 2023-03-13 16:19:30 +01:00
  • fad4120841 Restore single interrupt loop in update_non_periodic_events ergo720 2023-03-12 17:28:44 +01:00
  • 9e3873d1df Place nvnet in its own thread ergo720 2023-03-12 16:51:38 +01:00
  • 7dc2ac080f Use get_now directly in system_events instead of qpc ergo720 2023-03-12 16:50:56 +01:00
  • 5d510752e6 Adjust KeSystemTime when the host system time is changed by the user ergo720 2023-03-12 16:20:28 +01:00
  • b72cfaa909 Account for delays between calls to KiClockIsr ergo720 2023-03-12 11:20:39 +01:00
  • 32b4393085 Raise priority of system events thread ergo720 2023-03-12 10:52:35 +01:00
  • 4ea6ecd247 Removed delta amount added to KeSystemTime ergo720 2023-03-12 10:35:54 +01:00
  • c828d586db Fixed thread order initialization when a thread starts suspended ergo720 2023-03-11 16:40:59 +01:00
  • d1c9883604 Make sure to hold the DPC lock until the DPC list has been emptied ergo720 2023-03-10 17:20:07 +01:00
  • f52e261c4a Implemented kernel unwait routines + updated/fixed KeWaitForMultipleObjects and KeWaitForSingleObject ergo720 2023-03-10 17:18:21 +01:00
  • e323ad50b5 Only change the priority of a thread if it is being set above normal ergo720 2023-03-09 14:32:52 +01:00
  • b1ee59fab2 Unpatch D3DDevice_BlockUntilVerticalBlank and D3DDevice_SetVerticalBlankCallback ergo720 2023-03-09 14:18:49 +01:00
  • 6e63ecd7cc Avoid triggering multiple gpu interrupts outside the vblank ergo720 2023-03-08 22:57:31 +01:00
  • c349fbbc00 Moved position of ObfDereferenceObject in NtSuspendThread ergo720 2023-03-07 15:40:42 +01:00
  • d8ae1892b4 Removed scaling hack in KeInterruptTime and KeTickCount + added yield in system_events routine ergo720 2023-03-07 15:28:37 +01:00
  • c7c107720e Implemented suspend/resume kernel Nt routines with the corresponding Ke routines ergo720 2023-03-05 00:03:57 +01:00
  • d11a5e8773 Fixed a bug in KeSetBasePriorityThread ergo720 2023-03-04 16:02:36 +01:00
  • 6d8bd34049 Merge many different periodic events in a single thread, instead of each having its own busy loop ergo720 2023-03-04 13:06:29 +01:00
  • a3fda7b275 Merge lle and hle vblank routines in a single thread ergo720 2023-03-02 22:34:05 +01:00
  • 2476ad43b0 Removed unnecessary lock in the interrupt thread ergo720 2023-03-03 00:34:50 +01:00
  • 6c530fbf86
    Merge pull request #2418 from RadWolfie/fix-reboot-non-ansii-path CI-6c530fb Luke Usher 2023-03-13 12:41:17 +00:00
  • a8f6d0496e kernel: fix non-ansii file path conversion for reboot process RadWolfie 2023-03-08 18:16:03 -06:00
  • 6389cb6524
    Merge pull request #2417 from RadWolfie/d3d-update CI-6389cb6 Luke Usher 2023-03-06 14:50:23 +00:00
  • ef3439e46f d3d8: fix GTA: SA bug and add LTCG patch for D3DDevice_DrawVertices variant RadWolfie 2023-03-06 05:47:39 -06:00
  • ed8a6124e4
    Merge pull request #2416 from ergo720/dpc_recursion_fix CI-ed8a612 ergo720 2023-03-02 23:32:30 +01:00
  • b1bd9dd5d0
    Merge pull request #2414 from RadWolfie/fix-hacked-ob-handle-return CI-b1bd9dd ergo720 2023-03-02 23:04:40 +01:00
  • 062752e1a7 Review remarks ergo720 2023-03-02 22:53:18 +01:00
  • 99ab34ac82 Fixed dpc recursion bug ergo720 2023-03-02 14:59:10 +01:00
  • 8e0df988a8 kernel: fix hacked windows handle check to bypass special handle of current process RadWolfie 2023-03-01 17:02:57 -06:00
  • 58041c95b4 Clean up unused dpc event member variable ergo720 2023-03-01 22:43:42 +01:00
  • 827a3212f8
    Merge pull request #2413 from ergo720/priority_thread CI-827a321 RadWolfie 2023-03-01 10:14:34 -06:00
  • d0890d588d Fixed a bug in KeSetDisableBoostThread ergo720 2023-03-01 17:08:35 +01:00
  • 9e9d3f390f
    Merge pull request #2412 from ergo720/priority_thread Luke Usher 2023-03-01 16:04:57 +00:00
  • 4821a72b6f Set/query the priority of the requested thread, instead of the current one in KeQueryBasePriorityThread and KeSetBasePriorityThread ergo720 2023-03-01 16:48:30 +01:00
  • bf1483ae56
    Merge pull request #2411 from RadWolfie/update-xbsdb CI-bf1483a Luke Usher 2023-03-01 09:15:15 +00:00
  • b2f05b8b0b lib: sync XbSymbolDatabase RadWolfie 2023-01-12 13:34:45 -06:00
  • 111728f170
    Merge pull request #2408 from LukeUsher/avoid-region-patching CI-111728f ergo720 2023-02-10 18:35:28 +01:00
  • ce05ea1397
    Merge pull request #2409 from RadWolfie/fix-emulation-status CI-ce05ea1 ergo720 2023-02-10 18:17:12 +01:00
  • f4488c0270 fix false positive emulation is either still running or stopped RadWolfie 2023-02-10 06:59:16 -06:00
  • 65a5ad6591 cxbxkrnl: avoid region patching loaded titles Luke Usher 2023-02-07 22:08:31 +00:00
  • 0b695637ce
    Merge pull request #2406 from LukeUsher/fix-xbe-version-reporting CI-0b69563 RadWolfie 2022-11-20 06:24:51 -06:00
  • fe9a706a8e xbe: fix version number formatting Luke Usher 2022-11-19 16:06:12 +00:00
  • 8ac5d14cd2
    Merge pull request #2401 from medievil1/new-master CI-8ac5d14 Luke Usher 2022-10-13 14:39:59 +01:00
  • 368d49e936 draft unfinished changes so I do not lose them medievil1 2022-10-06 18:13:02 -04:00
  • 628323218a
    Merge pull request #2404 from CookiePLMonster/remove-int32x32To64 CI-6283232 Luke Usher 2022-10-06 22:41:51 +01:00
  • f7c09ddc4f
    Remove Int32x32To64 as it's potentially harmful Silent 2022-10-06 23:07:37 +02:00
  • 09e744ecc4
    Merge pull request #2403 from RadWolfie/libusb-fixes CI-09e744e ergo720 2022-10-06 00:36:31 +02:00
  • a37124e2dc readme: create a link to libusb's driver installation section to find suggested driver RadWolfie 2022-10-05 16:59:17 -05:00
  • 5f58ae918c input: have libusb_claim_interface's return actually give err number than comparsion check for non-zero RadWolfie 2022-10-05 16:46:17 -05:00
  • f17b7f7fa6 input: check for error from libusb_open and report as device invalid RadWolfie 2022-10-05 06:44:58 -05:00
  • 4dccf6d5b9 input: don't override device's vendor id, expected to do comparsion instead RadWolfie 2022-10-05 06:42:56 -05:00
  • 1085711ae9 In CxbxCalcColorSign, make the host texture format component signed-ness checks inter-INdependent, and apply a fix that helps the BumpMap samples (as discovered by medievil) PatrickvL 2022-07-18 10:20:51 +02:00
  • 635ebe66fc fix build issues medievil1 2022-06-14 19:13:52 -04:00
  • c4c64369df Pass host D3DUsage and D3DFormat along as arguments to the SetHostResource registration function (and only use GetDesc if the caller doesn't have access to those variables). PatrickvL 2021-06-01 11:54:02 +02:00