Commit Graph

19910 Commits (2ceb514a3980537c0d678de4ec209256b6c0e1b8)
 

Author SHA1 Message Date
bunnei 7eb4542c1d
Merge pull request #6912 from lioncash/plural
CMakeLists: Ensure proper numerusform tags are generated for pluralized translations
4 years ago
bunnei f65f8b9097
Merge pull request #6869 from yzct12345/shiny-logs-in-the-fireplace
logging: Simplify and make thread-safe
4 years ago
Lioncash 6fef91ce4c CMakeLists: Ensure proper numerusform tags are generated for pluralized translations
If we don't set an explicit source and target language for the base
english translation, then we'll generate an incorrect number of
<numerusform> tags (which Transifex doesn't like).
4 years ago
Ameer J a428a843cb
Merge pull request #6904 from Morph1984/lang-settings-range
settings: Amend language_index maximum setting range
4 years ago
Morph c4a1d3cbf4 settings: Amend language_index maximum setting range
The maximum is now 17 with the addition of Brazilian Portuguese
4 years ago
ameerj e0397f00d0 vk_rasterizer: Only clear depth and stencil buffers when set in attachment aspect mask
Silences validation errors for clearing the depth/stencil buffers of framebuffer attachments that were not specified to have depth/stencil usage.
4 years ago
Ameer J bde6b899a1
Merge pull request #6888 from v1993/patch-3
video_core: eliminate constant ternary
4 years ago
bunnei 455e28790a
Merge pull request #6877 from MerryMage/dyn-ignore-asserts
dynarmic: Update and enable DYNARMIC_IGNORE_ASSERTS
4 years ago
Mai M 519978ce70
Merge pull request #6887 from v1993/patch-2
SPIR-V: Merge two ifs in EmitGetAttribute
4 years ago
Mai M 0821d95399
Merge pull request #6886 from Morph1984/error-code-64
applet_error: Fix 64-bit error code conversion
4 years ago
Mai M 155b99ee55
Merge pull request #6890 from v1993/patch-5
Replace QPoint with QPointF where applicable
4 years ago
Fernando Sahmkow ef2066b272 GPU_MemoryManger: Fix GetSubmappedRange. 4 years ago
Valeri d82fc52cea
Replace QPoint with QPointF where applicable
Previously, floats were implicitly cast to integers
4 years ago
Morph 151ab86204
Merge pull request #6889 from v1993/patch-4
qt_software_keyboard: fix copy-paste error
4 years ago
Valeri 40674b8e22
qt_software_keyboard: fix copy-paste error 4 years ago
Valeri 4fd655cb46
video_core: eliminate constant ternary
`via_header_index` is already checked above, so it would never be true in this branch
4 years ago
Morph 9cb376f8c2 applet_error: Fix 64-bit error code conversion 4 years ago
Valeri beb7305b73
SPIR-V: Merge two ifs in EmitGetAttribute 4 years ago
Mai M 562d2aa3d6
Merge pull request #6885 from v1993/patch-1
Fix crash in logging in CreateStrayLayer
4 years ago
Valeri ab02addde3
Fix crash in logging in CreateStrayLayer
It was trying to log value of layer_id which is specifically known not to exist, potentially leading to segfault. Log display_id instead.
4 years ago
Morph aa74aaf38f
Merge pull request #6884 from v1993/patch-1
Fix check is thread current in GetThreadContext
4 years ago
Valeri 0b3d12be40
Fix check is thread current in GetThreadContext
Misplaced break made it only check for the first core.
4 years ago
bunnei aa40084c24
Merge pull request #6832 from bunnei/scheduler-improvements
kernel: Various improvements to scheduler
4 years ago
ameerj b384129c63 h264: Lower max_num_ref_frames
GPU decoding seems to be more picky when it comes to the maximum number of reference frames.
4 years ago
ameerj cd016d3cb5 configure_graphics: Add GPU nvdec decoding as an option
Some system configurations may see visual regressions or lower performance using GPU decoding compared to CPU decoding. This setting provides the option for users to specify their decoding preference.

Co-Authored-By: yzct12345 <87620833+yzct12345@users.noreply.github.com>
4 years ago
ameerj a832aa699f codec: Improve libav memory alloc and cleanup 4 years ago
ameerj bc3efb79cc codec: Fallback to CPU decoding if no compatible GPU format is found 4 years ago
lat9nq 92bc51b66a cmake: Add VDPAU and NVDEC support to FFmpeg
Adds {h264_,vp9_}{nvdec,vdpau} hwaccels.
4 years ago
ameerj 537c6ac8fe vk_blit_screen: Fix non-accelerated texture size calculation
Addresses the potential OOB access in UnswizzleTexture.
4 years ago
Fernando S 521e6ac174
Merge pull request #6863 from spholz/fix-lan-play
Fix LAN Play
4 years ago
BreadFish64 14e93f133a kernel: Optimize GetHostThreadID 4 years ago
Sönke Holz 356dbf4d1d network_interface: correct formatting 4 years ago
spholz dc47b5a5bf network_interface: fix mingw-w64 build 4 years ago
Sönke Holz 70419f7a17 network: retrieve subnet mask and gateway info 4 years ago
Merry af6290ed12 dynarmic: Update and enable DYNARMIC_IGNORE_ASSERTS 4 years ago
Merry 1770503185 xbyak: Update include path 4 years ago
bunnei 87d63b858a
Merge pull request #6861 from yzct12345/const-mempy-is-all-the-speed
decoders: Optimize memcpy for the other functions
4 years ago
bunnei bdd617da03
Merge pull request #6868 from yzct12345/safe-threads-no-deadlocks
threadsafe_queue: Fix deadlock
4 years ago
bunnei aef0ca6f0d core: hle: kernel: Disable dispatch count tracking on single core.
- This would have limited value, and would be a mess to handle properly.
4 years ago
yzct12345 0ba521e634
threadsafe_queue: Fix deadlock
This fixes a lost wakeup in SPSCQueue. If the reader is in just the right position, the writer's notification will be lost and this will be a problem if the writer then does something to wait on the reader.

This was discovered to affect my upcoming stacktrace PR. I don't think any performance decrease will be noticeable because an uncontended mutex is smart enough to skip the syscall. This PR might also resolve some rare deadlocks but I don't know of any examples.
4 years ago
yzct12345 81ed54d13e
logging: Display backtrace on crash
This implements backtraces so we don't have to tell users how to use gdb anymore.

This prints a backtrace after abort or segfault is detected. It also fixes the log getting cut off with the last line containing only a bracket. This change lets us know what caused a crash not just what happened the few seconds before it.

I only know how to add support for Linux with GCC. Also this doesn't work outside of C/C++ such as in dynarmic or certain parts of graphics drivers. The good thing is that it'll try and just crash again but the stack frames are still there so the core dump will work just like before.
4 years ago
yzct12345 001675dced
logging: Simplify and make thread-safe
This simplifies the logging system.

This also fixes some lost messages on startup.

The simplification is simple. I removed unused functions and moved most things in the .h to the .cpp. I replaced the unnecessary linked list with its contents laid out as three member variables. Anything that went through the linked list now directly accesses the backends. Generic functions are replaced with those for each specific use case and there aren't many. This change increases coupling but we gain back more KISS and encapsulation.

With those changes it was easy to make it thread-safe. I just removed the mutex and turned a boolean atomic. I was planning to use this thread-safety in my next PR about stacktraces. It was actually async-signal-safety at first but I ended up using a different approach. Anyway getting rid of the linked list is important for that because have the list of backends constantly changing complicates things.
4 years ago
Sönke Holz 068c66672d configuration: fix mingw-w64 build 4 years ago
spholz deb65a5717 network: don't use reinterpret_cast in GetAvailableNetworkInterfaces 4 years ago
Sönke Holz e660334a21 network: fix mingw-w64 build
The header "combaseapi.h" of mingw-w64 defines "interface" as "struct".
4 years ago
Sönke Holz b18e1d031f network: don't use assert to check if no network interfaces are returned 4 years ago
bunnei 71d8d84b59
Merge pull request #6862 from german77/badsdl
input_common: Disable sdl raw input mode
4 years ago
Sönke Holz 0476751ee2 configuration: move network_interface include to source file 4 years ago
Sönke Holz a0c4c1a23a network: use Common::BitCast instead of std::bit_cast 4 years ago
Sönke Holz 8513e59431 network: narrow down scope of "result" in win32 code for
GetAvailableNetworkInterfaces
4 years ago