diff options
author | Petri Gynther <pgynther@google.com> | 2022-07-25 16:01:30 -0700 |
---|---|---|
committer | Petri Gynther <pgynther@google.com> | 2023-04-17 16:19:34 -0700 |
commit | f780ac56981c61e7a1bb746c43fd6fc775540954 (patch) | |
tree | 7ff3eee283176e6e44d7f1319dea35fe45e11671 | |
parent | be0d3d7fc36085be615de0a476c092871e1f8043 (diff) | |
download | zuma-f780ac56981c61e7a1bb746c43fd6fc775540954.tar.gz |
libhwc2.1: apply namespace for display units
As projects, display units can be different. To support this,
namespace is applied for display units.
It supports additional External Display.
Bug: 238373481
Bug: 272184398
Test: manual DP unit test
Signed-off-by: YongWook Shin <yongwook.shin@samsung.com>
Signed-off-by: Petri Gynther <pgynther@google.com>
Change-Id: I88697ab41c5b92af856bbe490823144a95e600ab
-rw-r--r-- | libhwc2.1/ExynosHWCModule.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libhwc2.1/ExynosHWCModule.h b/libhwc2.1/ExynosHWCModule.h index c020a44..16dd98d 100644 --- a/libhwc2.1/ExynosHWCModule.h +++ b/libhwc2.1/ExynosHWCModule.h @@ -121,13 +121,19 @@ static const exynos_mpp_t available_otf_mpp_units[] = { {MPP_DPP_GFS, MPP_LOGICAL_DPP_GFS, "DPP_GFS6", 6, 0, HWC_DISPLAY_SECONDARY_BIT, static_cast<uint32_t>(DPUF1), static_cast<uint32_t>(AXI0)}, // DPP12(IDMA_VGRFS5) in DPUF1 is connected with AXI0 port - {MPP_DPP_VGRFS, MPP_LOGICAL_DPP_VGRFS, "DPP_VGRFS5", 5, 0, HWC_DISPLAY_SECONDARY_BIT, + {MPP_DPP_VGRFS, MPP_LOGICAL_DPP_VGRFS, "DPP_VGRFS5", 5, 0, HWC_DISPLAY_EXTERNAL_BIT, static_cast<uint32_t>(DPUF1), static_cast<uint32_t>(AXI0)}, // DPP13(IDMA_GFS7) in DPUF1 is connected with AXI0 port {MPP_DPP_GFS, MPP_LOGICAL_DPP_GFS, "DPP_GFS7", 7, 0, HWC_DISPLAY_SECONDARY_BIT, static_cast<uint32_t>(DPUF1), static_cast<uint32_t>(AXI0)}, }; +static const std::array<exynos_display_t, 3> AVAILABLE_DISPLAY_UNITS = {{ + {HWC_DISPLAY_PRIMARY, 0, "PrimaryDisplay", "/dev/dri/card0", ""}, + {HWC_DISPLAY_PRIMARY, 1, "SecondaryDisplay", "/dev/dri/card0", ""}, + {HWC_DISPLAY_EXTERNAL, 0, "ExternalDisplay", "/dev/dri/card0", ""} +}}; + /* * Note : * When External or Virtual display is connected, |