aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nvflinger/buffer_queue.h
AgeCommit message (Collapse)Author
2022-03-25hle: service: nvflinger: Remove unused BufferQueue.bunnei
2021-12-28Implement few type in bufferqueue query methodFeng Chen
2021-11-03core: Remove unused includesameerj
2021-09-11Merge pull request #6981 from ameerj/nvflinger-hb-formatFernando S
nvflinger: Use external surface format for framebuffer creation
2021-09-06nvflinger: Use external surface format for framebuffer creationameerj
The format member the IGBPBuffer may not always specify the correct desired format. Using the external format member ensures a valid format is provided when creating the framebuffer. Fixes homebrew using the wrong framebuffer format.
2021-09-04core: hle: service: buffer_queue: Improve management of KEvent.bunnei
2021-08-25Revert "kernel: Various improvements to scheduler"bunnei
2021-08-07core: hle: service: buffer_queue: Improve management of KEvent.bunnei
2021-05-16core: Make variable shadowing a compile-time errorLioncash
Now that we have most of core free of shadowing, we can enable the warning as an error to catch anything that may be remaining and also eliminate this class of logic bug entirely.
2021-05-05hle: kernel: Remove deprecated Object class.bunnei
2021-05-05hle: kernel: Migrate KReadableEvent and KWritableEvent to KAutoObject.bunnei
2021-05-05hle: kernel: Migrate KEvent to KAutoObject.bunnei
2021-05-05hle: kernel: Refactor IPC interfaces to not use std::shared_ptr.bunnei
2021-02-05hle: kernel: Reimplement KReadableEvent and KWritableEvent.bunnei
2021-02-05hle: kernel: Rename WritableEvent to KWritableEvent.bunnei
2021-02-05hle: kernel: Rename ReadableEvent to KReadableEvent.bunnei
2021-01-04buffer_queue: Protect queue_sequence list access with a mutexameerj
fixes a data race as this is an unprotected variable manipulated by multiple threads
2020-12-28service: nvflinger: Improve synchronization for BufferQueue.bunnei
- Use proper mechanisms for blocking on DequeueBuffer. - Ensure service thread terminates on emulation Shutdown.
2020-12-17Overwrite slots instead of queuing them, add disconnect signalameerj
Fix for Katana Zero and Yoshi's Crafted World
2020-10-13hle: service: vi: Implement BufferQueue::CancelBuffer.bunnei
- This is used by Super Mario 3D All-Stars.
2020-05-16nv_flinger: Use enum for pixel format instead of u32David Marcec
2020-04-12Merge pull request #3606 from ReinUsesLisp/nvflingerbunnei
service/vi: Partially implement BufferQueue disconnect
2020-04-10Buffer queue: Correct behavior of free buffer.Fernando Sahmkow
This corrects the behavior of free buffer after witnessing it in an unrelated hardware test. I haven't found any games affected by it but in name of better accuracy we'll correct such behavior.
2020-04-10service/vi: Partially implement BufferQueue disconnectReinUsesLisp
2019-11-24kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for ↵bunnei
kernel objects. (#3154) * kernel: Replace usage of boost::intrusive_ptr with std::shared_ptr for kernel objects. - See https://github.com/citra-emu/citra/pull/4710 for details.
2019-10-12nvflinger/buffer_queue: Remove use of a global system accessorLioncash
2019-07-05NVFlinger: Correct GCC compile errorFernando Sahmkow
2019-07-05nvflinger: Acquire buffers in the same order as they were queued.Fernando Sahmkow
2019-07-05nv_services: Correct buffer queue fencing and GPFifo fencingFernando Sahmkow
2019-07-05nvflinger: Implement swap intervalsFernando Sahmkow
2019-02-27common/math_util: Move contents into the Common namespaceLioncash
These types are within the common library, so they should be within the Common namespace.
2019-02-12core_timing: Rename CoreTiming namespace to Core::TimingLioncash
Places all of the timing-related functionality under the existing Core namespace to keep things consistent, rather than having the timing utilities sitting in its own completely separate namespace.
2018-11-29kernel/event: Reference ReadableEvent from WritableEventZach Hilman
2018-11-29core: Port all current usages of Event to Readable/WritableEventZach Hilman
2018-11-04Fix typo in BufferTransformFlagsFrederic Laing
2018-10-30global: Use std::optional instead of boost::optional (#1578)Frederic L
* get rid of boost::optional * Remove optional references * Use std::reference_wrapper for optional references * Fix clang format * Fix clang format part 2 * Adressed feedback * Fix clang format and MacOS build
2018-09-13service: Use nested namespace specifiers where applicableLioncash
There were a few places where nested namespace specifiers weren't being used where they could be within the service code. This amends that to make the namespacing a tiny bit more compact.
2018-09-10hle/service: Default constructors and destructors in the cpp file where ↵Lioncash
applicable When a destructor isn't defaulted into a cpp file, it can cause the use of forward declarations to seemingly fail to compile for non-obvious reasons. It also allows inlining of the construction/destruction logic all over the place where a constructor or destructor is invoked, which can lead to code bloat. This isn't so much a worry here, given the services won't be created and destroyed frequently. The cause of the above mentioned non-obvious errors can be demonstrated as follows: ------- Demonstrative example, if you know how the described error happens, skip forwards ------- Assume we have the following in the header, which we'll call "thing.h": \#include <memory> // Forward declaration. For example purposes, assume the definition // of Object is in some header named "object.h" class Object; class Thing { public: // assume no constructors or destructors are specified here, // or the constructors/destructors are defined as: // // Thing() = default; // ~Thing() = default; // // ... Some interface member functions would be defined here private: std::shared_ptr<Object> obj; }; If this header is included in a cpp file, (which we'll call "main.cpp"), this will result in a compilation error, because even though no destructor is specified, the destructor will still need to be generated by the compiler because std::shared_ptr's destructor is *not* trivial (in other words, it does something other than nothing), as std::shared_ptr's destructor needs to do two things: 1. Decrement the shared reference count of the object being pointed to, and if the reference count decrements to zero, 2. Free the Object instance's memory (aka deallocate the memory it's pointing to). And so the compiler generates the code for the destructor doing this inside main.cpp. Now, keep in mind, the Object forward declaration is not a complete type. All it does is tell the compiler "a type named Object exists" and allows us to use the name in certain situations to avoid a header dependency. So the compiler needs to generate destruction code for Object, but the compiler doesn't know *how* to destruct it. A forward declaration doesn't tell the compiler anything about Object's constructor or destructor. So, the compiler will issue an error in this case because it's undefined behavior to try and deallocate (or construct) an incomplete type and std::shared_ptr and std::unique_ptr make sure this isn't the case internally. Now, if we had defaulted the destructor in "thing.cpp", where we also include "object.h", this would never be an issue, as the destructor would only have its code generated in one place, and it would be in a place where the full class definition of Object would be visible to the compiler. ---------------------- End example ---------------------------- Given these service classes are more than certainly going to change in the future, this defaults the constructors and destructors into the relevant cpp files to make the construction and destruction of all of the services consistent and unlikely to run into cases where forward declarations are indirectly causing compilation errors. It also has the plus of avoiding the need to rebuild several services if destruction logic changes, since it would only be necessary to recompile the single cpp file.
2018-08-10video_core; Get rid of global g_toggle_framelimit_enabled variableLioncash
Instead, we make a struct for renderer settings and allow the renderer to update all of these settings, getting rid of the need for global-scoped variables. This also uncovered a few indirect inclusions for certain headers, which this commit also fixes.
2018-08-09buffer_queue: Make reference parameter of SetPreallocatedBuffer constLioncash
This is simply copied by value, so there's no need to make it a modifiable reference. While we're at it, make the names of the parameters match its definition.
2018-07-17vi: Partially implement buffer crop parameters.bunnei
2018-07-17nvflinger: Fix for BufferQueue event handling.bunnei
2018-04-20Qt: Update the WaitTree widget to show info about the current mutex of each ↵Subv
thread.
2018-04-19service: Use nested namespace specifiers where applicableLioncash
Tidies up namespace declarations
2018-03-23renderer_opengl: Better handling of framebuffer transform flags.bunnei
2018-03-18vi: Remove DequeueBuffer and wait until next available buffer.bunnei
2018-02-11vi: Parse IGBPQueueBufferRequestParcel params and expose buffer flip vertical.bunnei
2018-01-22VI: Move BufferQueue and NVFlinger to their own folder/namespace.Subv