diff mbox

[hwc,v2,2/6] drm_hwcomposer: Add support for IN_FENCE_FD property to DrmPlane

Message ID 20170927115841.29134-3-robert.foss@collabora.com (mailing list archive)
State New, archived
Headers show

Commit Message

Robert Foss Sept. 27, 2017, 11:58 a.m. UTC
Add support for the IN_FENCE_FD property to DrmPlane.

Signed-off-by: Robert Foss <robert.foss@collabora.com>
---
 drmplane.cpp | 8 ++++++++
 drmplane.h   | 2 ++
 2 files changed, 10 insertions(+)

Comments

Sean Paul Sept. 27, 2017, 7:14 p.m. UTC | #1
On Wed, Sep 27, 2017 at 7:58 AM, Robert Foss <robert.foss@collabora.com> wrote:
> Add support for the IN_FENCE_FD property to DrmPlane.
>
> Signed-off-by: Robert Foss <robert.foss@collabora.com>

Reviewed-by: Sean Paul <seanpaul@chromium.org>

> ---
>  drmplane.cpp | 8 ++++++++
>  drmplane.h   | 2 ++
>  2 files changed, 10 insertions(+)
>
> diff --git a/drmplane.cpp b/drmplane.cpp
> index c4ea722..1f739ae 100644
> --- a/drmplane.cpp
> +++ b/drmplane.cpp
> @@ -126,6 +126,10 @@ int DrmPlane::Init() {
>    if (ret)
>      ALOGI("Could not get alpha property");
>
> +  ret = drm_->GetPlaneProperty(*this, "IN_FENCE_FD", &in_fence_fd_property_);
> +  if (ret)
> +    ALOGI("Could not get IN_FENCE_FD property");
> +
>    return 0;
>  }
>
> @@ -188,4 +192,8 @@ const DrmProperty &DrmPlane::rotation_property() const {
>  const DrmProperty &DrmPlane::alpha_property() const {
>    return alpha_property_;
>  }
> +
> +const DrmProperty &DrmPlane::in_fence_fd_property() const {
> +  return in_fence_fd_property_;
> +}
>  }
> diff --git a/drmplane.h b/drmplane.h
> index 2e06986..5b73b08 100644
> --- a/drmplane.h
> +++ b/drmplane.h
> @@ -54,6 +54,7 @@ class DrmPlane {
>    const DrmProperty &src_h_property() const;
>    const DrmProperty &rotation_property() const;
>    const DrmProperty &alpha_property() const;
> +  const DrmProperty &in_fence_fd_property() const;
>
>   private:
>    DrmResources *drm_;
> @@ -75,6 +76,7 @@ class DrmPlane {
>    DrmProperty src_h_property_;
>    DrmProperty rotation_property_;
>    DrmProperty alpha_property_;
> +  DrmProperty in_fence_fd_property_;
>  };
>  }
>
> --
> 2.11.0
>
diff mbox

Patch

diff --git a/drmplane.cpp b/drmplane.cpp
index c4ea722..1f739ae 100644
--- a/drmplane.cpp
+++ b/drmplane.cpp
@@ -126,6 +126,10 @@  int DrmPlane::Init() {
   if (ret)
     ALOGI("Could not get alpha property");
 
+  ret = drm_->GetPlaneProperty(*this, "IN_FENCE_FD", &in_fence_fd_property_);
+  if (ret)
+    ALOGI("Could not get IN_FENCE_FD property");
+
   return 0;
 }
 
@@ -188,4 +192,8 @@  const DrmProperty &DrmPlane::rotation_property() const {
 const DrmProperty &DrmPlane::alpha_property() const {
   return alpha_property_;
 }
+
+const DrmProperty &DrmPlane::in_fence_fd_property() const {
+  return in_fence_fd_property_;
+}
 }
diff --git a/drmplane.h b/drmplane.h
index 2e06986..5b73b08 100644
--- a/drmplane.h
+++ b/drmplane.h
@@ -54,6 +54,7 @@  class DrmPlane {
   const DrmProperty &src_h_property() const;
   const DrmProperty &rotation_property() const;
   const DrmProperty &alpha_property() const;
+  const DrmProperty &in_fence_fd_property() const;
 
  private:
   DrmResources *drm_;
@@ -75,6 +76,7 @@  class DrmPlane {
   DrmProperty src_h_property_;
   DrmProperty rotation_property_;
   DrmProperty alpha_property_;
+  DrmProperty in_fence_fd_property_;
 };
 }