Scott Mansell
7c4fcc30a3
WorkQueueThread: provide name and function at same time
2023-02-04 15:56:27 +13:00
Scott Mansell
6594532f10
WorkQueueThread: rework Cancel/Shutdown workflow
...
- Cancel doesn't shut down anymore.
Allowing it to be used multiple times thoughout the life of
the WorkQueue
- Remove Clear, so we only have Cancel semantics
- Add IsCancelling so work items can abort early if cancelling
- Replace m_cancelled and m_thread.joinable() guars with m_shutdown.
- Rename Flush to WaitForCompletion (As it's ambiguous if a function
called flush should be blocking or not)
- Add documentation
2023-02-04 14:58:12 +13:00
Scott Mansell
acdb0c5be1
WorkQueueThread: Implement thread name
...
Otherwise we will end up with a dozen threads named "WorkQueueThread"
2023-02-04 14:58:12 +13:00
Scott Mansell
512273a507
WorkQueueThread: Add flush capability
2023-02-04 14:31:16 +13:00
Scott Mansell
e38c0a1bbd
lint: replace egrep with grep -E
...
Starting with grep 3.8, egrep throws the following warning
egrep: warning: egrep is obsolescent; using grep -E
Whch is annoying... so we will use grep -E
2023-02-02 17:23:40 +13:00
Scott Mansell
6669d160b1
Merge pull request #11528 from delroth/clang-format-13
...
lint: update to clang-format-13
2023-02-02 17:13:48 +13:00
Scott Mansell
e98ab0784d
Merge pull request #11501 from iwubcode/abstract_texture_load_specify_layer
...
VideoBackends: add a way to load data into a specific level AND layer
2023-02-01 00:03:59 +13:00
Scott Mansell
ed3ad9458d
Merge pull request #11418 from shuffle2/sdl
...
sdl: update to latest sdl2
2023-02-01 00:03:35 +13:00
Scott Mansell
c6b851c2b6
Merge pull request #11506 from phire/cmake_fixes
...
CMake/MSVC fixes
2023-01-31 23:53:31 +13:00
Scott Mansell
12431a83ba
Merge pull request #11435 from techydude0713/wc24-utc-fix
...
NetKDTime: Use UTC based timestamp instead of localtime.
2023-01-31 23:40:15 +13:00
Scott Mansell
5d7643a680
CMake/MSVC: Fix conflicting flags in mbedtls
...
This cmake file directly sets CMAKE_<LANG>_FLAGS, which doesn't
show up in the COMPILE_COMMANDS target property and so our
dolphin_disable_warnings_msvc macro failes to remove it.
So we will just commit it out.
2023-01-31 23:21:07 +13:00
Scott Mansell
6bb2e4d706
CMake/MSVC: Fix warnings about conflicting /Zi and /Z7
2023-01-31 23:21:07 +13:00
Scott Mansell
854a73dee0
CMake/MSVC: Fix PCH disabled build
2023-01-31 23:21:07 +13:00
Scott Mansell
1956ce151f
Cmake/MSVC: Fix Qt6 discover for IDEs other than Visual Studio
...
CMakeSettings.json is a Visual Studio only extention to cmake that isn't
supported anywhere else. Not even Visual Studio Code.
So we set CMAKE_PREFIX_PATH inside DolphinQt's CMakeLists.txt instead.
2023-01-31 23:19:46 +13:00
Scott Mansell
6d7303993c
Merge pull request #11509 from Sam-Belliveau/improved-speed-counter
...
Tie Speed to CPU Speed and not VPS
2023-01-30 20:41:03 +13:00
Scott Mansell
13d14282a0
Merge pull request #11511 from TellowKrinkle/MTLHD4000
...
VideoCommon: Avoid creating pipelines with no render targets
2023-01-30 19:31:36 +13:00
Scott Mansell
5a8b8658f1
Merge pull request #11514 from JMC47/cpuculldefaults
...
Add CPU Cull to Twilight Princess and Metroid Prime Series
2023-01-30 19:29:35 +13:00
Scott Mansell
6ad182edd9
Ignore nullability-completeness warnings in VMA
...
These cause a lot of warnings when compiling with clang.
And the example VmaUsage.h appears to disable them
2023-01-30 03:11:51 +13:00
Scott Mansell
7c202ab411
Reset throttle on savestate load
2023-01-16 14:18:42 +13:00
Scott Mansell
3f6795f5e8
Merge pull request #10971 from Zopolis4/readmemakeup
...
Fix minor typo in readme
2022-08-10 19:32:13 +12:00
Scott Mansell
a89fe51543
Merge pull request #10973 from phire/freebsd_fmt_consteval
...
Workaround FreeBSD/clang/fmt bug
2022-08-10 19:29:14 +12:00
Scott Mansell
12a5f73418
Workaround Freebsd/clang/fmt bug
2022-08-10 18:46:10 +12:00
Scott Mansell
2747ab7765
Merge pull request #10653 from t895/tv-card
...
Android: Consistent TV card colors
2022-08-10 16:42:45 +12:00
Scott Mansell
1dbe2a4ea2
Merge pull request #10431 from Zopolis4/readmemakover
...
Rewrite readme
2022-08-10 14:40:24 +12:00
Scott Mansell
4f96d2f1c3
Merge pull request #10944 from Sage-King/NetPlayServerUpdates
...
NetPlayServer.cpp OnConnect() Minor Code Updates
2022-08-10 10:54:53 +12:00
Scott Mansell
4c2d707538
Merge pull request #10940 from InvoxiPlayGames/ipc-discord
...
Add Discord presence ioctlv to /dev/dolphin
2022-08-08 08:11:42 +12:00
Scott Mansell
04beb23877
Merge pull request #10943 from Pokechu22/gormiti-gameini
...
GameSettings: Use Safe Texture Cache and add patch for black screens for Gormiti: The Lords of Nature!
2022-08-05 22:56:28 +12:00
Scott Mansell
ebf95370ef
Merge pull request #10946 from Pokechu22/remove-iLog
...
VideoCommon: Remove old iLog field
2022-08-05 22:42:09 +12:00
Scott Mansell
1ea0c7752e
Merge pull request #10897 from Hibyehello/LogManager-Fix
...
LogManager: Dynamically get last log type
2022-07-28 11:54:22 +12:00
Scott Mansell
8f0d702e5f
Merge pull request #10778 from maxdunbar/patch-1
...
Readme: Referencing the wiki when building for linux
2022-07-25 10:18:16 +12:00
Scott Mansell
4db1816368
cmake: Require cmake 3.15 for MSVC
...
We need these policies, but we kind of want to avoid requiring cmake
3.15 for all platforms
2022-05-22 00:29:47 +02:00
Scott Mansell
876f6651b4
cmake: fix PCH to work with msvc/ninja
...
Ninja puts way more effort into compiling targets in parallel, and
ignores dependenceis until link time.
So we need to jump though hoops to force ninja to compile
pch.cpp before any targets which depend on the PCH.
2022-05-22 00:29:47 +02:00
Scott Mansell
89fda54820
cmake: fix ninja/msvc builds
...
If you don't set this policy, then cmake doesn't even try
to select a runtime library
2022-05-22 00:29:47 +02:00
Scott Mansell
0909e00117
cmake: fix MSVC PCH support
...
I'm not sure if the previous implementation ever worked.
2022-05-22 00:29:47 +02:00
Scott Mansell
2348017ee8
cmake: ignore external warnings in MSVC
...
Since we also treat all warnings as errors, we need to
ignore these to successfully build.
2022-05-22 00:29:46 +02:00
Scott Mansell
987f270083
cmake: fix buggy target sources on windows
...
I have no idea why cmake supports PUBLIC on target_sources,
but it does. It causes all targets that depend on this target
to try and include the files in their sources.
Except it doesn't take paths into account, so it breaks. Mabye
it would work if you used an abolute source? But I'm not sure
there is a sane usecase.
2022-05-22 00:29:46 +02:00
Scott Mansell
54d89b955a
cmake: add missing FFmpeg dependency on windows
2022-05-22 00:29:46 +02:00
Scott Mansell
d2df9afda2
cmake: Fix libusb on windows
2022-05-22 00:29:46 +02:00
Scott Mansell
c5c4169bc8
Merge pull request #10255 from Pokechu22/sw-zfreeze
...
Software: Fix zfreeze with CullMode::All
2022-04-15 11:12:49 +12:00
Scott Mansell
36678dca59
Merge pull request #10585 from Pokechu22/apple-m1-unit-tests-f-string
...
Apple M1: Fix "Building and running unit tests" message
2022-04-15 10:43:59 +12:00
Scott Mansell
0327bc2ab6
Merge pull request #10256 from malleoz/show-rerecord-count
...
Renderbase: Show rerecord count
2021-12-03 14:42:10 +13:00
Scott Mansell
e92e90d147
Merge pull request #10263 from dolphin-emu/revert-10217-bombermanjetters
...
Revert "Force Dual Core on for Bomberman Jetters"
2021-12-03 01:28:33 +13:00
Scott Mansell
26e4e67d45
Merge pull request #10258 from Pokechu22/fifoplayer-efb-clear
...
FifoPlayer: Clear EFB before starting playback
2021-12-03 00:22:27 +13:00
Scott Mansell
57d251c2f0
Merge pull request #10242 from smitdylan2001/master
...
Fixed Gamecube naming to GameCube
2021-11-30 06:58:55 +13:00
Scott Mansell
676c500cdc
Merge pull request #10214 from OatmealDome/mvk-better-incremental
...
MoltenVK: Don't run fetchDependencies unnecessarily
2021-11-25 11:47:36 +13:00
Scott Mansell
f5c550e9cb
Delay singlecore gpu interrupts
...
Fixes Bomberman Jetters in single core mode.
When single core mode pauses the CPU to execute the GPU
FIFO it greedily executes the whole thing. Before this commit,
Finish and Token interrupts would happen instantly, not even
taking into account how long the current FIFO window has
taken to execute. The interrupts would be effectively backdated
to the start of this execution window.
This commit does two things: It pipes the current FIFO window
execution time though to the interrupt scheduling and it enforces
a minimum delay of 500 cycles before an interrupt will be fired.
2021-11-25 11:11:01 +13:00
Scott Mansell
9bbc843542
VideoSoftware: Fix copy filter clamping
2021-11-17 09:29:16 +13:00
Scott Mansell
7128befb39
Fix copy filter clamping regression in Spyro
...
This fixes horizontal lines in the bloom effect of Spyro: A Hero's Tail,
which is a regression caused by PR #10204
Screenshot of regression:
https://user-images.githubusercontent.com/138484/142030503-90fcd8d5-63d3-4820-874a-72e9be0c4768.png
Fixed:
https://user-images.githubusercontent.com/138484/142031598-b85ff55c-1302-4e4d-bcb2-57848974056b.png
Spyro uses an 640x80 pixel sub-buffer within the EFB to calculate
it's bloom effects, which it places below the main 640x448 buffer.
EFB layout:
https://user-images.githubusercontent.com/138484/142030573-e933b6ae-c37e-4be6-86d4-0bc779b92535.png
Note: Colors are wrong because the main color buffer uses RGBA6,
while the bloom is calculated in RGB8
This allows it to do bloom without backing up part of the EFB to
main memory, as most games do.
But, since some of the sub-buffers used in the bloom effect are taller
than 80 pixels, they need to be sliced up into smaller sub, sub buffers
which get combined later when copied to main memory.
At one point, a 320x224 buffer is broken up into 320x80, 320x64 and
320x80 slices. These are copied out with the copy filter set to a
vertical blur.
Because there was an off-by-one errror in the clamping coordinates,
the bottom line of the color buffer would be blurred into
the top of each slice.
Final combined EFB copy:
https://user-images.githubusercontent.com/138484/142031360-2c076839-7c96-4b3b-a093-d899d0a2c7ae.png
Fixed version:
https://user-images.githubusercontent.com/138484/142031370-72e41a35-3b3e-4662-a483-79203e357ecc.png
Before #10204 the copy filter wasn't enabled for efb copies, and most
other games don't do this type of slicing.
FIFO CI shows that a few other games are effected, it's always just a minor difference to the top line where there was previously a slight hint of garbage.
2021-11-17 06:12:46 +13:00
Scott Mansell
b997048cfe
Merge pull request #10142 from aldelaro5/gdb-stub-rework
...
Rework the entire logic of the GDB stub
2021-10-24 01:51:29 +13:00
Scott Mansell
13985b774e
Merge pull request #10170 from ooshlablu/deb-package-cpack-generation
...
Enable deb package generation with cpack
2021-10-17 13:38:56 +13:00
Scott Mansell
0d5f2810e7
Merge pull request #10166 from fpdotmonkey/heed-tev-switch-warning
...
Silence the -Wswitch warnings in Tev
2021-10-14 20:42:11 +13:00
Scott Mansell
edb66dab84
TextureCache: Remove deleted textures from bound_textures
...
Fixes issue where vulkan might crash trying to bind a deleted
texture.
2021-10-12 15:51:24 +13:00
Scott Mansell
d771bee0fe
TMEM: Add some helpful comments
2021-10-12 15:51:24 +13:00
Scott Mansell
a33cf27885
TMEM: Handle savestate and init
2021-10-12 15:51:24 +13:00
Scott Mansell
88bd10cd30
Extend TMEM cache implementation
...
Now works with games that deliberately avoid invalidating TMEM because
they know textures are too large to fit:
* Sonic Riders
* Metal Arms: Glitch in the System
* Godzilla: Destroy All Monsters Melee
* NHL Slapshot
* Tak and the Power of Juju
* Night at the Museum: Battle of the Smithsonian
* 428: Fūsa Sareta Shibuya de
2021-10-12 15:51:24 +13:00
Scott Mansell
eee302c040
Merge pull request #10158 from phire/bb-missing-include
...
BoundingBox: Add missing include
2021-10-10 16:15:10 +13:00
Scott Mansell
5a8455e8ce
BoundingBox: Add missing include
2021-10-10 13:21:31 +13:00
Scott Mansell
af043c07bb
Merge pull request #10096 from phire/consolidate_tex_unit_addressing
...
Consolidate TexUnit addressing
2021-10-10 09:10:52 +13:00
Scott Mansell
9fa26624b0
BPMemory: Refactor/consolidate TexUnit Addressing
...
Currently the logic for addressing the individual TexUnits is splattered all
across dolphin's codebase, this commit attempts to consolidate it all into a
single place and formalise it using our new TexUnitAddress struct.
2021-10-10 09:09:43 +13:00
Scott Mansell
ef0e401708
BPMem: Abstract TexUnit Addressing into struct
...
The addressing of the texture units is a bit non-obvious.
This struct abstracts the complexity away.
2021-10-10 09:01:57 +13:00
Scott Mansell
40d9694bd0
Merge pull request #10139 from malleoz/movie-mismatch-fix
...
Movie: display correct input difference on movie mismatch
2021-09-30 15:34:10 +13:00
Scott Mansell
a7224b299c
Merge pull request #10136 from malleoz/show-input-polls-on-m_ShowFrameCount
...
RenderBase: Show input count on m_ShowFrameCount
2021-09-30 07:49:09 +13:00
Scott Mansell
a47b91e946
Merge pull request #9945 from OatmealDome/intel-broken-discard
...
DriverDetails: Add broken dual source blending bug to MoltenVK on Intel GPUs
2021-09-30 06:04:06 +13:00
Scott Mansell
bb367394cf
Merge pull request #10129 from malleoz/recording-save-playback-window
...
QFileDialog: differentiate between recording open/save
2021-09-29 15:39:25 +13:00
Scott Mansell
34b6a788c2
Merge pull request #10133 from malleoz/play-recording-vi-total-display
...
Core: UpdateTitle with total framecount on recording playback
2021-09-29 15:33:21 +13:00
Scott Mansell
a963829ab6
Merge pull request #10134 from malleoz/framecount-in-input-display
...
RenderBase: show total framecount on movie playback
2021-09-29 15:23:59 +13:00
Scott Mansell
ce80a96aee
BPStructs: ensure side effects are same
...
Missed this side effect when fixing crash in Mario Kart Wii wifi
2021-09-18 23:58:24 +12:00
Scott Mansell
7c7609f5b9
BPStructs: Ignore malformed efb copies
2021-09-17 12:42:23 +12:00
Scott Mansell
eb8bfabdfd
BPStructs: make copy width/height const
2021-09-15 11:54:40 +12:00
Scott Mansell
37b80e2170
BPStructs: fix out-of-range EFB copy clamping
...
Previous code from #7950 only clamps correctly when the efb copies
left and top coordinates are (0, 0)
Now we should handle all situations.
Spyro: A hero's tail is an example of a game that does an oversized
EFB copy with a non-zero origin.
2021-09-15 02:31:38 +12:00
Scott Mansell
a3c89ac701
Merge pull request #9773 from Techjar/bbox-default-values
...
VideoCommon: Add fallback handling for bounding box when disabled or unsupported
2021-06-01 12:27:34 +12:00
Scott Mansell
37e532322b
Port dump XFB option to Qt UI.
...
Looks like the option was added to the Wx UI at commit 198d3b69 , which
was a few months after the advancedWidget was originally ported from
Wx to Qt, but before anyone was actually using Qt.
2021-05-27 12:48:36 +12:00
Scott Mansell
610613ee76
Use correct mask for Fake VMem
...
Shouldn't have any behaviour change for regular usage as both masks are 32MB
by default.
But fixes theoretical buffer overrun when memory size override is used.
2021-05-23 05:54:02 +12:00
Scott Mansell
9f91fb6447
Merge pull request #9688 from Filoppi/input_cleanup
...
Input cleanup
2021-05-14 20:51:33 +12:00
Scott Mansell
ab55c948a1
Update zcompression format change TODO
2021-05-05 11:32:42 +12:00
Scott Mansell
a4796e512a
Implement EFB Peeks for compressed z16 formats
...
This fixes an issue in RS3 where engine lens flares would shine
though ships during cutscenes
2021-05-05 11:32:29 +12:00
Scott Mansell
ffc40c1a00
Merge pull request #8777 from delroth/pospost
...
XFMemory: SETPOSMTXINFO should be SETPOSTMTXINFO
2020-04-29 15:50:07 +12:00
Scott Mansell
54fd83dc4b
Merge pull request #8553 from dolphin-emu/document-evdev-heuristic
...
Document the evdev "interesting" heuristic
2020-01-07 22:54:54 +13:00
Scott Mansell
a8c33f4ef6
Fix trailing whitespace
2020-01-07 12:52:05 +13:00
Scott Mansell
21528c3e72
Document the evdev "interesting" heuristic
...
Was checking over this old code, and saw a comment calling me out for a lack of documentation.
It might be half a decade late, but better late then never.
2020-01-07 12:46:24 +13:00
Scott Mansell
ac77df9e90
Merge pull request #8490 from vadosnaprimer/dumping
...
2 minor dumping fixes
2019-11-25 10:38:44 +13:00
Scott Mansell
93d7b3d159
Merge pull request #8432 from jordan-woyak/hotkey-indicator-fix
...
DolphinQt: Make HotkeyScheduler call UpdateInput when hotkeys are disabled.
2019-11-07 10:05:54 +13:00
Scott Mansell
677a0903a1
FifoPlayer: Use std::move for saving callbacks
2019-09-09 11:38:21 +12:00
Scott Mansell
46f4f69cfd
QtFifoPlayer: handle fifo load before window creation
...
Fixes a bug where if you loaded a fifo before opening the fifo
player window (which you can do by dragging a .dff onto dolphin's
main window) then the player's widgets wouldn't be initilized
correctly.
Importantly, the object range widgets would be broken.
2019-09-09 10:36:31 +12:00
Scott Mansell
033f1d725f
Fix un-initialized powerpc.xer_* variables
2019-04-27 15:38:02 +12:00
Scott Mansell
c27ee22a15
Add vscode to .gitignore
2019-04-27 10:36:16 +12:00
Scott Mansell
a192a3bb30
While I'm here, fix some chroma sub-sampling bugs.
...
RE4's brightness screen is actually very good for spotting these.
Bug 1: Colors at the end of the scanlines are clamped, instead of a black
border
Bug 2: U and V color channels share coordinates, instead of being offset
by a pixel.
2018-04-29 17:56:53 +10:00
Scott Mansell
fc96479f12
VideoSoftware: Implement xfb copy filter (Deflickering/Brightness)
2018-04-29 17:56:51 +10:00
Scott Mansell
0e6d01220a
Fix change in comment meaning by autoformat.
2018-04-13 09:20:27 +12:00
Scott Mansell
3b5cad6682
Merge pull request #5860 from jturcotte/fix-macos-nswitch-axis
...
Fix axis not working with Switch Pro controller on macOS
2017-08-07 13:44:07 +12:00
Scott Mansell
479abde9f4
BPMemory: Convert a number of unions to BitFields
2017-07-30 17:43:59 +10:00
Scott Mansell
e6476b805e
Merge pull request #5008 from ligfx/aspectheuristic
...
VideoCommon: rework anamorphic widescreen heuristic
2017-04-10 11:30:34 +12:00
Scott Mansell
4c0a392698
Merge pull request #4715 from iwubcode/efb_copy_corruption_at_higher_ir
...
Add configurable toggle to round vertices to nearest pixel
2017-04-05 19:41:52 +12:00
Scott Mansell
d1b343ab5a
Merge pull request #4976 from ligfx/fixwxcommandlineassertion
...
DolphinWX: provide empty OnCmdLineParsed
2017-02-27 15:10:01 +13:00
Scott Mansell
38f399bdfc
Merge pull request #4947 from JMC47/WallaceGromitSaving
...
Force Wallace and Gromit in Pet Zoo to use smaller memory card
2017-02-23 09:52:20 +13:00
Scott Mansell
d8479869dc
Merge pull request #4914 from Rastaban/master
...
C++ conformance fixes (MSVC /permissive-)
2017-02-16 18:48:01 +13:00
Scott Mansell
5da565a1a1
Merge pull request #4735 from degasus/jitcache
...
Jit64: Enable branch following.
2017-01-28 15:48:01 +13:00
Scott Mansell
e41858232d
Merge pull request #4720 from lioncash/si-stub
...
SI_Device: Move the null device implementation to its own source files
2017-01-23 15:46:37 +13:00
Scott Mansell
ed95115c17
Merge pull request #4220 from aldelaro5/memcheck-interface-improvements
...
Redo the MemCheck add dialog
2016-09-28 13:46:25 +13:00
Scott Mansell
4c004b6dc9
Merge pull request #4131 from aldelaro5/memoryViewer-memChecks-improvements
...
Add the configuration of how a memory check is added via the memory window
2016-09-15 10:46:07 +12:00