@@ -51,6 +51,12 @@ int DrmCrtc::Init() {
ALOGE("Failed to get MODE_ID property");
return ret;
}
+
+ ret = drm_->GetCrtcProperty(*this, "OUT_FENCE_PTR", &out_fence_ptr_property_);
+ if (ret) {
+ ALOGE("Failed to get OUT_FENCE_PTR property");
+ return ret;
+ }
return 0;
}
@@ -81,4 +87,8 @@ const DrmProperty &DrmCrtc::active_property() const {
const DrmProperty &DrmCrtc::mode_property() const {
return mode_property_;
}
+
+const DrmProperty &DrmCrtc::out_fence_ptr_property() const {
+ return out_fence_ptr_property_;
+}
}
@@ -45,6 +45,7 @@ class DrmCrtc {
const DrmProperty &active_property() const;
const DrmProperty &mode_property() const;
+ const DrmProperty &out_fence_ptr_property() const;
private:
DrmResources *drm_;
@@ -63,6 +64,7 @@ class DrmCrtc {
DrmProperty active_property_;
DrmProperty mode_property_;
+ DrmProperty out_fence_ptr_property_;
};
}
Add support for handling the FENCE_OUT_PTR property to DrmCrtc Signed-off-by: Robert Foss <robert.foss@collabora.com> --- drmcrtc.cpp | 10 ++++++++++ drmcrtc.h | 2 ++ 2 files changed, 12 insertions(+)