Commit Graph

9585 Commits

Author SHA1 Message Date
TheLastRar 5ea46ac076 DEV9: Use non-blocking sockets for ICMP Sessions on Unix 2024-07-18 19:10:40 +02:00
TheLastRar ab008bf5d0 DEV9: Correct ICMP log messages 2024-07-18 19:10:40 +02:00
TheLastRar 54782cbf70 DEV9: Amend ICMP_Session comments 2024-07-18 19:10:40 +02:00
TheLastRar 3c7cff99f4 DEV9: Eliminate c-style casts from ICMP_Session 2024-07-18 19:10:40 +02:00
TheLastRar f326e8775f DEV9: Correct spelling in ICMP session 2024-07-18 19:10:40 +02:00
AKuHAK a2a711b1b3 Bios: add support for Rom2 up to 4Mb 2024-07-18 11:50:57 -04:00
TheTechnician27 84fe413635 GameDB: Ensure NativeScaling doesn't nag users at native res 2024-07-17 15:01:07 -04:00
Silent cd3e11bff7 InputManager: Release settings lock before shutting down the input source 2024-07-13 07:29:26 -04:00
KamFretoZ 55a97293c1 Qt: Clarify Pressure Modifier String 2024-07-11 17:19:43 +01:00
Ty Lamontagne de020978e4 Debugger: Use std::string for bp conditions. Implement memory bp conditions 2024-07-11 11:21:39 -04:00
lightningterror 75defbeded GS/HW: Adjust point sampler behavior.
VK/GL/Metal: Get rid of it completely as it doesn't seem needed anymore.
DX: Only enable it with combination with GPU Palette Conversion enabled as that's when the issue occurs.

Test: See if Metal breaks with no point sampler.

2
2024-07-09 19:20:38 +02:00
refractionpcsx2 e2a126722f GS/HW: Improve scale detection and allow non-bilinear downscales 2024-07-09 15:21:57 +02:00
lightningterror fdcb0efe0a GS/HW: Make sure both bitwise values are unsigned for ps_convert_float32_float24 depth. 2024-07-09 15:19:45 +02:00
lightningterror 51fcd7b886 GS/HW: Check for full cover in more situations when we disable blending.
More hits on RTA Scaling/Descaling.
2024-07-09 15:19:45 +02:00
lightningterror a2aae7fb45 GS/Metal: Add FLOAT32_TO_FLOAT24 case to DepthStencil texture format for shader convert. 2024-07-08 11:52:24 +02:00
lightningterror 93abd2f2e5 GS: Fix Wsign-compare warning. 2024-07-08 11:52:24 +02:00
lightningterror 404824e69e GS: Fix half pixel offset normal upscaling above 8x. 2024-07-08 00:58:07 +02:00
Ty Lamontagne 06c9c60717 Debugger Expressions: Add FPU registers to breakpoint conditionals. 2024-07-08 00:57:08 +02:00
Ty Lamontagne 8543e87b19 GS: Clear draw queue when using the null renderer 2024-07-07 16:17:59 +01:00
TheLastRar 30b6641025 USB: Fix period key not working 2024-07-06 23:28:12 +02:00
TheTechnician27 10a7fe07a2 UI: Add text to upscaling multipliers and remove two fractional 2024-07-05 21:09:28 +01:00
KamFretoZ 48d88c5fea Qt: Make more precache strings translatable 2024-07-03 09:38:35 +01:00
Ty Lamontagne dbfd506c8a Clang Format: cache.cpp and vtlb.cpp 2024-07-02 17:45:33 +01:00
Ty Lamontagne d47cdfba2d EE Cache: Invalid physical address caching and line locking
Hopefully the final fix required for the find my own way demo to work.
2024-07-02 17:45:33 +01:00
Ty Lamontagne a0b42f069f EE Cache: Fix PageMask reg usage when checking TLB entry cache mode 2024-07-02 17:45:33 +01:00
Stenzek 315d30fe4c GS: Uncap upscale multiplier subject to GPU limits 2024-07-02 21:51:33 +10:00
Stenzek 46e30467de Config: Don't copy global WS/NI to game settings 2024-07-02 15:28:03 +10:00
lightningterror 3f952c88a4 DEV9: Fix function parameter should be passed by const reference warnings.
Codacy.
2024-07-01 15:41:39 +02:00
lightningterror bed31d3903 GS/HW: Get rid of GetAFAIL duplicates. 2024-07-01 15:41:39 +02:00
Connor McLaughlin 5ff35927a7
GS: Remove unused enum 2024-06-30 23:03:28 +10:00
refractionpcsx2 f6ce7b9ede GS/HW: Fix downscales on target regions 2024-06-29 21:16:48 +01:00
refractionpcsx2 7ab494ca31 GS: Clean up usage of PrimitiveCoversWithoutGaps 2024-06-29 21:16:48 +01:00
refractionpcsx2 b5258a83c8 GS: Remove std::optional from gaps variable. 2024-06-29 15:04:24 +01:00
refractionpcsx2 2ce9dd4689 GS/HW: Improve texture coverage detection 2024-06-29 15:04:24 +01:00
refractionpcsx2 bb67ed3ded GS/HW: Optimize area of downscale algorithm to reduce processing 2024-06-29 15:04:24 +01:00
Stenzek d3bcfe0f5c GS/HW: Prefer already-RTA-target over SW blend for no-overlap
Saves barriers in Ace Combat and Metal Gear Solid games.
2024-06-29 11:14:34 +10:00
Stenzek 6600d09966 GS/HW: Prefer SW blend over HDR for colclip without overlap 2024-06-29 11:14:34 +10:00
refractionpcsx2 a7047b605e GS/HW: Allow conversion from 32bit to 24bit depth 2024-06-28 04:15:12 +01:00
refractionpcsx2 faa54f6c14 GS/HW: Always update preloaded dirty areas 2024-06-27 23:41:17 +01:00
refractionpcsx2 b38d008a96 GS/HW: Ignore any preload outside of the valid area 2024-06-27 23:41:17 +01:00
Stenzek 5b45913a6a GS/HW: Use box filtering for source downsampling 2024-06-27 10:49:46 +10:00
refractionpcsx2 1627bd6cc7 GS/HW: Fix upscale draw detection check 2024-06-26 16:02:40 +01:00
Stenzek 7f0ab1442e GS/HW: Clear instead of invalidating upscaled targets
This'll require a little more VRAM bandwidth, but it's better than
sampling random garbage because HPO pushes the coordinates down.
2024-06-26 21:22:36 +10:00
TheLastRar baec86e39b DEV9: Return sender IP alongside payload
Also return payload in a unique_ptr,
2024-06-25 11:05:19 +01:00
TheLastRar fbac331528 DEV9: Use std::move in SimpleQueue 2024-06-25 11:05:19 +01:00
Ty Lamontagne a00cb49035 COP0 TLB: Fix mapping ScratchpadRam Entries
Unsure why that was there. It would vtlbVMapBuffer if the mapping was for SPR (correct) but then continue and map on top of that as if it were a normal mapping.
2024-06-25 11:04:41 +01:00
Stenzek 107c117a4e VMManager: Don't use achievements when playing GS dumps 2024-06-25 19:12:23 +10:00
Stenzek c44500ba0f Achievements: Fix async HC mode disable running on wrong thread 2024-06-25 19:12:23 +10:00
Stenzek d53b2ae104 ImGuiManager: Avoid invalid scale update on surfaceless 2024-06-25 19:12:23 +10:00
Stenzek f909282973 Achievements: Eliminate intermediate malloc on state save 2024-06-25 19:12:23 +10:00
refractionpcsx2 8e891b0c5a GS/HW: Add missing blend optimization check 2024-06-24 19:12:22 +01:00
refractionpcsx2 fc4bdfd025 GS: Avoid pointlessly trying to map more pages in memory than the GS has 2024-06-24 18:15:29 +01:00
refractionpcsx2 7e53cb8e99 GS/HW: Optimize blends in some zero scenarios 2024-06-24 18:15:29 +01:00
Stenzek 4924d8c984 GS/Vulkan: Release swap chain images on acquire fail 2024-06-24 10:16:04 +10:00
Stenzek 57d225437e GS/HW: Ensure mipmaps aren't generated on hash cache textures 2024-06-24 10:15:48 +10:00
Stenzek f6a7dc52e2 GS/HW: Better eliminate redundant clamps with mipmapped draws
TW/TH won't match when mipmap minimization eliminates the base level.
Use the TEX0 register from the context instead.
2024-06-24 10:15:48 +10:00
Stenzek ec8d5d1b71 GS/HW: Allow use of trilinear with shader sampling 2024-06-24 10:15:48 +10:00
refractionpcsx2 f47b2d02cb GS/HW: Improve scale preservation check 2024-06-23 23:35:48 +01:00
refractionpcsx2 9d66c8b1a1 GS/HW: Correct rect checks in textureminmax
Was supposed to be in my PR but forgot to push it.
2024-06-23 02:10:43 +01:00
refractionpcsx2 a132a6f979 GS: Make sure min/max for texture is at least 1 pixel 2024-06-23 00:34:43 +01:00
refractionpcsx2 6fc631eaba GS/HW: Fix up Burnout CRC so NS properly detects downscale. 2024-06-23 00:07:23 +01:00
refractionpcsx2 915ed85f5d GS/HW: Reduce misdetections for downscaling 2024-06-23 00:07:23 +01:00
refractionpcsx2 2c9ddf3b38 GS/HW: Restrict maximum direct copy size 2024-06-23 00:07:23 +01:00
refractionpcsx2 dda6e37bd0 GS/HW: When detecting target overlap, offset copy from base 2024-06-22 21:41:13 +01:00
refractionpcsx2 a4ffc6c457 GS/HW: Fix line width factor when upscaling. 2024-06-22 21:40:49 +01:00
refractionpcsx2 74ea27817d GS/HW: Keep real rect before draw to avoid bad valid rect update 2024-06-18 06:08:35 +01:00
refractionpcsx2 779b175567 GS/HW: Don't scale up downscaled targets when copying directly 2024-06-17 22:25:33 +01:00
refractionpcsx2 e252bcf425 GS/HW: Add new Opaque check + use components for scaling discard check 2024-06-17 22:25:33 +01:00
refractionpcsx2 bdc3585b60 GS/HW: Improve detection of upscaling and downscaling 2024-06-17 22:25:33 +01:00
refractionpcsx2 ce7ee345c7 GS/HW: Avoid downscaling as much as possible to increase quality 2024-06-17 22:25:33 +01:00
refractionpcsx2 2fc6357ac4 GS/HW: Correct some scaling behaviour 2024-06-17 22:25:33 +01:00
refractionpcsx2 1d46ec2059 UI: Add new UI upscaling fix for Native Scaling 2024-06-17 22:25:33 +01:00
refractionpcsx2 839a6daa63 GS: Split out sprite gap check for downscale gap checking 2024-06-17 22:25:33 +01:00
refractionpcsx2 ae57878b27 GS/HW: Add detection for upscales 2024-06-17 22:25:33 +01:00
refractionpcsx2 eb5f90027d GS/HW: Don't downscale if draw is the same or larger than final output 2024-06-17 22:25:33 +01:00
refractionpcsx2 c077d9e2e1 GS/HW: First pass having downscaled post processing 2024-06-17 22:25:33 +01:00
refractionpcsx2 55e0464cd3 GS/HW: Allow offset channel shuffles on sources. 2024-06-17 22:24:46 +01:00
KamFretoZ a507d55467 FSUI: Icon Tweaks 2024-06-17 16:09:31 +02:00
KamFretoZ 807050db0d FSUI: Add new Game List icon 2024-06-17 16:09:31 +02:00
void d626028203 UI: fix invert settings being incorrectly set in big picture mode 2024-06-17 12:33:01 +10:00
lightningterror f565da6c58 GameDB: Make sure hw renderer is running for hw renderer OSD messages. 2024-06-16 21:25:26 +02:00
lightningterror 8f72c4f4a6 VMManager: Make sure hw renderer is running for hw renderer OSD messages. 2024-06-16 21:25:26 +02:00
refractionpcsx2 9c45567d8d GS/HW: Additional texture shuffle dimension check 2024-06-16 11:52:19 +01:00
Stenzek 8766d0b676 VMManager: Refactor Affinity Control to Thread Pinning
Instead of having control over specific threads, thread pinning puts the
EE/VU/GS threads on the most performant cores, then the software threads
on the remaining cores, but only if they're in the same cluster.

This way we don't end up pinning across clusters with different
performance characteristics, which would harm instead of help software
renderer performance.

Also unpins on shutdown, that way we don't keep CPU cores awake.
2024-06-16 14:18:49 +10:00
refractionpcsx2 b1f051df40 GS/HW: Fix up Tekken 5 CRC to get rid of boxes when upscaling 2024-06-15 22:30:37 +01:00
Connor McLaughlin 707d61f54d
CDVD: Remove leftover debug log
Didn't mean to commit this.
2024-06-16 00:06:55 +10:00
lightningterror 4e3431585f CDVD: Fix -Wsign-compare warnings. 2024-06-15 13:39:05 +02:00
Connor McLaughlin 6fcd5d0aff
GzippedFileReader: Don't write OOB in last chunk
zlib_indexed can write the full span to the block, despite the length being shorter. This code can die in a fire.

Closes #11398.
2024-06-15 17:42:56 +10:00
refractionpcsx2 9c57ac34e3 GS/HW: Include block offsets on invalidation by page 2024-06-15 08:15:33 +01:00
refractionpcsx2 e6714db7b3 GS/HW: Don't kill old targets unless completely dirty or targets overlap 2024-06-15 08:15:33 +01:00
Connor McLaughlin 21df138833
MSBuild: RecStubs.cpp should be excluded 2024-06-15 15:18:38 +10:00
Stenzek 36f9715637 CDVD: Actually fix NVRAM open mode 2024-06-15 12:44:46 +10:00
refractionpcsx2 a0d32d493c CDVD: Correct NVM file saving to be in write mode 2024-06-14 21:32:23 +01:00
JordanTheToaster f3776fa886 UI: Rename Wild Arms hack 2024-06-14 21:01:13 +01:00
refractionpcsx2 8917c5dbc9 GS: Correct depth trace for sprites + optimize HW depth selection 2024-06-14 20:51:58 +01:00
TheLastRar 6aa57b7e87 DEV9: Handle adapters that provide FCS in capture 2024-06-14 21:41:21 +02:00
TheLastRar 6a37353565 DEV9: Always require MAC address with pcap
We should be able to get the MAC address on all supported platforms
2024-06-14 21:41:21 +02:00
TheLastRar bf50bad287 DEV9: More strictly enforce MTU in pcap 2024-06-14 21:41:21 +02:00
lightningterror 7aea867a66 GS/HW: Use enum for blend_hw shader bit.
Better readability.
2024-06-14 21:40:31 +02:00
lightningterror abec2738b9 GS/HW: Extend blend second pass to more blend formulas v2.
Cd*(1 + Alpha).
Alpha = As, Ad or Af.
For As or Af case when alpha > 128.
For Ad case when there is no RTA correction.
2024-06-14 21:40:31 +02:00
KamFretoZ 62c5309b23 Qt: Hide texture directory option per-game 2024-06-14 17:28:51 +10:00
Stenzek 8a18403fea arm64: Add stubs for EE/VU/IOP recs 2024-06-14 17:06:45 +10:00
Stenzek fe9399612d arm64: Add VIF dynarec 2024-06-14 17:06:45 +10:00
Stenzek 0a4c037898 GS: ARM64 compatibility 2024-06-14 17:06:45 +10:00
Stenzek 71036c95a4 Core: ARM64 compatibility 2024-06-14 17:06:45 +10:00
Stenzek 7d098674f2 IPU: ARM64 compatibility 2024-06-14 17:06:45 +10:00
Stenzek 4e0e8cef54 Common: ARM64 compatibility 2024-06-14 17:06:45 +10:00
Stenzek 6ee99d8b81 Build: Add ARM64 configurations 2024-06-14 17:06:45 +10:00
Stenzek 22d929d171 VTLB: Fix unmapping all pages with 16K host 2024-06-14 17:06:45 +10:00
Stenzek 94fc34dd62 GS: Tidy up shifts in GSVector4i 2024-06-14 11:54:17 +10:00
Stenzek 4731c6d290 GS: Fix a couple of non-immediate constant shifts 2024-06-14 11:54:17 +10:00
Stenzek 153b492a79 GS: Remove unordered runion()
We're working with rectangles everywhere.
2024-06-14 11:54:17 +10:00
Stenzek affbcfe135 GS/SW: Zero out texture cache buffers
This _shouldn't_ be necessary, but apparently our texture min/max is wrong
somewhere, and we end up sampling from "random" malloc memory, which breaks
GS dump runs.
2024-06-14 11:54:17 +10:00
Ty Lamontagne bdeb0fcb76 Debugger: Disable pseudo ops 2024-06-13 09:56:58 +01:00
Connor McLaughlin 08e824831b Achievements: Fix incorrect data source for mastery points 2024-06-12 14:44:54 +10:00
JordanTheToaster 0717b1f7c0 FullscreenUI: Fix incorrect padding calculation in pause menu
Fixes scrollbars appearing in menu.
2024-06-12 11:37:17 +10:00
Stenzek 7ad27e6e9d CDVD: Add precaching option 2024-06-11 11:31:28 +10:00
Stenzek e5917fa47a GS/Vulkan: Disable unused-function warning for vk_mem_alloc 2024-06-11 11:30:45 +10:00
Stenzek 226a02a770 MemoryCardFolder: Fix rapidyaml deprecation warnings 2024-06-11 11:30:45 +10:00
Stenzek 8cc7e60138 3rdparty: Move WIL v1.0.240122.1 in-tree
Renamed to winwil, because otherwise you won't be able to easily git
pull these changes.
2024-06-11 11:30:45 +10:00
Stenzek 5c59288b39 3rdparty: Move rapidyaml v0.6.0 in-tree
Also c4core v0.2.0, fast-float v6.1.1.
2024-06-11 11:30:45 +10:00
Stenzek d6c4a9a4d5 3rdparty: Move Vulkan-Headers v1.3.287 in-tree 2024-06-11 11:30:45 +10:00
Stenzek cf475d961a 3rdparty: Move fmt v10.2.1 in-tree 2024-06-11 11:30:45 +10:00
Stenzek cb0f0b65cc DEV9: Add missing RedtapeWindows.h include 2024-06-11 11:30:45 +10:00
Stenzek e2a4d8f1e6 CDVD: Force initialized flag on NVRAM reads
Jak 1 crashes on boot if it's not set.
2024-06-10 12:51:18 +10:00
Stenzek b55ec3ae58 CDVD: Tidy up NVRAM read helpers
Get rid of the janky offsetof.
2024-06-10 12:51:18 +10:00
Stenzek 6220148be7 CDVD: Cache mechacon version 2024-06-10 12:51:18 +10:00
Stenzek 919da4d97a CDVD: Read NVRAM on startup, cache, and save on shutdown 2024-06-10 12:51:18 +10:00
Stenzek 4f5562ad3f GS: Swap to cpuinfo for checking CPU features 2024-06-09 22:18:59 +10:00
TellowKrinkle 58ae9fd355 GS:MTL: Fix handling of tex is depth fb 2024-06-08 18:23:35 -05:00
refractionpcsx2 d34f359621 GS/HW: Correct TEXA behaviour on shuffles 2024-06-08 19:26:35 +01:00
refractionpcsx2 5e858fa1bc GS/HW: Take render target end block for channel shuffles if bigger 2024-06-06 22:59:12 +01:00
refractionpcsx2 0522da2299 GS: Don't be inclusive of textures edges in all cases 2024-06-04 22:07:06 +01:00
TellowKrinkle 8625e30dc6 GS:MTL: Add Intel HD 4000 to the list of GPUs to use PixelFormatView on
No clue why, but apparently this helps them a lot, at least on OCLP Big Sur
2024-06-01 19:08:45 -05:00
refractionpcsx2 7de06e340b GS/HW: Improve some tex in rt handling 2024-06-01 20:03:50 +01:00
refractionpcsx2 4c8e42d801 GS/HW: Improve handling of channel shuffles on new targets 2024-06-01 02:32:02 +01:00
refractionpcsx2 834f12dd55 GS/HW: Update the target width to match source in channel shuffle
Also kill an annoying assert
2024-06-01 02:32:02 +01:00
refractionpcsx2 6d67156707 GS/HW: Favour newer draw on source overlap + improve target overwrite 2024-06-01 02:32:02 +01:00
refractionpcsx2 4faa5f2095 GS/HW: Compensate for edges in complex clamps to reduce upscale garbage 2024-06-01 02:31:20 +01:00
Stenzek d48f527d6d Common: Tidy up signal handlers
Move MacOS into its own file.
Fix assertion failure crash dumping.
2024-05-31 13:39:36 +10:00
TheLastRar f2e4a5e780 GS: Remove MSVC macro hack 2024-05-30 19:01:23 +01:00
TheLastRar ee9866b568 DEV9: Prefer C++ string comparison in AdapterUtils 2024-05-30 11:25:02 +01:00
TheLastRar f58ee161c7 DEV9: Use const in AdapterUtils 2024-05-30 11:25:02 +01:00
TheLastRar 0856f3b223 DEV9: Shuffle code in Linux GetAdapter
Giving same flow as Windows code
2024-05-30 11:25:02 +01:00
TheLastRar 3acf898680 DEV9: Use helper method to get the sockaddr address family
This attempts to avoid undefined behaviour with our current assumptions about the socket api
2024-05-30 11:25:02 +01:00
TheLastRar 38f02de318 DEV9: Eliminate c-style casts in AdapterUtils 2024-05-30 11:25:02 +01:00
TheLastRar a6ddbdb879 DEV9: Use correct buffer type in Win32 GetAdapter
Returned data is not sequenced IP_ADAPTER_ADDRESSES entries
We will use implicit object creation avoid UB
2024-05-30 11:25:02 +01:00
TheLastRar 3aff833b5c DEV9: Unify GetAdapter code 2024-05-30 11:25:02 +01:00
TheLastRar 344cf6fffb DEV9: Add general notes regarding sockaddr casting 2024-05-30 11:25:02 +01:00
refractionpcsx2 8f1b804f98 GS/CRC: Improve Street Fighter 3 EX CRC to remove shimmer
(and some potential input lag)
2024-05-30 11:20:38 +01:00