summaryrefslogtreecommitdiff
path: root/src/core/hle/service/vi
diff options
context:
space:
mode:
authorGravatar Liam2023-02-19 15:05:34 -0500
committerGravatar Liam2023-03-01 10:39:49 -0500
commit809148e1a58296ab88c9d3c6719d345f35ce0279 (patch)
tree8db1dcd33eabde75ca55ceafc6fb380d5f007e50 /src/core/hle/service/vi
parentservice: move hle_ipc from kernel (diff)
downloadyuzu-809148e1a58296ab88c9d3c6719d345f35ce0279.tar.gz
yuzu-809148e1a58296ab88c9d3c6719d345f35ce0279.tar.xz
yuzu-809148e1a58296ab88c9d3c6719d345f35ce0279.zip
nvnflinger: fix name
Diffstat (limited to 'src/core/hle/service/vi')
-rw-r--r--src/core/hle/service/vi/display/vi_display.cpp12
-rw-r--r--src/core/hle/service/vi/display/vi_display.h8
-rw-r--r--src/core/hle/service/vi/vi.cpp34
-rw-r--r--src/core/hle/service/vi/vi.h14
-rw-r--r--src/core/hle/service/vi/vi_m.cpp4
-rw-r--r--src/core/hle/service/vi/vi_m.h14
-rw-r--r--src/core/hle/service/vi/vi_s.cpp4
-rw-r--r--src/core/hle/service/vi/vi_s.h14
-rw-r--r--src/core/hle/service/vi/vi_u.cpp4
-rw-r--r--src/core/hle/service/vi/vi_u.h14
10 files changed, 61 insertions, 61 deletions
diff --git a/src/core/hle/service/vi/display/vi_display.cpp b/src/core/hle/service/vi/display/vi_display.cpp
index 8ef74f1f0..69af2868a 100644
--- a/src/core/hle/service/vi/display/vi_display.cpp
+++ b/src/core/hle/service/vi/display/vi_display.cpp
@@ -12,11 +12,11 @@
12#include "core/hle/kernel/k_readable_event.h" 12#include "core/hle/kernel/k_readable_event.h"
13#include "core/hle/service/kernel_helpers.h" 13#include "core/hle/service/kernel_helpers.h"
14#include "core/hle/service/nvdrv/core/container.h" 14#include "core/hle/service/nvdrv/core/container.h"
15#include "core/hle/service/nvflinger/buffer_item_consumer.h" 15#include "core/hle/service/nvnflinger/buffer_item_consumer.h"
16#include "core/hle/service/nvflinger/buffer_queue_consumer.h" 16#include "core/hle/service/nvnflinger/buffer_queue_consumer.h"
17#include "core/hle/service/nvflinger/buffer_queue_core.h" 17#include "core/hle/service/nvnflinger/buffer_queue_core.h"
18#include "core/hle/service/nvflinger/buffer_queue_producer.h" 18#include "core/hle/service/nvnflinger/buffer_queue_producer.h"
19#include "core/hle/service/nvflinger/hos_binder_driver_server.h" 19#include "core/hle/service/nvnflinger/hos_binder_driver_server.h"
20#include "core/hle/service/vi/display/vi_display.h" 20#include "core/hle/service/vi/display/vi_display.h"
21#include "core/hle/service/vi/layer/vi_layer.h" 21#include "core/hle/service/vi/layer/vi_layer.h"
22#include "core/hle/service/vi/vi_results.h" 22#include "core/hle/service/vi/vi_results.h"
@@ -39,7 +39,7 @@ static BufferQueue CreateBufferQueue(KernelHelpers::ServiceContext& service_cont
39} 39}
40 40
41Display::Display(u64 id, std::string name_, 41Display::Display(u64 id, std::string name_,
42 NVFlinger::HosBinderDriverServer& hos_binder_driver_server_, 42 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_,
43 KernelHelpers::ServiceContext& service_context_, Core::System& system_) 43 KernelHelpers::ServiceContext& service_context_, Core::System& system_)
44 : display_id{id}, name{std::move(name_)}, hos_binder_driver_server{hos_binder_driver_server_}, 44 : display_id{id}, name{std::move(name_)}, hos_binder_driver_server{hos_binder_driver_server_},
45 service_context{service_context_} { 45 service_context{service_context_} {
diff --git a/src/core/hle/service/vi/display/vi_display.h b/src/core/hle/service/vi/display/vi_display.h
index 0b65a65da..3f31d1f32 100644
--- a/src/core/hle/service/vi/display/vi_display.h
+++ b/src/core/hle/service/vi/display/vi_display.h
@@ -23,7 +23,7 @@ namespace Service::KernelHelpers {
23class ServiceContext; 23class ServiceContext;
24} 24}
25 25
26namespace Service::NVFlinger { 26namespace Service::Nvnflinger {
27class HosBinderDriverServer; 27class HosBinderDriverServer;
28} 28}
29 29
@@ -45,12 +45,12 @@ public:
45 /// Constructs a display with a given unique ID and name. 45 /// Constructs a display with a given unique ID and name.
46 /// 46 ///
47 /// @param id The unique ID for this display. 47 /// @param id The unique ID for this display.
48 /// @param hos_binder_driver_server_ NVFlinger HOSBinderDriver server instance. 48 /// @param hos_binder_driver_server_ Nvnflinger HOSBinderDriver server instance.
49 /// @param service_context_ The ServiceContext for the owning service. 49 /// @param service_context_ The ServiceContext for the owning service.
50 /// @param name_ The name for this display. 50 /// @param name_ The name for this display.
51 /// @param system_ The global system instance. 51 /// @param system_ The global system instance.
52 /// 52 ///
53 Display(u64 id, std::string name_, NVFlinger::HosBinderDriverServer& hos_binder_driver_server_, 53 Display(u64 id, std::string name_, Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_,
54 KernelHelpers::ServiceContext& service_context_, Core::System& system_); 54 KernelHelpers::ServiceContext& service_context_, Core::System& system_);
55 ~Display(); 55 ~Display();
56 56
@@ -133,7 +133,7 @@ public:
133private: 133private:
134 u64 display_id; 134 u64 display_id;
135 std::string name; 135 std::string name;
136 NVFlinger::HosBinderDriverServer& hos_binder_driver_server; 136 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server;
137 KernelHelpers::ServiceContext& service_context; 137 KernelHelpers::ServiceContext& service_context;
138 138
139 std::vector<std::unique_ptr<Layer>> layers; 139 std::vector<std::unique_ptr<Layer>> layers;
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index fca076d7a..68eab5133 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -21,11 +21,11 @@
21#include "core/hle/kernel/k_thread.h" 21#include "core/hle/kernel/k_thread.h"
22#include "core/hle/service/ipc_helpers.h" 22#include "core/hle/service/ipc_helpers.h"
23#include "core/hle/service/nvdrv/nvdata.h" 23#include "core/hle/service/nvdrv/nvdata.h"
24#include "core/hle/service/nvflinger/binder.h" 24#include "core/hle/service/nvnflinger/binder.h"
25#include "core/hle/service/nvflinger/buffer_queue_producer.h" 25#include "core/hle/service/nvnflinger/buffer_queue_producer.h"
26#include "core/hle/service/nvflinger/hos_binder_driver_server.h" 26#include "core/hle/service/nvnflinger/hos_binder_driver_server.h"
27#include "core/hle/service/nvflinger/nvflinger.h" 27#include "core/hle/service/nvnflinger/nvnflinger.h"
28#include "core/hle/service/nvflinger/parcel.h" 28#include "core/hle/service/nvnflinger/parcel.h"
29#include "core/hle/service/server_manager.h" 29#include "core/hle/service/server_manager.h"
30#include "core/hle/service/service.h" 30#include "core/hle/service/service.h"
31#include "core/hle/service/vi/vi.h" 31#include "core/hle/service/vi/vi.h"
@@ -73,7 +73,7 @@ static_assert(sizeof(NativeWindow) == 0x28, "NativeWindow has wrong size");
73 73
74class IHOSBinderDriver final : public ServiceFramework<IHOSBinderDriver> { 74class IHOSBinderDriver final : public ServiceFramework<IHOSBinderDriver> {
75public: 75public:
76 explicit IHOSBinderDriver(Core::System& system_, NVFlinger::HosBinderDriverServer& server_) 76 explicit IHOSBinderDriver(Core::System& system_, Nvnflinger::HosBinderDriverServer& server_)
77 : ServiceFramework{system_, "IHOSBinderDriver"}, server(server_) { 77 : ServiceFramework{system_, "IHOSBinderDriver"}, server(server_) {
78 static const FunctionInfo functions[] = { 78 static const FunctionInfo functions[] = {
79 {0, &IHOSBinderDriver::TransactParcel, "TransactParcel"}, 79 {0, &IHOSBinderDriver::TransactParcel, "TransactParcel"},
@@ -126,7 +126,7 @@ private:
126 } 126 }
127 127
128private: 128private:
129 NVFlinger::HosBinderDriverServer& server; 129 Nvnflinger::HosBinderDriverServer& server;
130}; 130};
131 131
132class ISystemDisplayService final : public ServiceFramework<ISystemDisplayService> { 132class ISystemDisplayService final : public ServiceFramework<ISystemDisplayService> {
@@ -232,7 +232,7 @@ private:
232 232
233class IManagerDisplayService final : public ServiceFramework<IManagerDisplayService> { 233class IManagerDisplayService final : public ServiceFramework<IManagerDisplayService> {
234public: 234public:
235 explicit IManagerDisplayService(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_) 235 explicit IManagerDisplayService(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_)
236 : ServiceFramework{system_, "IManagerDisplayService"}, nv_flinger{nv_flinger_} { 236 : ServiceFramework{system_, "IManagerDisplayService"}, nv_flinger{nv_flinger_} {
237 // clang-format off 237 // clang-format off
238 static const FunctionInfo functions[] = { 238 static const FunctionInfo functions[] = {
@@ -383,13 +383,13 @@ private:
383 rb.Push(ResultSuccess); 383 rb.Push(ResultSuccess);
384 } 384 }
385 385
386 NVFlinger::NVFlinger& nv_flinger; 386 Nvnflinger::Nvnflinger& nv_flinger;
387}; 387};
388 388
389class IApplicationDisplayService final : public ServiceFramework<IApplicationDisplayService> { 389class IApplicationDisplayService final : public ServiceFramework<IApplicationDisplayService> {
390public: 390public:
391 IApplicationDisplayService(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_, 391 IApplicationDisplayService(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
392 NVFlinger::HosBinderDriverServer& hos_binder_driver_server_) 392 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_)
393 : ServiceFramework{system_, "IApplicationDisplayService"}, nv_flinger{nv_flinger_}, 393 : ServiceFramework{system_, "IApplicationDisplayService"}, nv_flinger{nv_flinger_},
394 hos_binder_driver_server{hos_binder_driver_server_} { 394 hos_binder_driver_server{hos_binder_driver_server_} {
395 395
@@ -774,8 +774,8 @@ private:
774 } 774 }
775 } 775 }
776 776
777 NVFlinger::NVFlinger& nv_flinger; 777 Nvnflinger::Nvnflinger& nv_flinger;
778 NVFlinger::HosBinderDriverServer& hos_binder_driver_server; 778 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server;
779}; 779};
780 780
781static bool IsValidServiceAccess(Permission permission, Policy policy) { 781static bool IsValidServiceAccess(Permission permission, Policy policy) {
@@ -791,8 +791,8 @@ static bool IsValidServiceAccess(Permission permission, Policy policy) {
791} 791}
792 792
793void detail::GetDisplayServiceImpl(HLERequestContext& ctx, Core::System& system, 793void detail::GetDisplayServiceImpl(HLERequestContext& ctx, Core::System& system,
794 NVFlinger::NVFlinger& nv_flinger, 794 Nvnflinger::Nvnflinger& nv_flinger,
795 NVFlinger::HosBinderDriverServer& hos_binder_driver_server, 795 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server,
796 Permission permission) { 796 Permission permission) {
797 IPC::RequestParser rp{ctx}; 797 IPC::RequestParser rp{ctx};
798 const auto policy = rp.PopEnum<Policy>(); 798 const auto policy = rp.PopEnum<Policy>();
@@ -809,8 +809,8 @@ void detail::GetDisplayServiceImpl(HLERequestContext& ctx, Core::System& system,
809 rb.PushIpcInterface<IApplicationDisplayService>(system, nv_flinger, hos_binder_driver_server); 809 rb.PushIpcInterface<IApplicationDisplayService>(system, nv_flinger, hos_binder_driver_server);
810} 810}
811 811
812void LoopProcess(Core::System& system, NVFlinger::NVFlinger& nv_flinger, 812void LoopProcess(Core::System& system, Nvnflinger::Nvnflinger& nv_flinger,
813 NVFlinger::HosBinderDriverServer& hos_binder_driver_server) { 813 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server) {
814 auto server_manager = std::make_unique<ServerManager>(system); 814 auto server_manager = std::make_unique<ServerManager>(system);
815 815
816 server_manager->RegisterNamedService( 816 server_manager->RegisterNamedService(
diff --git a/src/core/hle/service/vi/vi.h b/src/core/hle/service/vi/vi.h
index 48b2f30aa..a35b62f97 100644
--- a/src/core/hle/service/vi/vi.h
+++ b/src/core/hle/service/vi/vi.h
@@ -13,10 +13,10 @@ namespace Service {
13class HLERequestContext; 13class HLERequestContext;
14} 14}
15 15
16namespace Service::NVFlinger { 16namespace Service::Nvnflinger {
17class HosBinderDriverServer; 17class HosBinderDriverServer;
18class NVFlinger; 18class Nvnflinger;
19} // namespace Service::NVFlinger 19} // namespace Service::Nvnflinger
20 20
21namespace Service::VI { 21namespace Service::VI {
22 22
@@ -43,12 +43,12 @@ enum class Policy {
43 43
44namespace detail { 44namespace detail {
45void GetDisplayServiceImpl(HLERequestContext& ctx, Core::System& system, 45void GetDisplayServiceImpl(HLERequestContext& ctx, Core::System& system,
46 NVFlinger::NVFlinger& nv_flinger, 46 Nvnflinger::Nvnflinger& nv_flinger,
47 NVFlinger::HosBinderDriverServer& hos_binder_driver_server, 47 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server,
48 Permission permission); 48 Permission permission);
49} // namespace detail 49} // namespace detail
50 50
51void LoopProcess(Core::System& system, NVFlinger::NVFlinger& nv_flinger, 51void LoopProcess(Core::System& system, Nvnflinger::Nvnflinger& nv_flinger,
52 NVFlinger::HosBinderDriverServer& hos_binder_driver_server); 52 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server);
53 53
54} // namespace Service::VI 54} // namespace Service::VI
diff --git a/src/core/hle/service/vi/vi_m.cpp b/src/core/hle/service/vi/vi_m.cpp
index 019e55811..0f06dc2f3 100644
--- a/src/core/hle/service/vi/vi_m.cpp
+++ b/src/core/hle/service/vi/vi_m.cpp
@@ -7,8 +7,8 @@
7 7
8namespace Service::VI { 8namespace Service::VI {
9 9
10VI_M::VI_M(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_, 10VI_M::VI_M(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
11 NVFlinger::HosBinderDriverServer& hos_binder_driver_server_) 11 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_)
12 : ServiceFramework{system_, "vi:m"}, nv_flinger{nv_flinger_}, hos_binder_driver_server{ 12 : ServiceFramework{system_, "vi:m"}, nv_flinger{nv_flinger_}, hos_binder_driver_server{
13 hos_binder_driver_server_} { 13 hos_binder_driver_server_} {
14 static const FunctionInfo functions[] = { 14 static const FunctionInfo functions[] = {
diff --git a/src/core/hle/service/vi/vi_m.h b/src/core/hle/service/vi/vi_m.h
index 392da04a3..9ca6f3905 100644
--- a/src/core/hle/service/vi/vi_m.h
+++ b/src/core/hle/service/vi/vi_m.h
@@ -9,24 +9,24 @@ namespace Core {
9class System; 9class System;
10} 10}
11 11
12namespace Service::NVFlinger { 12namespace Service::Nvnflinger {
13class HosBinderDriverServer; 13class HosBinderDriverServer;
14class NVFlinger; 14class Nvnflinger;
15} // namespace Service::NVFlinger 15} // namespace Service::Nvnflinger
16 16
17namespace Service::VI { 17namespace Service::VI {
18 18
19class VI_M final : public ServiceFramework<VI_M> { 19class VI_M final : public ServiceFramework<VI_M> {
20public: 20public:
21 explicit VI_M(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_, 21 explicit VI_M(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
22 NVFlinger::HosBinderDriverServer& hos_binder_driver_server_); 22 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_);
23 ~VI_M() override; 23 ~VI_M() override;
24 24
25private: 25private:
26 void GetDisplayService(HLERequestContext& ctx); 26 void GetDisplayService(HLERequestContext& ctx);
27 27
28 NVFlinger::NVFlinger& nv_flinger; 28 Nvnflinger::Nvnflinger& nv_flinger;
29 NVFlinger::HosBinderDriverServer& hos_binder_driver_server; 29 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server;
30}; 30};
31 31
32} // namespace Service::VI 32} // namespace Service::VI
diff --git a/src/core/hle/service/vi/vi_s.cpp b/src/core/hle/service/vi/vi_s.cpp
index 901c5988e..77f7a88ff 100644
--- a/src/core/hle/service/vi/vi_s.cpp
+++ b/src/core/hle/service/vi/vi_s.cpp
@@ -7,8 +7,8 @@
7 7
8namespace Service::VI { 8namespace Service::VI {
9 9
10VI_S::VI_S(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_, 10VI_S::VI_S(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
11 NVFlinger::HosBinderDriverServer& hos_binder_driver_server_) 11 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_)
12 : ServiceFramework{system_, "vi:s"}, nv_flinger{nv_flinger_}, hos_binder_driver_server{ 12 : ServiceFramework{system_, "vi:s"}, nv_flinger{nv_flinger_}, hos_binder_driver_server{
13 hos_binder_driver_server_} { 13 hos_binder_driver_server_} {
14 static const FunctionInfo functions[] = { 14 static const FunctionInfo functions[] = {
diff --git a/src/core/hle/service/vi/vi_s.h b/src/core/hle/service/vi/vi_s.h
index 34282fcfd..157839c91 100644
--- a/src/core/hle/service/vi/vi_s.h
+++ b/src/core/hle/service/vi/vi_s.h
@@ -9,24 +9,24 @@ namespace Core {
9class System; 9class System;
10} 10}
11 11
12namespace Service::NVFlinger { 12namespace Service::Nvnflinger {
13class HosBinderDriverServer; 13class HosBinderDriverServer;
14class NVFlinger; 14class Nvnflinger;
15} // namespace Service::NVFlinger 15} // namespace Service::Nvnflinger
16 16
17namespace Service::VI { 17namespace Service::VI {
18 18
19class VI_S final : public ServiceFramework<VI_S> { 19class VI_S final : public ServiceFramework<VI_S> {
20public: 20public:
21 explicit VI_S(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_, 21 explicit VI_S(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
22 NVFlinger::HosBinderDriverServer& hos_binder_driver_server_); 22 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_);
23 ~VI_S() override; 23 ~VI_S() override;
24 24
25private: 25private:
26 void GetDisplayService(HLERequestContext& ctx); 26 void GetDisplayService(HLERequestContext& ctx);
27 27
28 NVFlinger::NVFlinger& nv_flinger; 28 Nvnflinger::Nvnflinger& nv_flinger;
29 NVFlinger::HosBinderDriverServer& hos_binder_driver_server; 29 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server;
30}; 30};
31 31
32} // namespace Service::VI 32} // namespace Service::VI
diff --git a/src/core/hle/service/vi/vi_u.cpp b/src/core/hle/service/vi/vi_u.cpp
index 08c5cf486..59e13c86b 100644
--- a/src/core/hle/service/vi/vi_u.cpp
+++ b/src/core/hle/service/vi/vi_u.cpp
@@ -7,8 +7,8 @@
7 7
8namespace Service::VI { 8namespace Service::VI {
9 9
10VI_U::VI_U(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_, 10VI_U::VI_U(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
11 NVFlinger::HosBinderDriverServer& hos_binder_driver_server_) 11 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_)
12 : ServiceFramework{system_, "vi:u"}, nv_flinger{nv_flinger_}, hos_binder_driver_server{ 12 : ServiceFramework{system_, "vi:u"}, nv_flinger{nv_flinger_}, hos_binder_driver_server{
13 hos_binder_driver_server_} { 13 hos_binder_driver_server_} {
14 static const FunctionInfo functions[] = { 14 static const FunctionInfo functions[] = {
diff --git a/src/core/hle/service/vi/vi_u.h b/src/core/hle/service/vi/vi_u.h
index 8b0a8dd02..5d9ca54c6 100644
--- a/src/core/hle/service/vi/vi_u.h
+++ b/src/core/hle/service/vi/vi_u.h
@@ -9,24 +9,24 @@ namespace Core {
9class System; 9class System;
10} 10}
11 11
12namespace Service::NVFlinger { 12namespace Service::Nvnflinger {
13class HosBinderDriverServer; 13class HosBinderDriverServer;
14class NVFlinger; 14class Nvnflinger;
15} // namespace Service::NVFlinger 15} // namespace Service::Nvnflinger
16 16
17namespace Service::VI { 17namespace Service::VI {
18 18
19class VI_U final : public ServiceFramework<VI_U> { 19class VI_U final : public ServiceFramework<VI_U> {
20public: 20public:
21 explicit VI_U(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_, 21 explicit VI_U(Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_,
22 NVFlinger::HosBinderDriverServer& hos_binder_driver_server_); 22 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_);
23 ~VI_U() override; 23 ~VI_U() override;
24 24
25private: 25private:
26 void GetDisplayService(HLERequestContext& ctx); 26 void GetDisplayService(HLERequestContext& ctx);
27 27
28 NVFlinger::NVFlinger& nv_flinger; 28 Nvnflinger::Nvnflinger& nv_flinger;
29 NVFlinger::HosBinderDriverServer& hos_binder_driver_server; 29 Nvnflinger::HosBinderDriverServer& hos_binder_driver_server;
30}; 30};
31 31
32} // namespace Service::VI 32} // namespace Service::VI