Răsfoiți Sursa

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).
Lioncash 7 ani în urmă
părinte
comite
fe3bf4f075
1 a modificat fișierele cu 13 adăugiri și 2 ștergeri
  1. 13 2
      src/core/hle/service/vi/vi.cpp

+ 13 - 2
src/core/hle/service/vi/vi.cpp

@@ -32,10 +32,21 @@
 namespace Service::VI {
 
 struct DisplayInfo {
+    /// The name of this particular display.
     char display_name[0x40]{"Default"};
-    u64 unknown_1{1};
-    u64 unknown_2{1};
+
+    /// Whether or not the display has a limited number of layers.
+    u8 has_limited_layers{1};
+    INSERT_PADDING_BYTES(7){};
+
+    /// Indicates the total amount of layers supported by the display.
+    /// @note This is only valid if has_limited_layers is set.
+    u64 max_layers{1};
+
+    /// Maximum width in pixels.
     u64 width{1280};
+
+    /// Maximum height in pixels.
     u64 height{720};
 };
 static_assert(sizeof(DisplayInfo) == 0x60, "DisplayInfo has wrong size");