Commit Graph

32691 Commits

Author SHA1 Message Date
Mat M c62e6a335d
Merge pull request #8532 from lioncash/shader-common-fmt
VideoCommon/ShaderGenCommon: Convert helper functions over to fmt where applicable
2020-05-27 07:04:06 -04:00
Lioncash 86f8768268 VideoCommon/ShaderGenCommon: Make template functions regular functions
These are only ever used with ShaderCode instances and nothing else.
Given that, we can convert these helper functions to expect that type of
object as an argument and remove the need for templates, improving
compiler throughput a marginal amount, as the template instantiation
process doesn't need to be performed.

We can also move the definitions of these functions into the cpp file,
which allows us to remove a few inclusions from the ShaderGenCommon
header. This uncovered a few instances of indirect inclusions being
relied upon in other source files.

One other benefit is this allows changes to be made to the definitions
of the functions without needing to recompile all translation units that
make use of these functions, making change testing a little quicker.

Moving the definitions into the cpp file also allows us to completely
hide DefineOutputMember() from external view, given it's only ever used
inside of GenerateVSOutputMembers().
2020-05-25 21:12:29 -04:00
Lioncash e3506ff4ef VideoCommon/ShaderGenCommon: Convert helper functions over to fmt
A very trivial conversion, this simply converts calls to Write over to
WriteFmt and adjusts the formatting specifiers as necessary.

This also allows the const char* parameters to become std::string_view
instances, allowing for ease of use with other string types.
2020-05-25 21:12:29 -04:00
Markus Wick 68706973d2
Merge pull request #8828 from stenzek/gles-readpixels
FramebufferManager: Copy to color format for depth readbacks on GLES
2020-05-25 08:57:20 +02:00
Pierre Bourdon 72de202a05
Merge pull request #8831 from Tilka/dsp
DSP/Interpreter: simplify opcode table by masking
2020-05-24 16:57:14 +02:00
Tillmann Karras aaa19acbd0 DSP/Interpreter: simplify opcode table by masking 2020-05-24 15:51:52 +01:00
Tillmann Karras e651592ef5 Misc cleanup 2020-05-24 15:51:52 +01:00
Léo Lam a660033e8c
Merge pull request #8792 from leoetlino/video-backend
Migrate video backend setting to the new config system
2020-05-24 15:26:44 +02:00
Léo Lam 1203e626b3
Merge pull request #8800 from sepalani/kd-shutdown
IOS/KD: Implement IOCTL_NWC24_REQUEST_SHUTDOWN
2020-05-24 15:24:51 +02:00
Léo Lam 166633bf27
Merge pull request #8826 from iwubcode/try_parse_any_base
Common / Core: Update StringUtil to allow specifying the base
2020-05-24 15:13:49 +02:00
Léo Lam 7449c7153c
Merge pull request #8830 from JosJuice/delete-empty-rfl-db
CheckNAND: Delete RFL_DB.dat if empty
2020-05-24 15:12:39 +02:00
JosJuice f71ebfe9c1 CheckNAND: Delete RFL_DB.dat if empty 2020-05-24 11:04:23 +02:00
Stenzek ff92357b63 Core: Use window instead of surface for ControllerInterface updates
Fixes crashes with Vulkan on macOS.
2020-05-24 17:39:56 +10:00
Stenzek bf74553878 FramebufferManager: Copy to color format for depth readbacks on GLES
glReadPixels() with depth formats is not supported.

Should fix broken EFB access on GLES.
2020-05-24 16:11:11 +10:00
Stenzek ad373950a2 FramebufferManager: Fix invalid readback of EFB D24S8 depth
Fixes assertion tripping when saving state on Adreno.
2020-05-24 15:36:04 +10:00
iwubcode 85e11cd4ab Common / Core: Update StringUtil to allow specifying the base, default to 0. Fix ActionReplay code to use this instead of prepending '0x' in front 2020-05-23 18:40:10 -05:00
Sepalani 1df1a9abe6 IOS/KD: Implement IOCTL_NWC24_REQUEST_SHUTDOWN 2020-05-22 19:19:36 +04:00
Léo Lam 8df56cb319 Migrate video backend setting to the new config system
Fixes https://bugs.dolphin-emu.org/issues/12087
2020-05-22 16:54:53 +02:00
Léo Lam 393ce529af
Merge pull request #8771 from Leseratte10/master
Add /dev/dolphin interface to allow game to read the REAL product code
2020-05-22 16:49:31 +02:00
Léo Lam 7aec045ef7
Merge pull request #8799 from Ebola16/AT
Android: Consistent TODO formatting
2020-05-22 16:44:43 +02:00
JosJuice 9dafeb3bc5 Translation resources sync with Transifex 2020-05-21 18:40:33 +02:00
Mat M f5c817f61c
Merge pull request #8822 from JosJuice/freelook-typos
DolphinQt: Fix freelook description typos
2020-05-20 17:59:05 -04:00
JosJuice 6d3b0db041 DolphinQt: Fix freelook description typos
cControls -> controls, axis -> axes, removed leading spaces.
2020-05-20 21:56:04 +02:00
Ryan Meredith cfe1687248 Android TV: Add Open File and Install WAD 2020-05-19 03:24:32 -04:00
Markus Wick 0f96dc6259
Merge pull request #8818 from Tilka/licenses
Externals/licenses: add bzip2 link and update googletest
2020-05-18 09:27:30 +02:00
Tilka abe125aea7
Merge pull request #8816 from JosJuice/qfontmetrics-width
DolphinQt: Remove another usage of QFontMetrics::width
2020-05-18 00:19:41 +01:00
Tillmann Karras 8b23170f13 Externals/licenses: add bzip2 link and update googletest 2020-05-18 00:15:39 +01:00
JosJuice f87e32840f DolphinQt: Remove another usage of QFontMetrics::width
QFontMetrics::width breaks building with CMake on Windows,
due to a deprecation warning which gets promoted to an error.
2020-05-18 00:39:57 +02:00
Tilka 8e55ae8006
Merge pull request #8812 from sepalani/net-onion
Config: Migrate SSL options to Onion config
2020-05-17 22:46:29 +01:00
Sepalani 10870a0f74 Config: Migrate SSL options to Onion config 2020-05-17 20:37:10 +01:00
Tilka 798dc2c532
Merge pull request #8814 from Tilka/dsp
DSP: fix DSPTool build and update register table
2020-05-17 20:04:13 +01:00
JosJuice 2250fbce0e
Merge pull request #8802 from leoetlino/wiiroot-mii-db
WiiRoot: Fix empty files being created when source is missing
2020-05-17 20:11:11 +02:00
Pierre Bourdon 099197b480
Merge pull request #8797 from iwubcode/save-state-CLI
Core: Add support for booting a save state from command line
2020-05-17 17:34:08 +02:00
Pierre Bourdon cea779cc84
Merge pull request #8767 from iwubcode/freelook-camera-type
Expand freelook camera with control options
2020-05-17 17:33:04 +02:00
Tillmann Karras a12159f2b6 DSPTool: fix build 2020-05-17 10:47:20 +01:00
Tillmann Karras d5c3411a80 docs/DSP: fix AX register numbers
Dolphin already had this fixed in the initial megacommit.
2020-05-17 10:47:15 +01:00
Tillmann Karras d259fc4038 docs/DSP: add wrapping registers
as decreed in 0d57b7f01a
2020-05-17 10:42:58 +01:00
Tillmann Karras 90b060f284 docs/DSP: fix typos 2020-05-17 10:42:58 +01:00
Pierre Bourdon 30b166e3b1
Merge pull request #8811 from JosJuice/zstd
Externals: Add zstd
2020-05-13 21:22:24 +02:00
JosJuice d7389dc287 Add bzip2, liblzma, zstd to Externals/licenses.md 2020-05-13 21:08:08 +02:00
JosJuice 2137fb7813 Externals: Add zstd
I had to rename Source/Common/Compiler.h because the VS build
confuses it with Externals/zstd/lib/common/compiler.h otherwise.
2020-05-13 20:53:10 +02:00
Pierre Bourdon 6705fd808b
Merge pull request #8806 from delroth/cmake-vendoring
cmake: add an option to control dependencies vendoring
2020-05-13 11:32:51 +02:00
Sepalani 4bf7c3e051 NetworkWidget: Add Blocking column 2020-05-13 11:53:29 +04:00
Connor McLaughlin c704548f00
Merge pull request #8810 from Techjar/have-xrandr-fix
Core/UICommon: Fix EnableScreenSaver preprocessor directive
2020-05-13 16:32:17 +10:00
Techjar ac9b246809 Core/UICommon: Fix EnableScreenSaver preprocessor directive
The include for X11Utils.h (and by extension Xlib.h) is gated behind
HAVE_XRANDR, as well as the declaration for this function, but its
definition was mistakenly gated behind HAVE_X11. Therefore, if we have
X11 but not Xrandr, the build will fail due to declaration/definition
mismatch and the missing Window type.
2020-05-13 02:11:29 -04:00
Connor McLaughlin 2488e4a587
Merge pull request #8795 from WamWooWam/master
InputCommon: Use the Window handle when initializing DirectInput.
2020-05-10 19:16:15 +10:00
Pierre Bourdon 0990f99608
Merge pull request #8807 from delroth/libusb-error-log
GCAdapter: add libusb error logging on reads/writes
2020-05-10 09:34:50 +02:00
Pierre Bourdon 143131a6a1
cmake: add an option to control dependencies vendoring
Disable by default, to be used by distributions who care to try and
prefer system-wide libraries when available. It makes sense for us to
keep using vendored libs by default when possible to make it easier for
users to compile, but we should provide appropriate tools for distro to
figure out which dependencies they can share with the rest of the
system.
2020-05-10 09:34:14 +02:00
Pierre Bourdon daf1c30a94
GCAdapter: add libusb error logging on reads/writes 2020-05-10 09:26:49 +02:00
Thomas May 76ae1d4070 Apply fixes to all platforms 2020-05-09 22:35:20 +01:00