Lioncash
3a67c46490
input_common/sdl_impl: Make lambda capture more specific in SDLState constructor
We don't need to universally capture by reference. We specifically just
need to capture the this pointer.
7 years ago
Lioncash
ddbcc91a56
input_common/sdl_impl: Remove unnecessary std::chrono::duration construction
Specifying the time unit itself is sufficient here.
7 years ago
Lioncash
4eeedd0436
input_common/sdl_impl: Remove unused variable in SDLState constructor
7 years ago
Lioncash
8a5b2ec7b0
CMakeLists: Move compilation flags into the src directory
We generally shouldn't be hijacking CMAKE_CXX_FLAGS, etc as a means to
append flags to the targets, since this adds the compilation flags to
everything, including our externals, which can result in weird issues
and makes the build hierarchy fragile.
Instead, we want to just apply these compilation flags to our targets,
and let those managing external libraries to properly specify their
compilation flags.
This also results in us not getting as many warnings, as we don't raise
the warning level on every external target.
7 years ago
bunnei
8c959b8840
Merge pull request #2251 from bunnei/skip-zero-flush
gl_rasterizer: Skip zero addr/sized regions on flush/invalidate.
7 years ago
bunnei
a6d95b3d84
Merge pull request #2249 from lioncash/ipc
ipc_helpers: Allow pushing and popping floating-point values
7 years ago
bunnei
06ee19dce0
Merge pull request #2246 from lioncash/opus-fork
externals: Update opus to latest master
7 years ago
bunnei
dd5334a70c
Merge pull request #2245 from lioncash/unused-def
kernel/thread: Actually remove the definition of ExitCurrentThread()
7 years ago
bunnei
5840ce2950
core: Move PageTable struct into Common.
7 years ago
bunnei
65db8f5f47
gl_rasterizer: Skip zero addr/sized regions on flush/invalidate.
7 years ago
bunnei
c30ea8aa0d
Merge pull request #2244 from bunnei/gpu-mem-refactor
video_core: Refactor to use MemoryManager interface for all memory access.
7 years ago
bunnei
d0e3aca4b1
Merge pull request #2243 from bunnei/mem-simplify-cache
memory: Simplify rasterizer cache operations.
7 years ago
bunnei
2ad9af464a
Merge pull request #2129 from FernandoS27/cntpct
Correct CNTPCT from using CPU Cycles to using Clock Cycles
7 years ago
Lioncash
e6f8a5c934
ipc_helpers: Allow pushing and popping floating-point values
Certain values that are passed through the IPC buffer are actually
floating point values, not solely integral values.
7 years ago
Lioncash
58312f2968
common/thread_queue_list: Remove unnecessary dependency on boost
We really don't need to pull in several headers of boost related
machinery just to perform the erase-remove idiom (particularly with
C++20 around the corner, which adds universal container std::erase and
std::erase_if, which we can just use instead).
With this, we don't need to link in anything boost-related into common.
7 years ago
Lioncash
43be3c1d8a
externals: Update opus to latest master
Prevents yuzu from getting 2000+ warnings in MSVC in a future change.
7 years ago
Lioncash
6e56eb5205
kernel/thread: Actually remove the definition of ExitCurrentThread()
This was intended to be removed in
0032bede5a , but I guess I forgot to
actually save the file like a dingus.
7 years ago
bunnei
43e9563fe0
Merge pull request #2241 from lioncash/compile-flags
CMakeLists: Remove now-unnecessary GCC special-casing
7 years ago
bunnei
238a5ac1a7
Merge pull request #2242 from lioncash/thread-fn
kernel/thread: Remove WaitCurrentThread_Sleep() and ExitCurrentThread()
7 years ago
bunnei
ee8ae39de5
memory: Simplify rasterizer cache operations.
7 years ago
bunnei
d3f26c1546
video_core: Refactor to use MemoryManager interface for all memory access.
# Conflicts:
# src/video_core/engines/kepler_memory.cpp
# src/video_core/engines/maxwell_3d.cpp
# src/video_core/morton.cpp
# src/video_core/morton.h
# src/video_core/renderer_opengl/gl_global_cache.cpp
# src/video_core/renderer_opengl/gl_global_cache.h
# src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
7 years ago
bunnei
25de9134e7
Merge pull request #2237 from bunnei/cache-host-addr
gpu: Use host address for caching instead of guest address.
7 years ago
Lioncash
0032bede5a
kernel/thread: Move thread exiting logic from ExitCurrentThread to svcExitThread
Puts the operation on global state in the same places as the rest of the
svc calls.
7 years ago
Lioncash
cfb327a85b
kernel/thread: Migrate WaitCurrentThread_Sleep into the Thread interface
Rather than make a global accessor for this sort of thing. We can make
it a part of the thread interface itself. This allows getting rid of a
hidden global accessor in the kernel code.
7 years ago
Lioncash
793d3102c2
kernel/thread: Expand documentation of nominal_priority and current_priority
Aims to disambiguate why each priority instance exists a little bit.
While we're at it, also add an explanatory comment to UpdatePriority().
7 years ago
Lioncash
c92e8f4e30
kernel/thread: Make bracing consistent within UpdatePriority()
7 years ago
Lioncash
f68087ce12
kernel/thread: Amend condition within UpdatePriority()
This condition was checking against the nominal thread priority, whereas
the kernel itself checks against the current priority instead. We were
also assigning the nominal priority, when we should be assigning
current_priority, which takes priority inheritance into account.
This can lead to the incorrect priority being assigned to a thread.
Given we recursively update the relevant threads, we don't need to go
through the whole mutex waiter list. This matches what the kernel does
as well (only accessing the first entry within the waiting list).
7 years ago
Lioncash
8b4380a068
kernel/thread: Maintain priority ordering of added mutex waiting threads
The kernel keeps the internal waiting list ordered by priority. This is
trivial to do with std::find_if followed by an insertion.
7 years ago
bunnei
75e826199f
Merge pull request #2048 from FearlessTobi/port-3924
Port citra-emu/citra#3924 : "citra_qt: Settings (configuration) rework"
7 years ago
Lioncash
b87f456d0c
CMakeLists: Remove now-unnecessary GCC special-casing
This issue has since been fixed in newer versions of Boost, so we don't
need to worry about this anymore.
7 years ago
liushuyu
193a07e418
frontend: qt: fix a freeze where if you click on entry in the game list too fast, citra will hang
7 years ago
bunnei
7fccfc3ee7
gpu: Use host address for caching instead of guest address.
7 years ago
bunnei
e400f8b65f
Merge pull request #2233 from ReinUsesLisp/morton-cleanup
video_core/morton: Miscellaneous changes
7 years ago
bunnei
5e4baabe78
Merge pull request #2229 from ReinUsesLisp/vk-sampler-cache
vk_sampler_cache: Implement a sampler cache
7 years ago
Lioncash
1656ea7235
core/hle/kernel/mutex: Remove usages of global system accessors
Removes the use of global system accessors, and instead uses the
explicit interface provided.
7 years ago
Lioncash
423a2ef536
core/hle/kernel: Make Mutex a per-process class.
Makes it an instantiable class like it is in the actual kernel. This
will also allow removing reliance on global accessors in a following
change, now that we can encapsulate a reference to the system instance
in the class.
7 years ago
bunnei
1ee5f28ab1
Merge pull request #2230 from lioncash/global
kernel/process: Remove use of global system accessors
7 years ago
bunnei
7cf17f50d9
Merge pull request #2216 from ReinUsesLisp/rasterizer-system
gl_rasterizer: Use system instance passed from argument
7 years ago
bunnei
504f56e33a
Merge pull request #2227 from lioncash/override
renderer_opengl/gl_global_cache: Add missing override specifiers
7 years ago
ReinUsesLisp
7db0e52458
video_core/morton: Use enum to describe MortonCopyPixels128 mode
7 years ago
ReinUsesLisp
91423268d3
video_core/morton: Remove unused parameter in MortonSwizzle
7 years ago
ReinUsesLisp
0c17b26ef8
video_core/morton: Remove clang-format off when it's not needed
7 years ago
ReinUsesLisp
369409d4f7
video_core/morton: Remove unused functions
7 years ago
bunnei
8420255bf9
Merge pull request #2226 from lioncash/private
kernel/server_port: Make data members private
7 years ago
bunnei
4bd4f3980b
Merge pull request #2223 from lioncash/error
core/hle/result: Tidy up the base error code result header.
7 years ago
bunnei
fe4ca1de08
Merge pull request #2187 from FearlessTobi/port-sdl-things
Port various Citra changes to input_common, including deadzone support
7 years ago
bunnei
060115895b
Merge pull request #2166 from lioncash/vi-init-service
service/vi: Unstub GetDisplayService
7 years ago
bunnei
97f9a1fbe4
Merge pull request #2231 from ReinUsesLisp/fixup-bias
video_core/texture: Fix up sampler lod bias
7 years ago
Lioncash
181a086337
core/hle/kernel/svc: Implement svcUnmapTransferMemory
Similarly, like svcMapTransferMemory, we can also implement
svcUnmapTransferMemory fairly trivially as well.
7 years ago
Lioncash
11670dd35a
core/hle/kernel/svc: Implement svcMapTransferMemory
Now that transfer memory handling is separated from shared memory, we
can implement svcMapTransferMemory pretty trivially.
7 years ago