summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2021-11-11 18:32:06 -0800
committerGravatar bunnei2022-03-24 18:13:32 -0700
commit05ff9e8d4e31e643131bf827c491052cdba003a0 (patch)
treec2d942116f30d8dad2d5ee855a180c45a488d94f /src/core
parenthle: nvflinger: Move BufferTransformFlags to its own header. (diff)
downloadyuzu-05ff9e8d4e31e643131bf827c491052cdba003a0.tar.gz
yuzu-05ff9e8d4e31e643131bf827c491052cdba003a0.tar.xz
yuzu-05ff9e8d4e31e643131bf827c491052cdba003a0.zip
hle: nvflinger: Add android Status flags to its own header.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/nvflinger/status.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/status.h b/src/core/hle/service/nvflinger/status.h
new file mode 100644
index 000000000..9bc1205df
--- /dev/null
+++ b/src/core/hle/service/nvflinger/status.h
@@ -0,0 +1,28 @@
1// SPDX-License-Identifier: GPL-3.0-or-later
2// Copyright 2021 yuzu Emulator Project
3
4#pragma once
5
6#include "common/common_funcs.h"
7#include "common/common_types.h"
8
9namespace android {
10
11enum class Status : s32 {
12 None = 0,
13 NoError = 0,
14 StaleBufferSlot = 1,
15 NoBufferAvailable = 2,
16 PresentLater = 3,
17 WouldBlock = -11,
18 NoMemory = -12,
19 Busy = -16,
20 NoInit = -19,
21 BadValue = -22,
22 InvalidOperation = -37,
23 BufferNeedsReallocation = 1,
24 ReleaseAllBuffers = 2,
25};
26DECLARE_ENUM_FLAG_OPERATORS(Status);
27
28} // namespace android