diff options
| author | 2019-01-02 15:26:41 -0500 | |
|---|---|---|
| committer | 2019-01-02 17:35:58 -0500 | |
| commit | fe3bf4f07547b848bc2b79605c4bcabb07642662 (patch) | |
| tree | 7a14010850826d64a8ee4433288b225ca789e171 /src | |
| parent | Merge pull request #1966 from lioncash/backtrace (diff) | |
| download | yuzu-fe3bf4f07547b848bc2b79605c4bcabb07642662.tar.gz yuzu-fe3bf4f07547b848bc2b79605c4bcabb07642662.tar.xz yuzu-fe3bf4f07547b848bc2b79605c4bcabb07642662.zip | |
service/vi: Document unknown DisplayInfo struct members
It appears that the two members indicate whether a display has a bounded
number of layers (and if set, the second member indicates the total
number of layers).
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/vi/vi.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 311b0c765..593e26ea8 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp | |||
| @@ -32,10 +32,21 @@ | |||
| 32 | namespace Service::VI { | 32 | namespace Service::VI { |
| 33 | 33 | ||
| 34 | struct DisplayInfo { | 34 | struct DisplayInfo { |
| 35 | /// The name of this particular display. | ||
| 35 | char display_name[0x40]{"Default"}; | 36 | char display_name[0x40]{"Default"}; |
| 36 | u64 unknown_1{1}; | 37 | |
| 37 | u64 unknown_2{1}; | 38 | /// Whether or not the display has a limited number of layers. |
| 39 | u8 has_limited_layers{1}; | ||
| 40 | INSERT_PADDING_BYTES(7){}; | ||
| 41 | |||
| 42 | /// Indicates the total amount of layers supported by the display. | ||
| 43 | /// @note This is only valid if has_limited_layers is set. | ||
| 44 | u64 max_layers{1}; | ||
| 45 | |||
| 46 | /// Maximum width in pixels. | ||
| 38 | u64 width{1280}; | 47 | u64 width{1280}; |
| 48 | |||
| 49 | /// Maximum height in pixels. | ||
| 39 | u64 height{720}; | 50 | u64 height{720}; |
| 40 | }; | 51 | }; |
| 41 | static_assert(sizeof(DisplayInfo) == 0x60, "DisplayInfo has wrong size"); | 52 | static_assert(sizeof(DisplayInfo) == 0x60, "DisplayInfo has wrong size"); |