drm_hwcomposer: Add hwc3 frontend stub
Adds a stub implementation of the HWC3 interface and service.
This is a barebones implementation of HWC3 interface that should contain
all the necessary code to build a HWC3 module but provides no
functionality.
The project [1] was used as a reference.
[1]: https://android.googlesource.com/platform/hardware/google/graphics/common/+/refs/tags/android-13.0.0_r18/hwc3/
Change-Id: I99754bb72f12183a94b24b7182cb7857173b31d2
Co-authored-by: Roman Stratiienko <r.stratiienko@gmail.com>
Signed-off-by: Dennis Tsiang <dennis.tsiang@arm.com>
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Signed-off-by: Normunds Rieksts <normunds.rieksts@arm.com>
Signed-off-by: Drew Davenport <ddavenport@google.com>
diff --git a/meson.build b/meson.build
index c2e5fb6..113cb50 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project(
'drm_hwcomposer',
['c', 'cpp'],
- version : '2',
+ version : '3',
license : 'APACHE-2.0',
meson_version : '>= 0.56',
default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17', 'cpp_rtti=false']
@@ -18,6 +18,14 @@
'utils/fd.cpp',
)
+srcs_hwc2_device = [
+ 'hwc2_device/hwc2_device.cpp',
+ 'hwc2_device/DrmHwcTwo.cpp',
+ 'hwc2_device/HwcDisplayConfigs.cpp',
+ 'hwc2_device/HwcDisplay.cpp',
+ 'hwc2_device/HwcLayer.cpp',
+]
+
deps = [
dependency('cutils'),
dependency('drm'),
@@ -50,3 +58,4 @@
)
subdir('hwc2_device')
+subdir('hwc3')