summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/vi.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-13 01:07:35 +0200
committerGitHub <noreply@github.com>2023-05-13 01:07:35 +0200
commit1805de030159219808ed9d6f519b60a6ee8c7931 (patch)
tree6d19b6192706f9350df1f09cabd1ccbbf933b027 /src/core/hle/service/vi/vi.cpp
parentMerge pull request #10132 from Kelebek1/fermi_blit2 (diff)
parentnvnflinger: fix Parcel serialization (diff)
downloadyuzu-1805de030159219808ed9d6f519b60a6ee8c7931.tar
yuzu-1805de030159219808ed9d6f519b60a6ee8c7931.tar.gz
yuzu-1805de030159219808ed9d6f519b60a6ee8c7931.tar.bz2
yuzu-1805de030159219808ed9d6f519b60a6ee8c7931.tar.lz
yuzu-1805de030159219808ed9d6f519b60a6ee8c7931.tar.xz
yuzu-1805de030159219808ed9d6f519b60a6ee8c7931.tar.zst
yuzu-1805de030159219808ed9d6f519b60a6ee8c7931.zip
Diffstat (limited to 'src/core/hle/service/vi/vi.cpp')
-rw-r--r--src/core/hle/service/vi/vi.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index 68eab5133..1b193f00c 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -64,8 +64,8 @@ public:
private:
const u32 magic = 2;
const u32 process_id = 1;
- const u32 id;
- INSERT_PADDING_WORDS(3);
+ const u64 id;
+ INSERT_PADDING_WORDS(2);
std::array<u8, 8> dispdrv = {'d', 'i', 's', 'p', 'd', 'r', 'v', '\0'};
INSERT_PADDING_WORDS(2);
};
@@ -608,7 +608,9 @@ private:
return;
}
- const auto parcel = android::OutputParcel{NativeWindow{*buffer_queue_id}};
+ android::OutputParcel parcel;
+ parcel.WriteInterface(NativeWindow{*buffer_queue_id});
+
const auto buffer_size = ctx.WriteBuffer(parcel.Serialize());
IPC::ResponseBuilder rb{ctx, 4};
@@ -654,7 +656,9 @@ private:
return;
}
- const auto parcel = android::OutputParcel{NativeWindow{*buffer_queue_id}};
+ android::OutputParcel parcel;
+ parcel.WriteInterface(NativeWindow{*buffer_queue_id});
+
const auto buffer_size = ctx.WriteBuffer(parcel.Serialize());
IPC::ResponseBuilder rb{ctx, 6};