summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2022-06-16Merge pull request #8472 from german77/taceMorph
common: param_package: Demote DEBUG to TRACE for getters
2022-06-16common: param_package: Demote DEBUG to TRACE for gettersNarr the Reg
2022-06-15Merge pull request #8460 from Morph1984/bounded-qliamwhite
bounded_threadsafe_queue: Use constexpr capacity and mask
2022-06-15bounded_threadsafe_queue: Use constexpr capacity and maskMorph
While this is the primary change, we also: - Remove the mpsc namespace and rename Queue to MPSCQueue - Make Slot a private struct within MPSCQueue - Remove the AlignedAllocator template argument, as we use std::allocator - Replace instances of mask + 1 with capacity, and mask + 2 with capacity + 1
2022-06-14Merge pull request #8383 from Morph1984/shadow-of-the-pastMai
yuzu: Make variable shadowing a compile-time error
2022-06-13common/assert: rework ASSERT handling to avoid std::function usageLiam
2022-06-13common/assert: add unlikelyLiam
2022-06-13common: Don't test ASSERT conditions inlineLiam
2022-06-13common: Change semantics of UNREACHABLE to unconditionally crashLiam
2022-06-13common: Eliminate variable shadowingMorph
GCC/Clang treats variables within lambdas as potentially shadowing those outside the lambda, despite them not being captured inside the lambda's capture list.
2022-06-11Merge pull request #8413 from behunin/bounded-queuebunnei
gpu_thread: Move to bounded queue
2022-06-11Merge pull request #8393 from lat9nq/default-vulkanbunnei
general: Set renderer_backend's default to Vulkan
2022-06-05common: consolidate ELF structure definitionsLiam
2022-06-02gpu_thread: Move to bounded queueLevi Behunin
2022-06-01core/debugger: Implement new GDB stub debuggerLiam
2022-05-29settings: Set Vulkan to the default renderer backendlat9nq
2022-05-28Merge pull request #8374 from german77/asnycvibrationsbunnei
input_common: Make vibration request async
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-23input_common: Make vibration request asyncNarr the Reg
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-08VideoCore: Add option to dump the macros.Fernando Sahmkow
Co-Authored-By: liamwhite <liamwhite@users.noreply.github.com>
2022-04-28Merge pull request #8280 from Tachi107/spdx-fixupMai M
chore: add missing SPDX tags
2022-04-28GCC 12 fixesLiam
2022-04-28chore: add missing SPDX tagsAndrea Pappacoda
Follow-up to 99ceb03a1cfcf35968cab589ea188a8c406cda52
2022-04-23general: Convert source file copyright comments over to SPDXMorph
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2022-04-16yuzu: Add custom ringcon configurationgerman77
2022-04-11hle: kernel: Use std::mutex instead of spin locks for most kernel locking.bunnei
2022-04-07common: Replace lock_guard with scoped_lockMerry
2022-04-07Merge pull request #8143 from merryhime/rdtscFernando S
native_clock: Use lfence with rdtsc
2022-04-06service: jit: stub JIT serviceLiam
2022-04-04Merge pull request #8089 from merryhime/paranoiabunnei
configuration: Add Paranoid CPU accuracy level
2022-04-03native_clock: Internal linkage for FencedRDTSCMerry
__forceinline required on MSVC for function to be inlined
2022-04-03native_clock: Use lfence with rdtscmerry
2022-04-02native_clock: Use writeback from CAS to avoid double-loadingmerry
2022-04-02atomic_ops: Implement AtomicCompareAndSwap with writebackmerry
2022-04-02native_clock: Use AtomicLoad128Merry
2022-04-02atomic_ops: Implement AtomicLoad128Merry
2022-03-26configuration: Add Paranoid CPU accuracy levelmerry
Disables most optimizations for the paranoid.
2022-03-24hle: nvflinger: Merge Rect with Common::Rectangle.bunnei
2022-03-24common: logging: Add a logger for NVFlinger.bunnei
2022-03-20general: Fix clang/gcc build errorsameerj
2022-03-19common: Reduce unused includesameerj
2022-03-19common: Reduce unused includesameerj
2022-03-14common: tree: Various updates.bunnei
2022-03-14common: intrusive_red_black_tree: Various updates.bunnei
2022-03-11cpu_detect: Add additional x86 flags and telemetryWunkolo
Adds detection of additional CPU flags to cpu_detect and additions to telemetry output. This is not exhaustive but guided by features that [dynarmic utilizes](https://github.com/merryhime/dynarmic/blob/bcfe377aaa5138af740e90af5be7a7dff7b62a52/src/dynarmic/backend/x64/host_feature.h#L12-L33) as well as features that are currently utilized but not reported to telemetry(invariant_tsc). This is intended to guide future optimizations. AVX512 in particular is broken up into its individual subsets and some other processor features such as [sha](https://en.wikipedia.org/wiki/Intel_SHA_extensions) and [gfni](https://en.wikipedia.org/wiki/AVX-512#GFNI) are added to have some forward-facing data-points. What used to be a single `CPU_Extension_x64_AVX512` telemetry field is also broken up into individual `CPU_Extension_x64_AVX512{F,VL,CD,...}` fields.
2022-03-11common/telemetry: Update `AddField` name type to `string_view`Wunkolo
Non-owning `string_view` is flexable and avoids some of the many redundant copies made over `std::string`
2022-03-10backend: Ensure backend_thread is destructed before message_queueMerry
Ensures that stop_token signals that stop has been requested before destruction of conditional_variable
2022-03-09cpu_detect: Revert `__cpuid{ex}` array-type argumentWunkolo
Restores compatibility with MSVC's `__cpuid` intrinsic.
2022-03-09cpu_detect: Add missing `lzcnt` detectionWunkolo