summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-04-05video_core/macro_interpreter: Simplify GetRegister()Lioncash
Given we already ensure nothing can set the zeroth register in SetRegister(), we don't need to check if the index is zero and special case it. We can just access the register normally, since it's already going to be zero. We can also replace the assertion with .at() to perform the equivalent behavior inline as part of the API.
2019-04-04Merge pull request #2282 from bunnei/gpu-asynch-v2bunnei
gpu_thread: Improve synchronization by using CoreTiming.
2019-04-04Merge pull request #2292 from lioncash/nacpbunnei
file_sys/control_metadata: Amend naming of members
2019-04-04Merge pull request #2335 from lioncash/service-unusedbunnei
hle/service: Resolve unused variable warnings
2019-04-04Merge pull request #2336 from ReinUsesLisp/txqbunnei
gl_shader_decompiler: Fix TXQ types
2019-04-04Merge pull request #2331 from lioncash/cachebunnei
yuzu/main: Minor adjustments to OnTransferableShaderCacheOpenFile()
2019-04-04Merge pull request #2333 from lioncash/video-includebunnei
video_core/renderer_opengl: Remove unnecessary includes
2019-04-04gl_shader_decompiler: Fix TXQ typesReinUsesLisp
TXQ returns integer types. Shaders usually do: R0 = TXQ(); // => int R0 = static_cast<float>(R0); If we don't treat it as an integer, it will cast a binary float value as float - resulting in a corrupted number.
2019-04-04hle/service: Resolve unused variable warningsLioncash
In several places, we have request parsers where there's nothing to really parse, simply because the HLE function in question operates on buffers. In these cases we can just remove these instances altogether. In the other cases, we can retrieve the relevant members from the parser and at least log them out, giving them some use.
2019-04-04video_core/renderer_opengl: Remove unnecessary includesLioncash
Quite a few unused includes have built up over time, particularly on core/memory.h. Removing these includes means the source files including those files will no longer need to be rebuilt if they're changed, making compilation slightly faster in this scenario.
2019-04-04yuzu/main: Remove unnecessary includesLioncash
While we're at it, don't use <QtGui> and <QtWidgets> and instead include exactly which headers we actually need.
2019-04-04yuzu/main: Use QStringLiteral where applicable within ↵Lioncash
OnTransferableShaderCacheOpenFile() Allows these strings to have no allocation cost when used at runtime.
2019-04-04yuzu/main: Tidy up the error dialog string in ↵Lioncash
OnTransferableShaderCacheOpenFile() Rather than scream that the file doesn't exist, we can clearly state what specifically doesn't exist, to avoid ambiguity, and make it easier to understand for non-primary English speakers/readers.
2019-04-03yuzu/main: Remove unnecessary string concatenation in ↵Lioncash
OnTransferableShaderCacheOpenFile() We can just make the trailing portion of the string part of the formatting, getting rid of the need to make another temporary string.
2019-04-03yuzu/main: Make open_target a QStringLioncash
Simplifies the amount of string conversions necessary. We also don't need to log out what occurs here.
2019-04-03yuzu/main: Use static variant of QFile's exists()Lioncash
There's no need to construct a QFile instance just to check for its existence.
2019-04-03common/lz4_compression: Remove #pragma once directive from the cpp fileLioncash
Introduced within 798d76f4c7018174e58702fb06a042dc8c84f0be, this only really has an effect within header files. Silences a -Wpragma-once-outside-header warning with clang.
2019-04-03Merge pull request #2328 from lioncash/transferbunnei
service/am: Correct behavior of CreateTransferMemoryStorage()
2019-04-03Merge pull request #2095 from FreddyFunk/open-transferable-shader-cachebunnei
frontend: Open transferable shader cache for a selected game in the gamelist
2019-04-03Merge pull request #2093 from FreddyFunk/disk-cache-better-compressionbunnei
Better LZ4 compression utilization for the disk based shader cache and the yuzu build system
2019-04-03Merge pull request #2299 from lioncash/maxwellbunnei
gl_shader_manager: Remove reliance on a global accessor within MaxwellUniformData::SetFromRegs()
2019-04-03Merge pull request #2324 from lioncash/enum-unusedbunnei
kernel/object: Remove unused handle type entry
2019-04-03file_sys/control_metadata: Amend naming of membersLioncash
Quite a bit of these were out of sync with Switchbrew (and in some cases entirely wrong). While we're at it, also expand the section of named members. A segment within the control metadata is used to specify maximum values for the user, device, and cache storage max sizes and journal sizes. These appear to be generally used by the am service (e.g. in CreateCacheStorage, etc).
2019-04-03service/am: Correct behavior of CreateTransferMemoryStorage()Lioncash
For whatever reason, shared memory was being used here instead of transfer memory, which (quite clearly) will not work based off the name of the function. This corrects this wonky usage of shared memory.
2019-04-03kernel/transfer_memory: Add accessors to data and sizesLioncash
Also amend erroneous use of size_t. We should be using u64 here.
2019-04-03Merge pull request #2294 from lioncash/fatalbunnei
service/am: Implement EnterFatalSection/LeaveFatalSection
2019-04-03Merge pull request #2323 from lioncash/includebunnei
yuzu/debugger/profiler: Remove unnecessary includes
2019-04-03Merge pull request #2302 from ReinUsesLisp/vk-swapchainbunnei
vk_swapchain: Implement a swapchain manager
2019-04-03Merge pull request #2305 from lioncash/sharedbunnei
kernel/shared_memory: Sanitize supplied size when unmapping
2019-04-03Merge pull request #2314 from lioncash/constbunnei
kernel/thread: Minor interface cleanup
2019-04-03yuzu/applets/software_keyboard: Use QDialogButtonBox standard buttons ↵Lioncash
instead of custom buttons Like the previous change, this allows Qt to handle proper translations of the UI buttons, rather than us needing to handle it.
2019-04-03yuzu/applets/profile_select: Use QDialogButtonBox standard buttons instead ↵Lioncash
of custom buttons Makes for shorter code, while also not requiring the buttons to be directly translated, they'll be handled by Qt itself.
2019-04-03kernel/object: Remove unused handle type entryLioncash
The AddressArbiter type isn't actually used, given the arbiter itself isn't a direct kernel object (or object that implements the wait object facilities). Given this, we can remove the enum entry entirely.
2019-04-03yuzu/debugger/profiler: Remove unnecessary includesLioncash
Moves includes into the cpp file where necessary. This way, microprofile-related stuff isn't dumped into other UI-related code when the dialog header gets included.
2019-04-02Merge pull request #2270 from lioncash/plistbunnei
kernel/svc: Implement svcGetProcessList and svcGetThreadList
2019-04-02Merge pull request #2313 from lioncash/reslimitbunnei
kernel/resource_limit: Remove the name member from resource limits
2019-04-02kernel/svc: Implement svcGetThreadListLioncash
Similarly like svcGetProcessList, this retrieves the list of threads from the current process. In the kernel itself, a process instance maintains a list of threads, which are used within this function. Threads are registered to a process' thread list at thread initialization, and unregistered from the list upon thread destruction (if said thread has a non-null owning process). We assert on the debug event case, as we currently don't implement kernel debug objects.
2019-04-02kernel/svc: Implement svcGetProcessListLioncash
This service function simply copies out a specified number of kernel process IDs, while simultaneously reporting the total number of processes.
2019-04-02process: Fix up compilationReinUsesLisp
2019-04-01Merge pull request #2281 from lioncash/memorybunnei
kernel/codeset: Make CodeSet's memory data member a regular std::vector
2019-04-01gpu_thread: Improve synchronization by using CoreTiming.bunnei
2019-04-01kernel/thread: Make AllWaitObjectsReady() a const qualified member functionLioncash
Now that ShouldWait() is a const qualified member function, this one can be made const qualified as well, since it can handle passing a const qualified this pointer to ShouldWait().
2019-04-01kernel/wait_object: Make ShouldWait() take thread members by pointer-to-constLioncash
Given this is intended as a querying function, it doesn't make sense to allow the implementer to modify the state of the given thread.
2019-04-01kernel/thread: Avoid sign conversion within GetCommandBufferAddress()Lioncash
Previously this was performing a u64 + int sign conversion. When dealing with addresses, we should generally be keeping the arithmetic in the same signedness type. This also gets rid of the static lifetime of the constant, as there's no need to make a trivial type like this potentially live for the entire duration of the program.
2019-04-01kernel/thread: Make parameter of GetWaitObjectIndex() const qualifiedLioncash
The pointed to member is never actually modified, so it can be made const.
2019-04-01kernel/resource_limit: Remove the name member from resource limitsLioncash
This doesn't really provide any benefit to the resource limit interface. There's no way for callers to any of the service functions for resource limits to provide a custom name, so all created instances of resource limits other than the system resource limit would have a name of "Unknown". The system resource limit itself is already trivially identifiable from its limit values, so there's no real need to take up space in the object to identify one object meaningfully out of N total objects.
2019-04-01Merge pull request #2301 from FearlessTobi/remove-amiibo-settingbunnei
core/yuzu: Remove enable_nfc setting
2019-04-01general: Use deducation guides for std::lock_guard and std::unique_lockLioncash
Since C++17, the introduction of deduction guides for locking facilities means that we no longer need to hardcode the mutex type into the locks themselves, making it easier to switch mutex types, should it ever be necessary in the future.
2019-03-30Merge pull request #2304 from lioncash/memsizebunnei
kernel/process: Report total physical memory used to svcGetInfo slightly better
2019-03-30Merge pull request #2303 from lioncash/threadbunnei
common/thread: Remove unused functions