aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-05-30vulkan_library: Add debug logginglat9nq
2022-05-30yuzu-qt: Attempt to workaround broken Vulkan installationslat9nq
This does a few things in order to make the default setting Vulkan workable. - When yuzu boots, it just opens the Vulkan library. - If it works, all good and we continue with Vulkan as the default. - If something breaks, a new file in the config directory will be left behind (this is deleted normally). - If Vulkan is not working, has_broken_vulkan is set to true. - The first time this happens, a warning is displayed to notify the user. - This forces use of OpenGL, and Vulkan cannot be selected. - The Shader Backend selector is made accessible for use in custom configurations. - To disable has_broken_vulkan, the user needs to press a button in Graphics Configuration to manually run the Vulkan device enumeration.
2022-05-29default_ini: Reflect new renderer backend default settinglat9nq
2022-05-29settings: Set Vulkan to the default renderer backendlat9nq
2022-05-29motion touch ui: move remaining connection out of .ui fileKyle K
Two reasons for this: 1. Out of 7 connections, 6 are in ConfigureMotionTouch::ConnectEvents, this is the outlier. 2. Qt6 doesn't moc the connection properly
2022-05-29Update some files with Qt 5.15.2 best practices in mindKyle K
There was some discussion about updating to Qt6 and I figured I would work on some smaller parts. For Windows platform the WinMain function has moved from the Qt5::WinMain to a new one called Qt6::EntryPointPrivate Also Qt5 supports versionless CMake targets https://www.qt.io/blog/versionless-cmake-targets-qt-5.15 These other changes in this commit are to support Qt6, but in ways that don't mess with Qt5. src/yuzu/bootmanager.cpp: Qt6 complains about not being able to know to use QPoint or QPointF, picking QPoint src/yuzu/bootmanager.h: Qt6 prefers that QStringList.h be included rather than an empty class definition src/yuzu/configuration/configure_system.cpp: toULongLong intends to return unsigned 64 bit integer, but Settings::values.rng_seed is only 32 bits wide src/yuzu/game_list.cpp: Qt6 returns a different datatype for QStringList.length than Qt5, it used to be int, but in Qt6 its now qsizetype src/yuzu/loading_screen.cpp: Qt5's for QStyleOption.init say to switch to initFrom. The QStyleOption.init doesn't exist in Qt6 src/yuzu/main.cpp: Another QPointer and QStringList.size, lets standardize on size()
2022-05-29Merge pull request #8332 from Morph1984/reduce_exec_sizebunnei
general: Use smaller array types where applicable
2022-05-29Merge pull request #8339 from Docteh/about_iconbunnei
about dialog: Fix yuzu icon
2022-05-28Logging: Report Post Windows 10 2004 versions, like Windows 11Kyle K
Qt5 and Qt6 don't really do a good job of reporting Windows versions past the 2004 version. Current: Windows 10 Version 2009 This Patch: Windows 10 Version 21H1 (Build 19043.1706) Also: Windows 11 Version 21H2 (Build 22000.675) Fixes: #8362
2022-05-28Merge pull request #8385 from lat9nq/just-subsys-winMai M
yuzu-qt: Call -Wl,--subsystem,windows directly
2022-05-28yuzu-qt: Call -Wl,--subsystem,windows directlylat9nq
-mwindows doesn't work with Clang. tpoechtrager/wclang resolves this by just using MinGW-GCC to link the executable, however this prevents us from using LLVM-exclusive tools when building yuzu. Solution is to send the linker argument we need from -mwindows directly to the linker. From https://gcc-help.gcc.gnu.narkive.com/FogklN5J/gcc-wl-subsystem-windows-mwindows-options
2022-05-28Merge pull request #8374 from german77/asnycvibrationsbunnei
input_common: Make vibration request async
2022-05-27Merge pull request #8372 from german77/touchbunnei
input_common: touch: Rewrite touch driver to support multiple touch points
2022-05-27service: hid: Implement ResetIsSixAxisSensorDeviceNewlyAssignedgerman77
Needed by Nintendo Switch Sports
2022-05-27service: hid: Implement LoadSixAxisSensorCalibrationParameter and ↵german77
GetSixAxisSensorIcInformation Needed by Nintendo Switch Sports
2022-05-27service: hid: Implement EnableSixAxisSensorUnalteredPassthrough and ↵german77
IsSixAxisSensorUnalteredPassthroughEnabled Needed by Nintendo Switch Sports
2022-05-27service: hid: Add error handling to sixaxis functionsgerman77
2022-05-27service: hid: Refractor sixaxis functionsgerman77
2022-05-27service: hid: Implement MergeSingleJoyAsDualJoy according to REgerman77
2022-05-27service: hid: Add error handling to setNpadAssignment and variantsgerman77
2022-05-27service: hid: Quick RE fixes and commentsgerman77
2022-05-26path_util: Resolve `-Wpointer-bool-conversion` warninglat9nq
Clang (rightfully) warns that we are checking for the existence of pointer to something just allocated on the stack, which is always true. Instead, check whether GetModuleFileNameW failed. Co-authored-by: Mai M <mathew1800@gmail.com>
2022-05-25Merge pull request #8379 from lat9nq/amd-push-desc-workaroundbunnei
vulkan_device: Block AMDVLK's VK_KHR_push_descriptor
2022-05-25Merge pull request #8369 from lat9nq/amd-wmel-workaroundbunnei
vulkan_device: Workaround extension bug
2022-05-25vulkan_device: Workaround extension buglat9nq
A bug occurs in yuzu when VK_KHR_workgroup_memory_explicit_layout is available but 16-bit integers are not supported in the host driver. Disable usage of the extension when this case arises.
2022-05-25vulkan_device: Block AMDVLK's VK_KHR_push_descriptorlat9nq
Recent AMD Vulkan drivers (22.5.2 or 2.0.226 for specifically Vulkan) have a broken VK_KHR_push_descriptor implementation that causes a crash in yuzu. Disable it for the time being.
2022-05-24Merge pull request #8311 from asLody/fix-stencil-facesbunnei
vk_rasterizer: fix stencil test when two faces are disabled
2022-05-23input_common: Make vibration request asyncNarr the Reg
2022-05-23input_common: touch: Rewrite touch driver to support multiple touch pointsgerman77
2022-05-20Merge pull request #8342 from lat9nq/clang-latest-stdc++liamwhite
general: Use Common::U16StringFromBuffer in place of QString::toStdU16String
2022-05-18UI: Translate hotkey labels in configurationKyle K
Another request from GillianMC. The translated strings have been placed in a separate "Hotkeys" context as an alternative to having to add the tr function to the Config class, or adding them to ConfigureHotkeys context which is quite long. The English strings get attached to the items in the Action column as "data", and are used for RetranslateUI and saving the hotkey configuration.
2022-05-17video_core: Support new VkResultAlexandre Bouvier
2022-05-16qt_software_keyboard: Address review feedbacklat9nq
Use auto and a more descriptive variable name. Secondly, fix some C++ misconceptions or constructing too many objects. Co-authored-by: Morph <39850852+Morph1984@users.noreply.github.com> Co-authored-by: Lioncash <mathew1800@gmail.com>
2022-05-16about dialog: Fix the logo in a multiplatform wayKyle K
The Icon was renamed in #8283 for Linux builds, and the fix proposed in #8312 would in turn break the icon for Windows users. I've decided to fix the aboutdialog.ui file via qtcreator. I'm not sure its important to have the yuzu icon inside the About dialog grabbed from the local Qt theme, but I've reword how the code works for that, and we can just delete those lines. I've also thrown the yuzu.png through pngcrush to remove this warning libpng warning: iCCP: known incorrect sRGB profile Credit to abouvier for bringing bug up.
2022-05-15main: Use Common::U16StringFromBufferlat9nq
See ffd3afcf2
2022-05-15qt_software_keyboard: Use Common::U16StringFromBufferlat9nq
See ffd3afcf2
2022-05-15string_util: Add U16StringFromBufferlat9nq
Qt's QString::toStdU16String doesn't work when compiling against the latest libstdc++, at least when using Clang. This function effectively does the same thing as the aforementioned one.
2022-05-14general: Avoid ambiguous format_to compilation errorsLioncash
Ensures that we're using the fmt version of format_to. These are also the only three outliers. All of the other formatters we have are properly qualified.
2022-05-13time_zone_manager: Use s8 for month length tablesMorph
Using this smaller type saves 512 bytes in the compiled executable.
2022-05-13video_core/surface: Use u8 for PixelFormat block tablesMorph
Using this smaller type saves 33280 bytes in the compiled executable.
2022-05-13codecs/vp9: Use u8 for norm and map lutsMorph
Using this smaller type saves 1536 bytes in the compiled executable.
2022-05-13command_generator: Use u8 for tap index lutMorph
Using this smaller type saves 1024 bytes in the compiled executable.
2022-05-11Merge pull request #8308 from german77/disablesixMorph
service: hid: Disable correctly motion input
2022-05-11Merge pull request #8314 from liamwhite/gl-flip-2Morph
OpenGL: interpret face flips according to GL NDC
2022-05-11Merge pull request #8313 from liamwhite/dma-bppMorph
maxwell_dma: fix bytes_per_pixel
2022-05-10maxwell_dma: use fallback if remapping is enabledLiam
2022-05-10video_core/macro: clear code on upload address assignmentLiam
2022-05-09service: notifa: Implement most part of this servicegerman77
Implements partially RegisterAlarmSetting, UpdateAlarmSetting, LoadApplicationParameter, DeleteAlarmSetting. Needed for Fitness `Boxing 2: Rhythm & Exercise` and `Ring Fit Adventure`.
2022-05-08VideoCore: Add option to dump the macros.Fernando Sahmkow
Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
2022-05-08video_core/macro_jit_x64: warn on invalid parameter accessLiam