summaryrefslogtreecommitdiff
path: root/src/video_core/framebuffer_config.h
diff options
context:
space:
mode:
authorGravatar bunnei2021-11-11 18:31:05 -0800
committerGravatar bunnei2022-03-24 18:13:32 -0700
commit05d80fba38eada5ec671980a5cd7276bcf14482a (patch)
treef3cc6fdb642eba5ddb93a39049eeeaaf376a097f /src/video_core/framebuffer_config.h
parenthle: nvdrv: Rename Fence to NvFence to avoid naming conflicts. (diff)
downloadyuzu-05d80fba38eada5ec671980a5cd7276bcf14482a.tar.gz
yuzu-05d80fba38eada5ec671980a5cd7276bcf14482a.tar.xz
yuzu-05d80fba38eada5ec671980a5cd7276bcf14482a.zip
hle: nvflinger: Move BufferTransformFlags to its own header.
Diffstat (limited to 'src/video_core/framebuffer_config.h')
-rw-r--r--src/video_core/framebuffer_config.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/video_core/framebuffer_config.h b/src/video_core/framebuffer_config.h
index 5921d830e..1e75d51ab 100644
--- a/src/video_core/framebuffer_config.h
+++ b/src/video_core/framebuffer_config.h
@@ -6,6 +6,7 @@
6 6
7#include "common/common_types.h" 7#include "common/common_types.h"
8#include "common/math_util.h" 8#include "common/math_util.h"
9#include "core/hle/service/nvflinger/buffer_transform_flags.h"
9#include "core/hle/service/nvflinger/pixel_format.h" 10#include "core/hle/service/nvflinger/pixel_format.h"
10 11
11namespace Tegra { 12namespace Tegra {
@@ -14,29 +15,13 @@ namespace Tegra {
14 * Struct describing framebuffer configuration 15 * Struct describing framebuffer configuration
15 */ 16 */
16struct FramebufferConfig { 17struct FramebufferConfig {
17 enum class TransformFlags : u32 {
18 /// No transform flags are set
19 Unset = 0x00,
20 /// Flip source image horizontally (around the vertical axis)
21 FlipH = 0x01,
22 /// Flip source image vertically (around the horizontal axis)
23 FlipV = 0x02,
24 /// Rotate source image 90 degrees clockwise
25 Rotate90 = 0x04,
26 /// Rotate source image 180 degrees
27 Rotate180 = 0x03,
28 /// Rotate source image 270 degrees clockwise
29 Rotate270 = 0x07,
30 };
31
32 VAddr address{}; 18 VAddr address{};
33 u32 offset{}; 19 u32 offset{};
34 u32 width{}; 20 u32 width{};
35 u32 height{}; 21 u32 height{};
36 u32 stride{}; 22 u32 stride{};
37
38 TransformFlags transform_flags{};
39 android::PixelFormat pixel_format{}; 23 android::PixelFormat pixel_format{};
24 android::BufferTransformFlags transform_flags{};
40 Common::Rectangle<int> crop_rect; 25 Common::Rectangle<int> crop_rect;
41}; 26};
42 27