Commit Graph

40644 Commits

Author SHA1 Message Date
Charles Lombardo a56ee1a62e Android: Convert GameFile to Kotlin 2023-08-25 14:54:16 -04:00
Charles Lombardo 0e3b33d901 Android: Convert InputMappingControlSettingViewHolder to Kotlin 2023-08-25 14:20:33 -04:00
Charles Lombardo 6caa4307ac Android: Convert ProfileViewHolder to Kotlin 2023-08-25 14:20:33 -04:00
Charles Lombardo 29e5c78541 Android: Convert ProfileDialogPresenter to Kotlin 2023-08-25 14:20:33 -04:00
Charles Lombardo 6ad18e4ee5 Android: Convert ProfileAdapter to Kotlin 2023-08-25 14:20:33 -04:00
Charles Lombardo dfafa74ba1 Android: Convert MotionAlertDialog to Kotlin 2023-08-25 14:20:33 -04:00
Charles Lombardo 5171290bdb Android: Convert AdvancedMappingDialog to Kotlin 2023-08-25 14:20:33 -04:00
Charles Lombardo d049be0cad Android: Convert AdvancedMappingControlViewHolder to Kotlin 2023-08-25 14:20:33 -04:00
Charles Lombardo dac7035119 Android: Convert AdvancedMappingControlAdapter to Kotlin 2023-08-25 14:20:33 -04:00
Charles Lombardo d21b2d86a8 Android: Convert InputMappingControlSetting to Kotlin 2023-08-25 14:20:33 -04:00
Charles Lombardo 9d7bd6e6bd Android: Convert InputDeviceSetting to Kotlin 2023-08-25 14:20:32 -04:00
Charles Lombardo 2590382871 Android: Convert MappingCommon to Kotlin 2023-08-25 14:20:32 -04:00
Charles Lombardo f8ab65bcac Android: Convert InputOverrider to Kotlin 2023-08-25 14:20:32 -04:00
Charles Lombardo cb9c670d85 Android: Convert InputMappingIntSetting to Kotlin 2023-08-25 14:20:32 -04:00
Charles Lombardo 60b3b1231b Android: Convert InputMappingDoubleSetting to Kotlin 2023-08-25 14:20:32 -04:00
Charles Lombardo b2e2c3b8d4 Android: Convert InputMappingBooleanSetting to Kotlin 2023-08-25 14:20:32 -04:00
Charles Lombardo 4c8cd49d80 Android: Convert DolphinVibratorManagerPassthrough to Kotlin 2023-08-25 14:20:32 -04:00
Charles Lombardo 29adbb4394 Android: Convert DolphinVibratorManagerCompat to Kotlin 2023-08-25 14:20:32 -04:00
Charles Lombardo 1ff6a3788e Android: Convert DolphinVibratorManager to Kotlin 2023-08-25 14:20:32 -04:00
Charles Lombardo ba9f2373c0 Android: Convert DolphinSensorEventListener to Kotlin 2023-08-25 14:20:31 -04:00
Charles Lombardo 24c882622f Android: Convert ControllerInterface to Kotlin 2023-08-25 14:20:31 -04:00
Charles Lombardo 9ac1847cbd Android: Convert NumericSetting to Kotlin 2023-08-25 14:20:31 -04:00
Charles Lombardo 82298dc408 Android: Convert CoreDevice to Kotlin 2023-08-25 14:20:31 -04:00
Charles Lombardo 3011c0dc64 Android: Convert EmulatedController to Kotlin 2023-08-25 13:31:21 -04:00
Charles Lombardo 4ce069cf4f Android: Convert ControlReference to Kotlin 2023-08-25 13:31:04 -04:00
Charles Lombardo 7c79ff0100 Android: Convert ControlGroup to Kotlin 2023-08-25 13:30:42 -04:00
Charles Lombardo fafbb2199e Android: Convert Control to Kotlin 2023-08-25 13:30:23 -04:00
Charles Lombardo 0454578f45 Android: Convert ControlGroupEnabledSetting to Kotlin 2023-08-25 10:08:50 -04:00
iwubcode 9223540bf4 VideoCommon: additional error checking for CustomPipelineAction and move the pixel shader asset cache time back to being calculated during texture creation 2023-08-24 00:47:48 -05:00
iwubcode 7c52a52440 VideoCommon: add TextureData structure that contains the raw texture data, a sampler, and the type of texture information 2023-08-24 00:35:31 -05:00
Dentomologist a650a16f4c JitArm64: Resolve deprecated enum conversion warning
Resolve warning caused by using values from two different enums in a
conditional expression which was deprecated in c++20.

The warning in question is clang -Wdeprecated-anon-enum-enum-conversion
and gcc -Wenum-compare.
2023-08-23 14:38:52 -07:00
JosJuice 260bad74ea
Merge pull request #12132 from JosJuice/gles-uint-const
VideoCommon: Fix custom shader constants on GLES
2023-08-22 22:35:06 +02:00
JosJuice ba99d17ac0 VideoCommon: Fix custom shader constants on GLES 2023-08-22 19:38:18 +02:00
Admiral H. Curtiss 4223cd0264
Merge pull request #12130 from JosJuice/translation-fixes
Fixes to translatable strings
2023-08-22 16:44:36 +02:00
JosJuice 6e88c44d5d Move SmallVector to Common
We had one implementation of this type of data structure in Arm64Emitter
and one in VideoCommon. This moves the Arm64Emitter implementation to
its own file and adds begin and end functions to it, so that VideoCommon
can use it.

You may notice that the license header for the new file is CC0. I wrote
the Arm64Emitter implementation of SmallVector, so this should be no
problem.
2023-08-22 13:19:49 +02:00
Admiral H. Curtiss 131dceff4a
Merge pull request #12129 from AdmiralCurtiss/mod-asset-fix
VideoCommon/GraphicsModAsset: Error out if config key is not a string.
2023-08-22 03:05:17 +02:00
iwubcode 55fba7c0ed
VideoCommon/GraphicsModAsset: Error out if config key is not a string. 2023-08-22 02:40:08 +02:00
Admiral H. Curtiss dbe6a5f7e4
Merge pull request #11300 from iwubcode/custom-shaders
VideoCommon: add a graphics mod action that allows you to modify the game's base rendering
2023-08-22 02:18:40 +02:00
Dentomologist 58ab94c30c GCC: Suppress PPCSTATE_OFF invalid-offsetof warnings
Modify PPCSTATE_OFF and PPCSTATE_OFF_ARRAY macros when using GCC to
avoid useless log spam. Specifically, use a consteval lambda with gcc
_Pragma statements to disable the -Winvalid-offsetof warning inside the
macros.

Each successful build (and many failing ones) on the Android buildbot
generates almost 300 cases of -Winvalid-offsetof, resulting in thousands
of lines of log spam per build. In addition to bloating the log filesize
these spurious warnings make it harder to find actual warnings.

These warnings are generated by calls to the macros PPCSTATE_OFF and
PPCSTATE_OFF_ARRAY, which in turn are used by many other macros used by
the JIT. The ultimate cause is that offsetof is only conditionally
supported on non-standard-layout types, which includes the PowerPCState
struct.

To address potential questions of whether there's a better way to handle
this:

The obvious solution would be to modify PowerPCState so that it does
have a standard layout. This is unfortunately impractical.

To have a standard layout a type can only contain other types with
standard layouts. None of the stl containers are guaranteed to have
standard layouts, and PowerPCState contains a std::tuple and std::array.
PowerPCState also contains a PowerPC::Cache and InstructionCache which
themselves contain std:arrays and std::vectors.

Furthermore InstructionCache derives from Cache, and a derived class can
only have standard layout if at most one class in its hierarchy has a
non-static data member, but both classes have such members. Making
InstructionCache have a standard layout would require duplicating all
the functionality of Cache so it no longer derived from it, as well as
replacing the stl containers. This might require having a raw pointer to
said containers, with the manual memory management that implies.

All of that would be much more disruptive than would be justified to get
rid of some warnings (however annoying they might be). This is
compounded by the fact that PowerPCState hasn't had a standard layout
for a long time, if ever, and if the PPCSTATE_OFF macros weren't working
reliably it would have become obvious a long time ago.

As to why I picked the lambda solution over other potential changes:

- Keeping the define as-is and wrapping some gcc #pragmas around it
  doesn't work because the pragmas don't get included when the define is
  substituted to the call site.

- Keeping the define as a non-lambda expression and using inline
  _Pragma() statements would ideally be better and works fine for msvc,
  but fails for GCC with "'#pragma' is not allowed here".

- Turning off -Winvalid-offsetof globally for gcc would work, but there
  might be other contexts where offsetof is problematic and GCC seems to
  be the only compiler warning about it.
2023-08-21 14:01:11 -07:00
Sepalani 573863703a MemoryViewWidget: Fix some characters being truncated 2023-08-21 22:02:44 +04:00
JosJuice e7c2133160 Fixes to translatable strings 2023-08-21 16:29:52 +02:00
JosJuice 3451cb1ca2
Merge pull request #11959 from Dentomologist/add_x64emitter_unittests
x64EmitterTest: add J/J_CC/CALL unit tests
2023-08-21 16:27:04 +02:00
iwubcode 5506121685 VideoCommon: add support to graphics mod manager to load in assets and pass it to graphics actions 2023-08-20 18:53:27 -05:00
iwubcode 6ea0d17802 VideoCommon: when graphics settings change, trigger a reload of all custom shaders 2023-08-20 18:53:27 -05:00
iwubcode 931a8aa413 VideoCommon: add milliseconds elapsed time value to pixel shaders as a uniform to be able to support animation effects in custom shaders 2023-08-20 18:53:27 -05:00
iwubcode 675544ec2b docs: Add custom pipeline documentation 2023-08-20 18:53:27 -05:00
iwubcode c7191382be VideoCommon: add custom pipeline action 2023-08-20 18:53:27 -05:00
iwubcode d320366954 VideoCommon: add custom shader cache to VertexManagerBase, supporting custom pixel shaders by replacing the existing pipeline with a modified one 2023-08-20 18:53:27 -05:00
iwubcode bedbf2b8c6 VideoCommon: add custom shader cache 2023-08-20 18:53:27 -05:00
iwubcode dbaf24ef09 VideoCommon: add data needed to support custom pixel shaders to graphics mod actions 2023-08-20 18:53:27 -05:00