summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2022-03-19 21:51:16 -0700
committerGravatar bunnei2022-03-24 18:13:33 -0700
commitca12a77670d1463c2257bcdd829bb9bc56f1461b (patch)
tree8c6f7781383232909584d65e982376cb2e7ecd46 /src
parenthle: nvflinger: BufferQueueProducer: Handle SetPreallocatedBuffer with empty ... (diff)
downloadyuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.gz
yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.tar.xz
yuzu-ca12a77670d1463c2257bcdd829bb9bc56f1461b.zip
hle: nvflinger: Migrate android namespace -> Service::android.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nvflinger/binder.h4
-rw-r--r--src/core/hle/service/nvflinger/buffer_item.h4
-rw-r--r--src/core/hle/service/nvflinger/buffer_item_consumer.cpp4
-rw-r--r--src/core/hle/service/nvflinger/buffer_item_consumer.h4
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_consumer.cpp4
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_consumer.h4
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_core.cpp9
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_core.h4
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_defs.h4
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_producer.cpp4
-rw-r--r--src/core/hle/service/nvflinger/buffer_queue_producer.h4
-rw-r--r--src/core/hle/service/nvflinger/buffer_slot.h4
-rw-r--r--src/core/hle/service/nvflinger/buffer_transform_flags.h4
-rw-r--r--src/core/hle/service/nvflinger/consumer_base.cpp4
-rw-r--r--src/core/hle/service/nvflinger/consumer_base.h4
-rw-r--r--src/core/hle/service/nvflinger/consumer_listener.h4
-rw-r--r--src/core/hle/service/nvflinger/graphic_buffer_producer.cpp4
-rw-r--r--src/core/hle/service/nvflinger/graphic_buffer_producer.h4
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.h4
-rw-r--r--src/core/hle/service/nvflinger/parcel.h4
-rw-r--r--src/core/hle/service/nvflinger/pixel_format.h4
-rw-r--r--src/core/hle/service/nvflinger/producer_listener.h4
-rw-r--r--src/core/hle/service/nvflinger/status.h4
-rw-r--r--src/core/hle/service/nvflinger/ui/fence.h4
-rw-r--r--src/core/hle/service/nvflinger/ui/graphic_buffer.h4
-rw-r--r--src/core/hle/service/nvflinger/ui/rect.h4
-rw-r--r--src/core/hle/service/nvflinger/window.h4
-rw-r--r--src/core/hle/service/vi/display/vi_display.h2
-rw-r--r--src/core/hle/service/vi/layer/vi_layer.h4
-rw-r--r--src/video_core/framebuffer_config.h4
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp8
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.h4
-rw-r--r--src/video_core/renderer_vulkan/vk_blit_screen.cpp10
-rw-r--r--src/video_core/surface.cpp8
-rw-r--r--src/video_core/surface.h2
35 files changed, 76 insertions, 79 deletions
diff --git a/src/core/hle/service/nvflinger/binder.h b/src/core/hle/service/nvflinger/binder.h
index 2d9a23573..7d0d4d819 100644
--- a/src/core/hle/service/nvflinger/binder.h
+++ b/src/core/hle/service/nvflinger/binder.h
@@ -13,7 +13,7 @@ class HLERequestContext;
13class KReadableEvent; 13class KReadableEvent;
14} // namespace Kernel 14} // namespace Kernel
15 15
16namespace android { 16namespace Service::android {
17 17
18enum class TransactionId { 18enum class TransactionId {
19 RequestBuffer = 1, 19 RequestBuffer = 1,
@@ -39,4 +39,4 @@ public:
39 virtual Kernel::KReadableEvent& GetNativeHandle() = 0; 39 virtual Kernel::KReadableEvent& GetNativeHandle() = 0;
40}; 40};
41 41
42} // namespace android 42} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_item.h b/src/core/hle/service/nvflinger/buffer_item.h
index 9dc6f3fee..d60719065 100644
--- a/src/core/hle/service/nvflinger/buffer_item.h
+++ b/src/core/hle/service/nvflinger/buffer_item.h
@@ -13,7 +13,7 @@
13#include "core/hle/service/nvflinger/ui/rect.h" 13#include "core/hle/service/nvflinger/ui/rect.h"
14#include "core/hle/service/nvflinger/window.h" 14#include "core/hle/service/nvflinger/window.h"
15 15
16namespace android { 16namespace Service::android {
17 17
18class GraphicBuffer; 18class GraphicBuffer;
19 19
@@ -43,4 +43,4 @@ public:
43 s32 swap_interval{}; 43 s32 swap_interval{};
44}; 44};
45 45
46} // namespace android 46} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_item_consumer.cpp b/src/core/hle/service/nvflinger/buffer_item_consumer.cpp
index 424b19d32..508df3a12 100644
--- a/src/core/hle/service/nvflinger/buffer_item_consumer.cpp
+++ b/src/core/hle/service/nvflinger/buffer_item_consumer.cpp
@@ -10,7 +10,7 @@
10#include "core/hle/service/nvflinger/buffer_item_consumer.h" 10#include "core/hle/service/nvflinger/buffer_item_consumer.h"
11#include "core/hle/service/nvflinger/buffer_queue_consumer.h" 11#include "core/hle/service/nvflinger/buffer_queue_consumer.h"
12 12
13namespace android { 13namespace Service::android {
14 14
15BufferItemConsumer::BufferItemConsumer(std::unique_ptr<BufferQueueConsumer> consumer_) 15BufferItemConsumer::BufferItemConsumer(std::unique_ptr<BufferQueueConsumer> consumer_)
16 : ConsumerBase{std::move(consumer_)} {} 16 : ConsumerBase{std::move(consumer_)} {}
@@ -56,4 +56,4 @@ Status BufferItemConsumer::ReleaseBuffer(const BufferItem& item, Fence& release_
56 return Status::NoError; 56 return Status::NoError;
57} 57}
58 58
59} // namespace android 59} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_item_consumer.h b/src/core/hle/service/nvflinger/buffer_item_consumer.h
index f61c180b3..99d592960 100644
--- a/src/core/hle/service/nvflinger/buffer_item_consumer.h
+++ b/src/core/hle/service/nvflinger/buffer_item_consumer.h
@@ -12,7 +12,7 @@
12#include "core/hle/service/nvflinger/consumer_base.h" 12#include "core/hle/service/nvflinger/consumer_base.h"
13#include "core/hle/service/nvflinger/status.h" 13#include "core/hle/service/nvflinger/status.h"
14 14
15namespace android { 15namespace Service::android {
16 16
17class BufferItem; 17class BufferItem;
18 18
@@ -23,4 +23,4 @@ public:
23 Status ReleaseBuffer(const BufferItem& item, Fence& release_fence); 23 Status ReleaseBuffer(const BufferItem& item, Fence& release_fence);
24}; 24};
25 25
26} // namespace android 26} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp b/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp
index f0875eca3..865f696d7 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue_consumer.cpp
@@ -10,7 +10,7 @@
10#include "core/hle/service/nvflinger/buffer_queue_core.h" 10#include "core/hle/service/nvflinger/buffer_queue_core.h"
11#include "core/hle/service/nvflinger/producer_listener.h" 11#include "core/hle/service/nvflinger/producer_listener.h"
12 12
13namespace android { 13namespace Service::android {
14 14
15BufferQueueConsumer::BufferQueueConsumer(std::shared_ptr<BufferQueueCore> core_) 15BufferQueueConsumer::BufferQueueConsumer(std::shared_ptr<BufferQueueCore> core_)
16 : core{std::move(core_)}, slots{core->slots} {} 16 : core{std::move(core_)}, slots{core->slots} {}
@@ -222,4 +222,4 @@ Status BufferQueueConsumer::Connect(std::shared_ptr<IConsumerListener> consumer_
222 return Status::NoError; 222 return Status::NoError;
223} 223}
224 224
225} // namespace android 225} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_consumer.h b/src/core/hle/service/nvflinger/buffer_queue_consumer.h
index fbeb8b8d7..26981ed19 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_consumer.h
+++ b/src/core/hle/service/nvflinger/buffer_queue_consumer.h
@@ -12,7 +12,7 @@
12#include "core/hle/service/nvflinger/buffer_queue_defs.h" 12#include "core/hle/service/nvflinger/buffer_queue_defs.h"
13#include "core/hle/service/nvflinger/status.h" 13#include "core/hle/service/nvflinger/status.h"
14 14
15namespace android { 15namespace Service::android {
16 16
17class BufferItem; 17class BufferItem;
18class BufferQueueCore; 18class BufferQueueCore;
@@ -33,4 +33,4 @@ private:
33 BufferQueueDefs::SlotsType& slots; 33 BufferQueueDefs::SlotsType& slots;
34}; 34};
35 35
36} // namespace android 36} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_core.cpp b/src/core/hle/service/nvflinger/buffer_queue_core.cpp
index a6ff46aa9..63cf66ba3 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_core.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue_core.cpp
@@ -8,12 +8,9 @@
8 8
9#include "core/hle/service/nvflinger/buffer_queue_core.h" 9#include "core/hle/service/nvflinger/buffer_queue_core.h"
10 10
11namespace android { 11namespace Service::android {
12
13BufferQueueCore::BufferQueueCore() : lock{mutex} {
14 // This is locked on creation, so unlock.
15 lock.unlock();
16 12
13BufferQueueCore::BufferQueueCore() : lock{mutex, std::defer_lock} {
17 for (s32 slot = 0; slot < BufferQueueDefs::NUM_BUFFER_SLOTS; ++slot) { 14 for (s32 slot = 0; slot < BufferQueueDefs::NUM_BUFFER_SLOTS; ++slot) {
18 free_slots.insert(slot); 15 free_slots.insert(slot);
19 } 16 }
@@ -132,4 +129,4 @@ void BufferQueueCore::WaitWhileAllocatingLocked() const {
132 } 129 }
133} 130}
134 131
135} // namespace android 132} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_core.h b/src/core/hle/service/nvflinger/buffer_queue_core.h
index 8019b7024..252a36350 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_core.h
+++ b/src/core/hle/service/nvflinger/buffer_queue_core.h
@@ -19,7 +19,7 @@
19#include "core/hle/service/nvflinger/status.h" 19#include "core/hle/service/nvflinger/status.h"
20#include "core/hle/service/nvflinger/window.h" 20#include "core/hle/service/nvflinger/window.h"
21 21
22namespace android { 22namespace Service::android {
23 23
24class IConsumerListener; 24class IConsumerListener;
25class IProducerListener; 25class IProducerListener;
@@ -95,4 +95,4 @@ private:
95 bool is_shutting_down{}; 95 bool is_shutting_down{};
96}; 96};
97 97
98} // namespace android 98} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_defs.h b/src/core/hle/service/nvflinger/buffer_queue_defs.h
index cea09e044..387d3d36a 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_defs.h
+++ b/src/core/hle/service/nvflinger/buffer_queue_defs.h
@@ -11,11 +11,11 @@
11#include "common/common_types.h" 11#include "common/common_types.h"
12#include "core/hle/service/nvflinger/buffer_slot.h" 12#include "core/hle/service/nvflinger/buffer_slot.h"
13 13
14namespace android::BufferQueueDefs { 14namespace Service::android::BufferQueueDefs {
15 15
16// BufferQueue will keep track of at most this value of buffers. 16// BufferQueue will keep track of at most this value of buffers.
17constexpr s32 NUM_BUFFER_SLOTS = 64; 17constexpr s32 NUM_BUFFER_SLOTS = 64;
18 18
19using SlotsType = std::array<BufferSlot, NUM_BUFFER_SLOTS>; 19using SlotsType = std::array<BufferSlot, NUM_BUFFER_SLOTS>;
20 20
21} // namespace android::BufferQueueDefs 21} // namespace Service::android::BufferQueueDefs
diff --git a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp b/src/core/hle/service/nvflinger/buffer_queue_producer.cpp
index a347f8b3b..2f7e9dcfc 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_producer.cpp
+++ b/src/core/hle/service/nvflinger/buffer_queue_producer.cpp
@@ -23,7 +23,7 @@
23#include "core/hle/service/nvflinger/window.h" 23#include "core/hle/service/nvflinger/window.h"
24#include "core/hle/service/vi/vi.h" 24#include "core/hle/service/vi/vi.h"
25 25
26namespace android { 26namespace Service::android {
27 27
28BufferQueueProducer::BufferQueueProducer(Service::KernelHelpers::ServiceContext& service_context_, 28BufferQueueProducer::BufferQueueProducer(Service::KernelHelpers::ServiceContext& service_context_,
29 std::shared_ptr<BufferQueueCore> buffer_queue_core_) 29 std::shared_ptr<BufferQueueCore> buffer_queue_core_)
@@ -936,4 +936,4 @@ Kernel::KReadableEvent& BufferQueueProducer::GetNativeHandle() {
936 return buffer_wait_event->GetReadableEvent(); 936 return buffer_wait_event->GetReadableEvent();
937} 937}
938 938
939} // namespace android 939} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_queue_producer.h b/src/core/hle/service/nvflinger/buffer_queue_producer.h
index fcb71a794..5ddeebe0c 100644
--- a/src/core/hle/service/nvflinger/buffer_queue_producer.h
+++ b/src/core/hle/service/nvflinger/buffer_queue_producer.h
@@ -31,7 +31,7 @@ namespace Service::KernelHelpers {
31class ServiceContext; 31class ServiceContext;
32} // namespace Service::KernelHelpers 32} // namespace Service::KernelHelpers
33 33
34namespace android { 34namespace Service::android {
35 35
36class BufferQueueCore; 36class BufferQueueCore;
37class IProducerListener; 37class IProducerListener;
@@ -80,4 +80,4 @@ private:
80 std::condition_variable callback_condition; 80 std::condition_variable callback_condition;
81}; 81};
82 82
83} // namespace android 83} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_slot.h b/src/core/hle/service/nvflinger/buffer_slot.h
index 24b806d33..e3ea58910 100644
--- a/src/core/hle/service/nvflinger/buffer_slot.h
+++ b/src/core/hle/service/nvflinger/buffer_slot.h
@@ -11,7 +11,7 @@
11#include "common/common_types.h" 11#include "common/common_types.h"
12#include "core/hle/service/nvflinger/ui/fence.h" 12#include "core/hle/service/nvflinger/ui/fence.h"
13 13
14namespace android { 14namespace Service::android {
15 15
16class GraphicBuffer; 16class GraphicBuffer;
17 17
@@ -36,4 +36,4 @@ struct BufferSlot final {
36 bool is_preallocated{}; 36 bool is_preallocated{};
37}; 37};
38 38
39} // namespace android 39} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/buffer_transform_flags.h b/src/core/hle/service/nvflinger/buffer_transform_flags.h
index 398c6370b..e8e6300e3 100644
--- a/src/core/hle/service/nvflinger/buffer_transform_flags.h
+++ b/src/core/hle/service/nvflinger/buffer_transform_flags.h
@@ -5,7 +5,7 @@
5 5
6#include "common/common_types.h" 6#include "common/common_types.h"
7 7
8namespace android { 8namespace Service::android {
9 9
10enum class BufferTransformFlags : u32 { 10enum class BufferTransformFlags : u32 {
11 /// No transform flags are set 11 /// No transform flags are set
@@ -22,4 +22,4 @@ enum class BufferTransformFlags : u32 {
22 Rotate270 = 0x07, 22 Rotate270 = 0x07,
23}; 23};
24 24
25} // namespace android 25} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/consumer_base.cpp b/src/core/hle/service/nvflinger/consumer_base.cpp
index 127e5930b..c752ffc8e 100644
--- a/src/core/hle/service/nvflinger/consumer_base.cpp
+++ b/src/core/hle/service/nvflinger/consumer_base.cpp
@@ -12,7 +12,7 @@
12#include "core/hle/service/nvflinger/consumer_base.h" 12#include "core/hle/service/nvflinger/consumer_base.h"
13#include "core/hle/service/nvflinger/ui/graphic_buffer.h" 13#include "core/hle/service/nvflinger/ui/graphic_buffer.h"
14 14
15namespace android { 15namespace Service::android {
16 16
17ConsumerBase::ConsumerBase(std::unique_ptr<BufferQueueConsumer> consumer_) 17ConsumerBase::ConsumerBase(std::unique_ptr<BufferQueueConsumer> consumer_)
18 : consumer{std::move(consumer_)} {} 18 : consumer{std::move(consumer_)} {}
@@ -126,4 +126,4 @@ bool ConsumerBase::StillTracking(s32 slot, const std::shared_ptr<GraphicBuffer>
126 slots[slot].graphic_buffer->Handle() == graphic_buffer->Handle()); 126 slots[slot].graphic_buffer->Handle() == graphic_buffer->Handle());
127} 127}
128 128
129} // namespace android 129} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/consumer_base.h b/src/core/hle/service/nvflinger/consumer_base.h
index 574ea9781..ae34ea0a9 100644
--- a/src/core/hle/service/nvflinger/consumer_base.h
+++ b/src/core/hle/service/nvflinger/consumer_base.h
@@ -15,7 +15,7 @@
15#include "core/hle/service/nvflinger/consumer_listener.h" 15#include "core/hle/service/nvflinger/consumer_listener.h"
16#include "core/hle/service/nvflinger/status.h" 16#include "core/hle/service/nvflinger/status.h"
17 17
18namespace android { 18namespace Service::android {
19 19
20class BufferItem; 20class BufferItem;
21class BufferQueueConsumer; 21class BufferQueueConsumer;
@@ -56,4 +56,4 @@ protected:
56 mutable std::mutex mutex; 56 mutable std::mutex mutex;
57}; 57};
58 58
59} // namespace android 59} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/consumer_listener.h b/src/core/hle/service/nvflinger/consumer_listener.h
index 0aa4ad17b..b6d1c3e9a 100644
--- a/src/core/hle/service/nvflinger/consumer_listener.h
+++ b/src/core/hle/service/nvflinger/consumer_listener.h
@@ -6,7 +6,7 @@
6 6
7#pragma once 7#pragma once
8 8
9namespace android { 9namespace Service::android {
10 10
11class BufferItem; 11class BufferItem;
12 12
@@ -23,4 +23,4 @@ public:
23 virtual void OnSidebandStreamChanged() = 0; 23 virtual void OnSidebandStreamChanged() = 0;
24}; 24};
25 25
26}; // namespace android 26}; // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/graphic_buffer_producer.cpp b/src/core/hle/service/nvflinger/graphic_buffer_producer.cpp
index 3e3669c99..d4da98ddb 100644
--- a/src/core/hle/service/nvflinger/graphic_buffer_producer.cpp
+++ b/src/core/hle/service/nvflinger/graphic_buffer_producer.cpp
@@ -9,7 +9,7 @@
9#include "core/hle/service/nvflinger/graphic_buffer_producer.h" 9#include "core/hle/service/nvflinger/graphic_buffer_producer.h"
10#include "core/hle/service/nvflinger/parcel.h" 10#include "core/hle/service/nvflinger/parcel.h"
11 11
12namespace android { 12namespace Service::android {
13 13
14QueueBufferInput::QueueBufferInput(Parcel& parcel) { 14QueueBufferInput::QueueBufferInput(Parcel& parcel) {
15 parcel.ReadFlattened(*this); 15 parcel.ReadFlattened(*this);
@@ -17,4 +17,4 @@ QueueBufferInput::QueueBufferInput(Parcel& parcel) {
17 17
18QueueBufferOutput::QueueBufferOutput() = default; 18QueueBufferOutput::QueueBufferOutput() = default;
19 19
20} // namespace android 20} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/graphic_buffer_producer.h b/src/core/hle/service/nvflinger/graphic_buffer_producer.h
index cad683cd3..dd4187027 100644
--- a/src/core/hle/service/nvflinger/graphic_buffer_producer.h
+++ b/src/core/hle/service/nvflinger/graphic_buffer_producer.h
@@ -12,7 +12,7 @@
12#include "core/hle/service/nvflinger/ui/rect.h" 12#include "core/hle/service/nvflinger/ui/rect.h"
13#include "core/hle/service/nvflinger/window.h" 13#include "core/hle/service/nvflinger/window.h"
14 14
15namespace android { 15namespace Service::android {
16 16
17class Parcel; 17class Parcel;
18 18
@@ -75,4 +75,4 @@ private:
75#pragma pack(pop) 75#pragma pack(pop)
76static_assert(sizeof(QueueBufferOutput) == 16, "QueueBufferOutput has wrong size"); 76static_assert(sizeof(QueueBufferOutput) == 16, "QueueBufferOutput has wrong size");
77 77
78} // namespace android 78} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/nvflinger.h b/src/core/hle/service/nvflinger/nvflinger.h
index 5112ae136..4f93ffe07 100644
--- a/src/core/hle/service/nvflinger/nvflinger.h
+++ b/src/core/hle/service/nvflinger/nvflinger.h
@@ -37,10 +37,10 @@ class Display;
37class Layer; 37class Layer;
38} // namespace Service::VI 38} // namespace Service::VI
39 39
40namespace android { 40namespace Service::android {
41class BufferQueueCore; 41class BufferQueueCore;
42class BufferQueueProducer; 42class BufferQueueProducer;
43} // namespace android 43} // namespace Service::android
44 44
45namespace Service::NVFlinger { 45namespace Service::NVFlinger {
46 46
diff --git a/src/core/hle/service/nvflinger/parcel.h b/src/core/hle/service/nvflinger/parcel.h
index 710964f5d..b41c1732e 100644
--- a/src/core/hle/service/nvflinger/parcel.h
+++ b/src/core/hle/service/nvflinger/parcel.h
@@ -10,7 +10,7 @@
10#include "common/assert.h" 10#include "common/assert.h"
11#include "common/common_types.h" 11#include "common/common_types.h"
12 12
13namespace android { 13namespace Service::android {
14 14
15class Parcel final { 15class Parcel final {
16public: 16public:
@@ -168,4 +168,4 @@ private:
168 std::size_t write_index = sizeof(Header); 168 std::size_t write_index = sizeof(Header);
169}; 169};
170 170
171} // namespace android 171} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/pixel_format.h b/src/core/hle/service/nvflinger/pixel_format.h
index 966c84775..8a77d8bea 100644
--- a/src/core/hle/service/nvflinger/pixel_format.h
+++ b/src/core/hle/service/nvflinger/pixel_format.h
@@ -5,7 +5,7 @@
5 5
6#include "common/common_types.h" 6#include "common/common_types.h"
7 7
8namespace android { 8namespace Service::android {
9 9
10enum class PixelFormat : u32 { 10enum class PixelFormat : u32 {
11 NoFormat = 0, 11 NoFormat = 0,
@@ -18,4 +18,4 @@ enum class PixelFormat : u32 {
18 Rgba4444 = 7, 18 Rgba4444 = 7,
19}; 19};
20 20
21} // namespace android 21} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/producer_listener.h b/src/core/hle/service/nvflinger/producer_listener.h
index 8fe29d73e..468e06431 100644
--- a/src/core/hle/service/nvflinger/producer_listener.h
+++ b/src/core/hle/service/nvflinger/producer_listener.h
@@ -6,11 +6,11 @@
6 6
7#pragma once 7#pragma once
8 8
9namespace android { 9namespace Service::android {
10 10
11class IProducerListener { 11class IProducerListener {
12public: 12public:
13 virtual void OnBufferReleased() = 0; 13 virtual void OnBufferReleased() = 0;
14}; 14};
15 15
16} // namespace android 16} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/status.h b/src/core/hle/service/nvflinger/status.h
index 9bc1205df..a003eda89 100644
--- a/src/core/hle/service/nvflinger/status.h
+++ b/src/core/hle/service/nvflinger/status.h
@@ -6,7 +6,7 @@
6#include "common/common_funcs.h" 6#include "common/common_funcs.h"
7#include "common/common_types.h" 7#include "common/common_types.h"
8 8
9namespace android { 9namespace Service::android {
10 10
11enum class Status : s32 { 11enum class Status : s32 {
12 None = 0, 12 None = 0,
@@ -25,4 +25,4 @@ enum class Status : s32 {
25}; 25};
26DECLARE_ENUM_FLAG_OPERATORS(Status); 26DECLARE_ENUM_FLAG_OPERATORS(Status);
27 27
28} // namespace android 28} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/ui/fence.h b/src/core/hle/service/nvflinger/ui/fence.h
index 80ce98782..4a74e26a3 100644
--- a/src/core/hle/service/nvflinger/ui/fence.h
+++ b/src/core/hle/service/nvflinger/ui/fence.h
@@ -11,7 +11,7 @@
11#include "common/common_types.h" 11#include "common/common_types.h"
12#include "core/hle/service/nvdrv/nvdata.h" 12#include "core/hle/service/nvdrv/nvdata.h"
13 13
14namespace android { 14namespace Service::android {
15 15
16class Fence { 16class Fence {
17public: 17public:
@@ -29,4 +29,4 @@ public:
29}; 29};
30static_assert(sizeof(Fence) == 36, "Fence has wrong size"); 30static_assert(sizeof(Fence) == 36, "Fence has wrong size");
31 31
32} // namespace android 32} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/ui/graphic_buffer.h b/src/core/hle/service/nvflinger/ui/graphic_buffer.h
index 2e7f251ef..7abbf78ba 100644
--- a/src/core/hle/service/nvflinger/ui/graphic_buffer.h
+++ b/src/core/hle/service/nvflinger/ui/graphic_buffer.h
@@ -10,7 +10,7 @@
10#include "common/common_types.h" 10#include "common/common_types.h"
11#include "core/hle/service/nvflinger/pixel_format.h" 11#include "core/hle/service/nvflinger/pixel_format.h"
12 12
13namespace android { 13namespace Service::android {
14 14
15class GraphicBuffer final { 15class GraphicBuffer final {
16public: 16public:
@@ -97,4 +97,4 @@ private:
97}; 97};
98static_assert(sizeof(GraphicBuffer) == 0x16C, "GraphicBuffer has wrong size"); 98static_assert(sizeof(GraphicBuffer) == 0x16C, "GraphicBuffer has wrong size");
99 99
100} // namespace android 100} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/ui/rect.h b/src/core/hle/service/nvflinger/ui/rect.h
index 847f6f4ae..c7b5f1815 100644
--- a/src/core/hle/service/nvflinger/ui/rect.h
+++ b/src/core/hle/service/nvflinger/ui/rect.h
@@ -11,7 +11,7 @@
11 11
12#include "common/common_types.h" 12#include "common/common_types.h"
13 13
14namespace android { 14namespace Service::android {
15 15
16class Rect final { 16class Rect final {
17public: 17public:
@@ -72,4 +72,4 @@ private:
72}; 72};
73static_assert(sizeof(Rect) == 16, "Rect has wrong size"); 73static_assert(sizeof(Rect) == 16, "Rect has wrong size");
74 74
75} // namespace android 75} // namespace Service::android
diff --git a/src/core/hle/service/nvflinger/window.h b/src/core/hle/service/nvflinger/window.h
index 17f36da20..e26f8160e 100644
--- a/src/core/hle/service/nvflinger/window.h
+++ b/src/core/hle/service/nvflinger/window.h
@@ -6,7 +6,7 @@
6#include "common/common_funcs.h" 6#include "common/common_funcs.h"
7#include "common/common_types.h" 7#include "common/common_types.h"
8 8
9namespace android { 9namespace Service::android {
10 10
11/// Attributes queryable with Query 11/// Attributes queryable with Query
12enum class NativeWindow : s32 { 12enum class NativeWindow : s32 {
@@ -50,4 +50,4 @@ enum class NativeWindowTransform : u32 {
50}; 50};
51DECLARE_ENUM_FLAG_OPERATORS(NativeWindowTransform); 51DECLARE_ENUM_FLAG_OPERATORS(NativeWindowTransform);
52 52
53} // namespace android 53} // namespace Service::android
diff --git a/src/core/hle/service/vi/display/vi_display.h b/src/core/hle/service/vi/display/vi_display.h
index 9cf324395..e93d084ee 100644
--- a/src/core/hle/service/vi/display/vi_display.h
+++ b/src/core/hle/service/vi/display/vi_display.h
@@ -15,7 +15,7 @@ namespace Kernel {
15class KEvent; 15class KEvent;
16} 16}
17 17
18namespace android { 18namespace Service::android {
19class BufferQueueProducer; 19class BufferQueueProducer;
20} 20}
21 21
diff --git a/src/core/hle/service/vi/layer/vi_layer.h b/src/core/hle/service/vi/layer/vi_layer.h
index 079ec4dda..c28b14450 100644
--- a/src/core/hle/service/vi/layer/vi_layer.h
+++ b/src/core/hle/service/vi/layer/vi_layer.h
@@ -8,11 +8,11 @@
8 8
9#include "common/common_types.h" 9#include "common/common_types.h"
10 10
11namespace android { 11namespace Service::android {
12class BufferItemConsumer; 12class BufferItemConsumer;
13class BufferQueueCore; 13class BufferQueueCore;
14class BufferQueueProducer; 14class BufferQueueProducer;
15} // namespace android 15} // namespace Service::android
16 16
17namespace Service::VI { 17namespace Service::VI {
18 18
diff --git a/src/video_core/framebuffer_config.h b/src/video_core/framebuffer_config.h
index 1e75d51ab..93349bb78 100644
--- a/src/video_core/framebuffer_config.h
+++ b/src/video_core/framebuffer_config.h
@@ -20,8 +20,8 @@ struct FramebufferConfig {
20 u32 width{}; 20 u32 width{};
21 u32 height{}; 21 u32 height{};
22 u32 stride{}; 22 u32 stride{};
23 android::PixelFormat pixel_format{}; 23 Service::android::PixelFormat pixel_format{};
24 android::BufferTransformFlags transform_flags{}; 24 Service::android::BufferTransformFlags transform_flags{};
25 Common::Rectangle<int> crop_rect; 25 Common::Rectangle<int> crop_rect;
26}; 26};
27 27
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 279421962..f8f29013a 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -323,12 +323,12 @@ void RendererOpenGL::ConfigureFramebufferTexture(TextureInfo& texture,
323 323
324 GLint internal_format; 324 GLint internal_format;
325 switch (framebuffer.pixel_format) { 325 switch (framebuffer.pixel_format) {
326 case android::PixelFormat::Rgba8888: 326 case Service::android::PixelFormat::Rgba8888:
327 internal_format = GL_RGBA8; 327 internal_format = GL_RGBA8;
328 texture.gl_format = GL_RGBA; 328 texture.gl_format = GL_RGBA;
329 texture.gl_type = GL_UNSIGNED_INT_8_8_8_8_REV; 329 texture.gl_type = GL_UNSIGNED_INT_8_8_8_8_REV;
330 break; 330 break;
331 case android::PixelFormat::Rgb565: 331 case Service::android::PixelFormat::Rgb565:
332 internal_format = GL_RGB565; 332 internal_format = GL_RGB565;
333 texture.gl_format = GL_RGB; 333 texture.gl_format = GL_RGB;
334 texture.gl_type = GL_UNSIGNED_SHORT_5_6_5; 334 texture.gl_type = GL_UNSIGNED_SHORT_5_6_5;
@@ -464,8 +464,8 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) {
464 const auto& texcoords = screen_info.display_texcoords; 464 const auto& texcoords = screen_info.display_texcoords;
465 auto left = texcoords.left; 465 auto left = texcoords.left;
466 auto right = texcoords.right; 466 auto right = texcoords.right;
467 if (framebuffer_transform_flags != android::BufferTransformFlags::Unset) { 467 if (framebuffer_transform_flags != Service::android::BufferTransformFlags::Unset) {
468 if (framebuffer_transform_flags == android::BufferTransformFlags::FlipV) { 468 if (framebuffer_transform_flags == Service::android::BufferTransformFlags::FlipV) {
469 // Flip the framebuffer vertically 469 // Flip the framebuffer vertically
470 left = texcoords.right; 470 left = texcoords.right;
471 right = texcoords.left; 471 right = texcoords.left;
diff --git a/src/video_core/renderer_opengl/renderer_opengl.h b/src/video_core/renderer_opengl/renderer_opengl.h
index e6395b900..aa206878b 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.h
+++ b/src/video_core/renderer_opengl/renderer_opengl.h
@@ -46,7 +46,7 @@ struct TextureInfo {
46 GLsizei height; 46 GLsizei height;
47 GLenum gl_format; 47 GLenum gl_format;
48 GLenum gl_type; 48 GLenum gl_type;
49 android::PixelFormat pixel_format; 49 Service::android::PixelFormat pixel_format;
50}; 50};
51 51
52/// Structure used for storing information about the display target for the Switch screen 52/// Structure used for storing information about the display target for the Switch screen
@@ -135,7 +135,7 @@ private:
135 std::vector<u8> gl_framebuffer_data; 135 std::vector<u8> gl_framebuffer_data;
136 136
137 /// Used for transforming the framebuffer orientation 137 /// Used for transforming the framebuffer orientation
138 android::BufferTransformFlags framebuffer_transform_flags{}; 138 Service::android::BufferTransformFlags framebuffer_transform_flags{};
139 Common::Rectangle<int> framebuffer_crop_rect; 139 Common::Rectangle<int> framebuffer_crop_rect;
140}; 140};
141 141
diff --git a/src/video_core/renderer_vulkan/vk_blit_screen.cpp b/src/video_core/renderer_vulkan/vk_blit_screen.cpp
index 3da16c422..d893c1952 100644
--- a/src/video_core/renderer_vulkan/vk_blit_screen.cpp
+++ b/src/video_core/renderer_vulkan/vk_blit_screen.cpp
@@ -94,11 +94,11 @@ std::size_t GetSizeInBytes(const Tegra::FramebufferConfig& framebuffer) {
94 94
95VkFormat GetFormat(const Tegra::FramebufferConfig& framebuffer) { 95VkFormat GetFormat(const Tegra::FramebufferConfig& framebuffer) {
96 switch (framebuffer.pixel_format) { 96 switch (framebuffer.pixel_format) {
97 case android::PixelFormat::Rgba8888: 97 case Service::android::PixelFormat::Rgba8888:
98 return VK_FORMAT_A8B8G8R8_UNORM_PACK32; 98 return VK_FORMAT_A8B8G8R8_UNORM_PACK32;
99 case android::PixelFormat::Rgb565: 99 case Service::android::PixelFormat::Rgb565:
100 return VK_FORMAT_R5G6B5_UNORM_PACK16; 100 return VK_FORMAT_R5G6B5_UNORM_PACK16;
101 case android::PixelFormat::Bgra8888: 101 case Service::android::PixelFormat::Bgra8888:
102 return VK_FORMAT_B8G8R8A8_UNORM; 102 return VK_FORMAT_B8G8R8A8_UNORM;
103 default: 103 default:
104 UNIMPLEMENTED_MSG("Unknown framebuffer pixel format: {}", 104 UNIMPLEMENTED_MSG("Unknown framebuffer pixel format: {}",
@@ -1390,9 +1390,9 @@ void VKBlitScreen::SetVertexData(BufferData& data, const Tegra::FramebufferConfi
1390 auto right = texcoords.right; 1390 auto right = texcoords.right;
1391 1391
1392 switch (framebuffer_transform_flags) { 1392 switch (framebuffer_transform_flags) {
1393 case android::BufferTransformFlags::Unset: 1393 case Service::android::BufferTransformFlags::Unset:
1394 break; 1394 break;
1395 case android::BufferTransformFlags::FlipV: 1395 case Service::android::BufferTransformFlags::FlipV:
1396 // Flip the framebuffer vertically 1396 // Flip the framebuffer vertically
1397 left = texcoords.right; 1397 left = texcoords.right;
1398 right = texcoords.left; 1398 right = texcoords.left;
diff --git a/src/video_core/surface.cpp b/src/video_core/surface.cpp
index f7d29534e..5f428d35d 100644
--- a/src/video_core/surface.cpp
+++ b/src/video_core/surface.cpp
@@ -190,13 +190,13 @@ PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format)
190 } 190 }
191} 191}
192 192
193PixelFormat PixelFormatFromGPUPixelFormat(android::PixelFormat format) { 193PixelFormat PixelFormatFromGPUPixelFormat(Service::android::PixelFormat format) {
194 switch (format) { 194 switch (format) {
195 case android::PixelFormat::Rgba8888: 195 case Service::android::PixelFormat::Rgba8888:
196 return PixelFormat::A8B8G8R8_UNORM; 196 return PixelFormat::A8B8G8R8_UNORM;
197 case android::PixelFormat::Rgb565: 197 case Service::android::PixelFormat::Rgb565:
198 return PixelFormat::R5G6B5_UNORM; 198 return PixelFormat::R5G6B5_UNORM;
199 case android::PixelFormat::Bgra8888: 199 case Service::android::PixelFormat::Bgra8888:
200 return PixelFormat::B8G8R8A8_UNORM; 200 return PixelFormat::B8G8R8A8_UNORM;
201 default: 201 default:
202 UNIMPLEMENTED_MSG("Unimplemented format={}", format); 202 UNIMPLEMENTED_MSG("Unimplemented format={}", format);
diff --git a/src/video_core/surface.h b/src/video_core/surface.h
index 1061b2fa7..5704cf16a 100644
--- a/src/video_core/surface.h
+++ b/src/video_core/surface.h
@@ -460,7 +460,7 @@ PixelFormat PixelFormatFromDepthFormat(Tegra::DepthFormat format);
460 460
461PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format); 461PixelFormat PixelFormatFromRenderTargetFormat(Tegra::RenderTargetFormat format);
462 462
463PixelFormat PixelFormatFromGPUPixelFormat(android::PixelFormat format); 463PixelFormat PixelFormatFromGPUPixelFormat(Service::android::PixelFormat format);
464 464
465SurfaceType GetFormatType(PixelFormat pixel_format); 465SurfaceType GetFormatType(PixelFormat pixel_format);
466 466