Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implement VI ConvertScalingMode (#1475) | David | 2018-10-16 | 1 | -1/+49 |
| | | | | | | | | * Implement VI ConvertScalingMode * Fixed push enum * Scale mode now uses Nintendo scale mode as an enum as well | ||||
* | Merge pull request #1338 from raven02/service_vi | bunnei | 2018-09-30 | 1 | -1/+19 |
|\ | | | | | Implement ISystemDisplayService::GetDisplayMode | ||||
| * | Implement ISystemDisplayService::GetDisplayMode | raven02 | 2018-09-30 | 1 | -1/+19 |
| | | |||||
* | | Removed the use of rp.MakeBuilder | David Marcec | 2018-09-19 | 1 | -15/+15 |
| | | | | | | | | Due to keeping the code style consistent in the yuzu codebase. `rb = rp.MakeBuilder(...)` was replaced with `rb{ctx, ...}` | ||||
* | | Merge pull request #1312 from lioncash/fwd | bunnei | 2018-09-17 | 1 | -3/+6 |
|\ \ | | | | | | | service/vi: Replace includes with forward declarations where applicable | ||||
| * | | service/vi: Replace includes with forward declarations where applicable | Lioncash | 2018-09-13 | 1 | -3/+6 |
| | | | |||||
* | | | Port #4182 from Citra: "Prefix all size_t with std::" | fearlessTobi | 2018-09-15 | 1 | -4/+4 |
| |/ |/| | |||||
* | | kernel/thread: Include thread-related enums within the kernel namespace | Lioncash | 2018-09-13 | 1 | -1/+1 |
|/ | | | | | | Previously, these were sitting outside of the Kernel namespace, which doesn't really make sense, given they're related to the Thread class which is within the Kernel namespace. | ||||
* | hle/service: Default constructors and destructors in the cpp file where applicable | Lioncash | 2018-09-11 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | vi: Add std::is_trivially_copyable checks to Read and Write functions | Lioncash | 2018-07-23 | 1 | -2/+13 |
| | | | | | | It's undefined behavior to memcpy an object that isn't considered trivially copyable, so put a compile-time check in to make sure this doesn't occur. | ||||
* | vi: std::move std::vector in constructors where applicable | Lioncash | 2018-07-23 | 1 | -9/+9 |
| | | | | | | | Allows avoiding unnecessary copies of the vector depending on the calling code. While we're at it, remove a redundant no-parameter base constructor call | ||||
* | hle/service: Make constructors explicit where applicable | Lioncash | 2018-07-19 | 1 | -2/+2 |
| | | | | | Prevents implicit construction and makes these lingering non-explicit constructors consistent with the rest of the other classes in services. | ||||
* | vi: Change TransactionId::CancelBuffer to LOG_CRITICAL. | bunnei | 2018-07-18 | 1 | -1/+1 |
| | |||||
* | vi: Fix size for ListDisplays default display. | bunnei | 2018-07-18 | 1 | -2/+2 |
| | |||||
* | vi: Partially implement buffer crop parameters. | bunnei | 2018-07-18 | 1 | -4/+10 |
| | |||||
* | nvflinger: Fix for BufferQueue event handling. | bunnei | 2018-07-17 | 1 | -4/+4 |
| | |||||
* | Update clang format | James Rowe | 2018-07-03 | 1 | -3/+3 |
| | |||||
* | Rename logging macro back to LOG_* | James Rowe | 2018-07-03 | 1 | -24/+24 |
| | |||||
* | general: Make formatting of logged hex values more straightforward | Lioncash | 2018-05-02 | 1 | -2/+2 |
| | | | | | | This makes the formatting expectations more obvious (e.g. any zero padding specified is padding that's entirely dedicated to the value being printed, not any pretty-printing that also gets tacked on). | ||||
* | vi: Move logging macros over to new fmt-compatible ones | Lioncash | 2018-04-24 | 1 | -26/+27 |
| | |||||
* | Merge pull request #340 from mailwl/vi-update | bunnei | 2018-04-20 | 1 | -7/+27 |
|\ | | | | | Service/VI: stub SetLayerVisibility, fix GetDisplayResolution output | ||||
| * | Service/VI: stub SetLayerVisibility, fix GetDisplayResolution output | mailwl | 2018-04-17 | 1 | -7/+27 |
| | | | | | | | | | | both SetLayerVisibility() functions used in Lego games, GetDisplayResolution() fixed according switchbrew.org | ||||
* | | Merge pull request #360 from lioncash/namespaces | bunnei | 2018-04-20 | 1 | -4/+2 |
|\ \ | | | | | | | service: Use nested namespace specifiers where applicable | ||||
| * | | service: Use nested namespace specifiers where applicable | Lioncash | 2018-04-20 | 1 | -4/+2 |
| |/ | | | | | | | Tidies up namespace declarations | ||||
* / | vi: Remove redundant initializers in the constructors | Lioncash | 2018-04-20 | 1 | -9/+5 |
|/ | |||||
* | Various service name fixes - part 2 (rebased) (#322) | Hexagon12 | 2018-04-17 | 1 | -1/+112 |
| | | | | | | | | | | | | | | | | * Updated ACC with more service names * Updated SVC with more service names * Updated set with more service names * Updated sockets with more service names * Updated SPL with more service names * Updated time with more service names * Updated vi with more service names | ||||
* | Fixed normal params in GetDisplayResolution | Hexagon12 | 2018-04-13 | 1 | -1/+1 |
| | |||||
* | vi: Implement GetDisplayResolution. | bunnei | 2018-04-03 | 1 | -0/+19 |
| | |||||
* | Service/vi: convert services to module | mailwl | 2018-03-21 | 1 | -109/+133 |
| | |||||
* | Clean Warnings (?) | N00byKing | 2018-03-19 | 1 | -1/+1 |
| | |||||
* | vi: Remove DequeueBuffer and wait until next available buffer. | bunnei | 2018-03-19 | 1 | -6/+24 |
| | |||||
* | Parcel: Ensure we don't read past the end of the parcels in Vi. | Subv | 2018-02-17 | 1 | -0/+5 |
| | |||||
* | Vi: Mark all fences as NO_FENCE in the DequeueBuffer response parcel. | Subv | 2018-02-17 | 1 | -2/+2 |
| | |||||
* | Vi: Always write the IGBPBuffer in the RequestBuffer response parcel. | Subv | 2018-02-17 | 1 | -1/+2 |
| | | | | This may break libnx homebrew due to a bug in libnx but is required by official games since they always assume that the buffer will be there. | ||||
* | Vi: Mark the fences as valid in the DequeueBuffer response parcel. | Subv | 2018-02-15 | 1 | -0/+3 |
| | |||||
* | Vi: Added a missing u32 in the DequeueBuffer response parcel. | Subv | 2018-02-15 | 1 | -0/+1 |
| | |||||
* | Vi: Don't write the IGBPBuffer in the IGBPRequestBufferResponseParcel. | Subv | 2018-02-15 | 1 | -4/+2 |
| | |||||
* | Vi: Properly write the BufferProducerFence object in the DequeueBuffer response parcel. | Subv | 2018-02-15 | 1 | -18/+21 |
| | |||||
* | vi: Eliminate direct usage of BufferDescriptorB. | bunnei | 2018-02-14 | 1 | -14/+3 |
| | |||||
* | vi: Use ReadBuffer/WriteBuffer functions for TransactParcel. | bunnei | 2018-02-14 | 1 | -44/+19 |
| | |||||
* | vi: Fix TransactParcelAuto to support both buffer formats. | bunnei | 2018-02-14 | 1 | -25/+16 |
| | |||||
* | vi: Add FENCE_HACK, which is useful for booting BOTW. | bunnei | 2018-02-13 | 1 | -7/+21 |
| | |||||
* | vi: Stub TransactParcel CancelBuffer. | bunnei | 2018-02-13 | 1 | -0/+2 |
| | |||||
* | TransactParcel: Move WriteBlock to narrowest scope. | bunnei | 2018-02-13 | 1 | -10/+13 |
| | |||||
* | vi: Parse IGBPQueueBufferRequestParcel params and expose buffer flip vertical. | bunnei | 2018-02-12 | 1 | -5/+21 |
| | |||||
* | vi: Fix OpenLayer and CreateStrayLayer. | bunnei | 2018-02-11 | 1 | -6/+8 |
| | |||||
* | vi: Implement TransactParcelAuto. | bunnei | 2018-02-10 | 1 | -32/+46 |
| | |||||
* | IGBPQueueBufferRequestParcel: Don't enforce buffer length. | bunnei | 2018-02-10 | 1 | -1/+0 |
| | | | | - Another fix for libnx. | ||||
* | IGBPRequestBufferResponseParcel: Fix response for libnx. | bunnei | 2018-02-10 | 1 | -7/+4 |
| | |||||
* | IApplicationDisplayService::CloseDisplay: Fix response params size. | bunnei | 2018-02-09 | 1 | -1/+1 |
| | |||||
* | Service: stub some functions in am, audio, time, vi services | mailwl | 2018-02-07 | 1 | -1/+21 |
| | |||||
* | logger: Add VI service logging category. | bunnei | 2018-02-05 | 1 | -18/+17 |
| | |||||
* | Merge pull request #154 from mailwl/vi_create_stray_array | bunnei | 2018-02-02 | 1 | -0/+1 |
|\ | | | | | vi::CreateStrayLayer : add padding to request | ||||
| * | vi::CreateStrayLayer : add padding to request | mailwl | 2018-02-02 | 1 | -0/+1 |
| | | |||||
* | | Services/vi: add vi:s and vi:u services | mailwl | 2018-02-02 | 1 | -0/+4 |
|/ | |||||
* | hle: Rename RequestBuilder to ResponseBuilder. | bunnei | 2018-01-25 | 1 | -18/+18 |
| | |||||
* | service: Fix all incorrect IPC response headers. | bunnei | 2018-01-25 | 1 | -4/+4 |
| | |||||
* | Services: Vi shouldn't be responsible for creating nvflinger. | Subv | 2018-01-22 | 1 | -2/+3 |
| | | | | It is now created during Service initialization and passed to all the services that need it. | ||||
* | VI: Move BufferQueue and NVFlinger to their own folder/namespace. | Subv | 2018-01-22 | 1 | -234/+16 |
| | |||||
* | VI: Implement the Query transaction of IHOSBinderDriver, and stubbed some results. | Subv | 2018-01-21 | 1 | -0/+51 |
| | |||||
* | Fixes some cast warnings, partial port of citra #3064 (#106) | River City Ransomware | 2018-01-20 | 1 | -1/+1 |
| | | | | | | | | * Fixes some cast warnings, partially fixes citra #3064 * Converted casts to uint32_t to u32 * Ran clang-format | ||||
* | Fix dispdrv typo | gdkchan | 2018-01-19 | 1 | -1/+1 |
| | |||||
* | Merge pull request #90 from lioncash/vi-override | bunnei | 2018-01-18 | 1 | -20/+21 |
|\ | | | | | vi: Minor clean up/correctness changes | ||||
| * | vi: Make constructors explicit where applicable | Lioncash | 2018-01-18 | 1 | -13/+14 |
| | | | | | | | | Prevents implicit conversions. | ||||
| * | vi: Add missing override specifiers | Lioncash | 2018-01-18 | 1 | -7/+7 |
| | | |||||
* | | vi: Copy data directly into the std::vector within Parcel's ReadBlock function | Lioncash | 2018-01-18 | 1 | -2/+3 |
|/ | | | | | Previously this would unnecessarily zero-initialize the vector before copying the actual data into the vector instance. | ||||
* | NV: Move the nvdrv classes into the Nvidia namespace, and move the functionality to a s single module that services call. | Subv | 2018-01-17 | 1 | -3/+3 |
| | |||||
* | VI: Stubbed GetNativeHandle, Create/DestroyStrayLayer and CloseDisplay | Subv | 2018-01-17 | 1 | -3/+76 |
| | |||||
* | vi: Add IManagerDisplayService::CloseDisplay function | bsaleil | 2018-01-15 | 1 | -0/+10 |
| | |||||
* | renderer: Render previous frame when no new one is available. | bunnei | 2018-01-15 | 1 | -1/+4 |
| | |||||
* | yuzu: Update license text to be consistent across project. | bunnei | 2018-01-13 | 1 | -1/+1 |
| | |||||
* | core: Include <algorithm> where used. | bunnei | 2018-01-12 | 1 | -0/+2 |
| | |||||
* | NV: Move the nv device nodes to their own directory and namespace. | Subv | 2018-01-11 | 1 | -1/+2 |
| | |||||
* | VI: Use a Pulse event instead of OneShot for the vblank events. | Subv | 2018-01-11 | 1 | -1/+1 |
| | | | | This prevents missing frames if the vblank fires between the DequeueBuffer and Wait(vsync) calls | ||||
* | NV: Expose the nvdisp_disp0 device and a weak reference to the nvdrv:a service. | Subv | 2018-01-11 | 1 | -1/+14 |
| | | | | | | NVFlinger will call into the nvdisp_disp0 device to perform screen flips, bypassing the ioctl interface. We now have the address of the framebuffer to draw, we just need to actually put it on the screen. | ||||
* | NV: Determine what buffer to draw for each layer of each display. | Subv | 2018-01-11 | 1 | -5/+47 |
| | | | | | | Don't try to draw buffers that the guest application is using, only queued buffers are eligible for drawing. Drawing actual pixels is still not implemented. | ||||
* | NV: Signal all display's vsync event 60 times per second. | Subv | 2018-01-11 | 1 | -0/+24 |
| | |||||
* | NV: Give each display its own vsync event. | Subv | 2018-01-11 | 1 | -8/+17 |
| | |||||
* | NV: Keep track of Displays, Layers and BufferQueues in nvflinger. | Subv | 2018-01-11 | 1 | -39/+160 |
| | |||||
* | NV: Implemented (with stubs) the vi:m service and some of its subservices. | Subv | 2018-01-11 | 1 | -0/+628 |
The homebrew display test application now properly writes graphics data to the graphics buffer but we still don't have a way to compose the display layers. |