diff options
| author | 2021-10-01 00:57:02 -0400 | |
|---|---|---|
| committer | 2021-10-03 00:35:57 -0400 | |
| commit | 427bf76e621cf0833bc1bbec7d8be891297223e7 (patch) | |
| tree | 5cc146d21972e1a7c424219482ef3393787afe6a /src/video_core/framebuffer_config.h | |
| parent | Merge pull request #7061 from ameerj/dma-buffer-misc (diff) | |
| download | yuzu-427bf76e621cf0833bc1bbec7d8be891297223e7.tar.gz yuzu-427bf76e621cf0833bc1bbec7d8be891297223e7.tar.xz yuzu-427bf76e621cf0833bc1bbec7d8be891297223e7.zip | |
gpu: Migrate implementation to the cpp file
Diffstat (limited to 'src/video_core/framebuffer_config.h')
| -rw-r--r-- | src/video_core/framebuffer_config.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/video_core/framebuffer_config.h b/src/video_core/framebuffer_config.h index b86c3a757..b1d455e30 100644 --- a/src/video_core/framebuffer_config.h +++ b/src/video_core/framebuffer_config.h | |||
| @@ -4,8 +4,10 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | namespace Tegra { | 7 | #include "common/common_types.h" |
| 8 | #include "common/math_util.h" | ||
| 8 | 9 | ||
| 10 | namespace Tegra { | ||
| 9 | /** | 11 | /** |
| 10 | * Struct describing framebuffer configuration | 12 | * Struct describing framebuffer configuration |
| 11 | */ | 13 | */ |
| @@ -16,6 +18,21 @@ struct FramebufferConfig { | |||
| 16 | B8G8R8A8_UNORM = 5, | 18 | B8G8R8A8_UNORM = 5, |
| 17 | }; | 19 | }; |
| 18 | 20 | ||
| 21 | enum class TransformFlags : u32 { | ||
| 22 | /// No transform flags are set | ||
| 23 | Unset = 0x00, | ||
| 24 | /// Flip source image horizontally (around the vertical axis) | ||
| 25 | FlipH = 0x01, | ||
| 26 | /// Flip source image vertically (around the horizontal axis) | ||
| 27 | FlipV = 0x02, | ||
| 28 | /// Rotate source image 90 degrees clockwise | ||
| 29 | Rotate90 = 0x04, | ||
| 30 | /// Rotate source image 180 degrees | ||
| 31 | Rotate180 = 0x03, | ||
| 32 | /// Rotate source image 270 degrees clockwise | ||
| 33 | Rotate270 = 0x07, | ||
| 34 | }; | ||
| 35 | |||
| 19 | VAddr address{}; | 36 | VAddr address{}; |
| 20 | u32 offset{}; | 37 | u32 offset{}; |
| 21 | u32 width{}; | 38 | u32 width{}; |
| @@ -23,7 +40,6 @@ struct FramebufferConfig { | |||
| 23 | u32 stride{}; | 40 | u32 stride{}; |
| 24 | PixelFormat pixel_format{}; | 41 | PixelFormat pixel_format{}; |
| 25 | 42 | ||
| 26 | using TransformFlags = Service::NVFlinger::BufferQueue::BufferTransformFlags; | ||
| 27 | TransformFlags transform_flags{}; | 43 | TransformFlags transform_flags{}; |
| 28 | Common::Rectangle<int> crop_rect; | 44 | Common::Rectangle<int> crop_rect; |
| 29 | }; | 45 | }; |