Commit Graph

7449 Commits

Author SHA1 Message Date
ergo720 8006f55cf3 Merge many different periodic events in a single thread, instead of each having its own busy loop
This merges vblank, ohci's eof, pit interrupt, dsound sync and async workers, nvnet packet processing and system interrupt
2024-07-05 10:58:01 -05:00
ergo720 1828ddfd6f Merge lle and hle vblank routines in a single thread 2024-07-05 10:58:00 -05:00
ergo720 bc42cfaa6b Removed unnecessary lock in the interrupt thread 2024-07-05 10:58:00 -05:00
PatrickvL b1235b7733 Merge pull request #2458 from LukeUsher/fix-compilation-vs2022 2024-07-05 10:41:18 -05:00
Luke Usher 1615ecc976 fix the build on vs2022 17.9.1 2024-05-22 12:46:03 +01:00
Luke Usher 0007d20b03
Merge pull request #2445 from medievil1/fog-stuff
fog stuff
2024-05-22 12:42:07 +01:00
RadWolfie bfb10092c0
Merge pull request #2451 from RadWolfie/fix-hardware-model
Fix hardware model conversions + use respective hardware model based on console type
2024-02-08 12:48:46 -06:00
Luke Usher f5b4878245
Merge pull request #2452 from medievil1/my-master
fix incorrect setting in pixel shader template
2024-02-04 19:47:12 +00:00
RadWolfie 4174fbc23f review remarks 2024-02-04 13:29:40 -06:00
medievil1 0560ed6955 change clamp to saturate in shader templates
per discussions
2024-02-03 14:46:54 -05:00
medievil1 875015164c fix incorrect setting in pixel shader template
it should be normal2, not normal 3...
PS_TEXTUREMODES_DOT_RFLCT_DIFF(ts) works in conjunction with #define PS_TEXTUREMODES_DOT_RFLCT_SPEC(ts)(after) and PS_TEXTUREMODES_DOTPRODUCT(ts)(before)
dotproduct uses it's own product/normal, dot_rflct uses dotproduct and it's own, and dot_spec uses the previous 2 and it's own ... this corrects light reflection on the floor in Halo
2024-02-03 14:38:16 -05:00
medievil1 aedb5ba87b address review comment
remove PB pr sampling adjustments
2024-02-03 12:08:00 -05:00
RadWolfie e5dcdebe7f device: corrected conversions based on hardware model 2024-02-03 02:45:37 -06:00
medievil1 ad0b8340da change flow of fog table/enable
per Jack, change flow to :
if fog is disabled, avoid table code and just set fogFactor to 1
2024-01-24 00:34:47 -05:00
medievil1 7298b6c4dc address review comment
fix inadvertently not changing pixel shader pass to template c reg info
2024-01-23 21:45:15 -05:00
medievil1 b20db36e15 fix template formatting
hopefully it all matches now

Revert "fix template formatting"

This reverts commit 79aa4436ef330e8754755044ce3ebf9549c557ae.

fix template formatting

hopefully it all matches now
3rd times a charm  hopefully...lol
2024-01-21 14:52:36 -05:00
medievil1 a03d50df56 add FF fog move to Pixelshader 2024-01-20 15:14:02 -05:00
medievil1 0e25897f77 address review comments 2024-01-19 00:56:03 -05:00
medievil1 c6049b768c address review comments 2024-01-18 09:30:07 -05:00
medievil1 399baccadb fog stuff
fix no fog issue which was incorrectly passing data into iFog instead of 1 when fog was disabled

testing a move to pixel shader

adjust passthrough template

for move to pixel shader

remove printf
2024-01-18 01:29:15 -05:00
ergo720 3edc388abf
Merge pull request #2444 from RadWolfie/update-time-api
Fix RtlTimeFieldsToTime and RtlTimeToTimeFields implements
2024-01-15 15:38:03 +01:00
RadWolfie 796e8d2beb kernel: change 1000 to MSECSPERSEC 2024-01-15 05:19:57 -06:00
RadWolfie 282c5f5622 kernel: RtlTimeToTimeFields no longer need to be logged 2024-01-13 16:25:58 -06:00
RadWolfie 8e5b27d054 kernel: fix RtlTimeToTimeFields implement to match test results 2024-01-13 16:22:05 -06:00
RadWolfie b64a3b6faa kernel: fix comment typo in RtlTimeToTimeFields 2024-01-13 16:18:23 -06:00
RadWolfie d64e172c9f kernel: RtlTimeFieldsToTime no longer need to be logged 2024-01-05 01:26:08 -06:00
RadWolfie d6b96b8ea1 kernel: clean up RtlTimeFieldsToTime bad indents 2024-01-05 01:19:10 -06:00
RadWolfie 131b330a85 kernel: Change RtlTimeFieldsToTime's Time format into more readable math operation 2024-01-05 01:17:43 -06:00
RadWolfie bf6193202a kernel: split RtlTimeFieldsToTime range check into their own if statements for clear reading
Plus fixed a bug for leap year's day range
2024-01-05 01:15:15 -06:00
RadWolfie 06c28a847e Revert "Merge pull request #2441 from ergo720/time_fix"
This reverts commit 8cc9c73f58.
2024-01-05 00:33:34 -06:00
PatrickvL 8cc9c73f58
Merge pull request #2441 from ergo720/time_fix 2023-12-30 09:53:52 +01:00
ergo720 2452965580 Fixed a bug in RtlTimeFieldsToTime 2023-12-29 14:00:15 +01:00
PatrickvL eddc14e151
Merge pull request #2439 from NZJenkins/hotload_shaders 2023-12-29 11:43:42 +01:00
Luke Usher 31ff15ba1d
Merge pull request #2440 from RadWolfie/fix-xkts-issues
Fix Xbox Kernel Test Suite issues discovered
2023-12-21 15:29:44 +00:00
RadWolfie 4d9151ca26 rtl: remove unnecessary double setter in RtlInitUnicodeString 2023-12-20 09:31:35 -06:00
RadWolfie 1f1d1ac631 rtl: fix RtlCompareString and RtlCompareUnicodeString to match with kernel test suite 2023-12-17 20:50:46 -06:00
RadWolfie e5043dbc05 fix UNICODE_STRING's Buffer variable type issue 2023-12-17 20:49:10 -06:00
RadWolfie a2fb41856d kernel: fix RtlWalkFrameChain according to xbox kernel test suite failed test 2023-12-17 19:02:20 -06:00
RadWolfie b09d3ca69a kernel: update RtlAnsiStringToUnicodeString to include error log returns 2023-12-17 11:41:12 -06:00
Anthony 684d3338f2 Always copy hlsl files if they changed in the sources
Require files to be explicitly declared in CXBXR_HEADER_EMU in order to be copied
2023-11-18 11:34:05 +13:00
Anthony ae140bb6bf Copy and install hlsl files in the cxbx project 2023-11-16 23:00:18 +13:00
Anthony a5b8f15a14 reformat todo 2023-11-12 20:04:39 +13:00
Anthony 2c8a764fc7 Save a backup copy of hlsl files 2023-11-12 19:56:20 +13:00
Anthony 605271245c review comments 2023-11-11 22:19:46 +13:00
Anthony 93e36f7be3 Rename shaderhlsl to shadersources
and updateshaders to update
2023-11-11 01:08:34 +13:00
Anthony a7bc6a307d fixup remove unused variable 2023-11-11 01:08:34 +13:00
Anthony 7ad047bcea reduce crashing if the shaders are broken and get hotloaded 2023-11-11 01:08:34 +13:00
Anthony 0f21e25d7d Support hotloading pixelshaders 2023-11-11 01:08:34 +13:00
Anthony 79884bdf3d Move shader hlsl management into Shader.cpp
- g_ShaderHlsl keeps track of hlsl
- VS and PS source their hlsl from g_ShaderHlsl
2023-11-11 01:08:34 +13:00
Anthony 260e2fb7c8 Ensure filewatcher is closed if something goes wrong
and avoid creating multiple watchers
2023-11-11 01:08:34 +13:00