sdm: Add virtual pipe listing support
-Populate virtual pipes listed by drm display driver
in resource info as listed in the priority order.
-Remove obsolete RGB support.
Change-Id: I8222a9308d59af681c76008a010ffe086c6bed32
CRs-fixed: 2024306
diff --git a/libdrmutils/drm_interface.h b/libdrmutils/drm_interface.h
index bf46200..6e87b71 100644
--- a/libdrmutils/drm_interface.h
+++ b/libdrmutils/drm_interface.h
@@ -203,11 +203,17 @@
V3,
};
+enum struct SmartDMARevision {
+ V1,
+ V2,
+};
+
/* Per CRTC Resource Info*/
struct DRMCrtcInfo {
bool has_src_split;
uint32_t max_blend_stages;
QSEEDVersion qseed_version;
+ SmartDMARevision smart_dma_rev;
};
enum struct DRMPlaneType {
@@ -223,6 +229,8 @@
};
struct DRMPlaneTypeInfo {
+ DRMPlaneType type;
+ uint32_t master_plane_id;
// FourCC format enum and modifier
std::vector<std::pair<uint32_t, uint64_t>> formats_supported;
uint32_t max_linewidth;
@@ -232,13 +240,8 @@
uint32_t max_vertical_deci;
};
-/* All DRM Planes Info*/
-struct DRMPlanesInfo {
- // Plane id and plane type sorted by highest to lowest priority
- std::vector<std::pair<uint32_t, DRMPlaneType>> planes;
- // Plane type and type info
- std::map<DRMPlaneType, DRMPlaneTypeInfo> types;
-};
+// All DRM Planes as map<Plane_id , plane_type_info> listed from highest to lowest priority
+typedef std::vector<std::pair<uint32_t, DRMPlaneTypeInfo>> DRMPlanesInfo;
enum struct DRMTopology {
UNKNOWN, // To be compat with driver defs in sde_kms.h