summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Foss <robert.foss@collabora.com>2016-10-20 10:14:43 -0400
committerRobert Foss <robert.foss@collabora.com>2017-03-22 14:38:43 -0400
commitadad1c00aeee00e03a1abc3c7336b66652cf41ba (patch)
tree4209d0208065c87aa0eb4772ca2391c5cd032a3f
parentd72af41c6545b8e4503bdb2a51a6188393b68a5d (diff)
downloaddrm_hwcomposer-adad1c00aeee00e03a1abc3c7336b66652cf41ba.tar.gz
drm_hwcomposer-adad1c00aeee00e03a1abc3c7336b66652cf41ba.tar.xz
drm_hwcomposer: Add fence_out_ptr property to drmcrtc
Change-Id: I6892c1373ae735977a8f3ec5b67b8d1f748ac38c Signed-off-by: Robert Foss <robert.foss@collabora.com>
-rw-r--r--drmcrtc.cpp10
-rw-r--r--drmcrtc.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/drmcrtc.cpp b/drmcrtc.cpp
index 1fbdc12..c139869 100644
--- a/drmcrtc.cpp
+++ b/drmcrtc.cpp
@@ -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_;
+}
}
diff --git a/drmcrtc.h b/drmcrtc.h
index ad95352..2e8c811 100644
--- a/drmcrtc.h
+++ b/drmcrtc.h
@@ -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_;
};
}