From: sagar.a.kamble@intel.com Subject: [PATCH v4 1/1] Documentation: drm: describing plane alpha and color blending property Date: Thu, 27 Mar 2014 23:01:36 +0530 Message-ID: <1395941496-20665-1-git-send-email-sagar.a.kamble@intel.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0644960243==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: intel-gfx@lists.freedesktop.org Cc: linux-doc@vger.kernel.org, daniel.vetter@ffwll.ch, dri-devel@lists.freedesktop.org, vijay.a.purushothaman@intel.com, laurent.pinchart@ideasonboard.com, rob@landley.net, alexander.deucher@amd.com, airlied@redhat.com, Sagar Kamble List-Id: dri-devel@lists.freedesktop.org --===============0644960243== Content-Type: text/plain; charset=y Content-Transfer-Encoding: quoted-printable From: Sagar Kamble v2: Added description for "src-color" and "constant-alpha" property. [Review by Laurent Pinchart] v3: Fixed typos. [Review by David Herrmann] v4: Additional formatting and modified description. [Review by David Herr= mann] Cc: rob@landley.net Cc: airlied@redhat.com Cc: daniel.vetter@ffwll.ch Cc: laurent.pinchart@ideasonboard.com Cc: dh.herrmann@gmail.com Cc: alexander.deucher@amd.com Cc: ville.syrjala@linux.intel.com Cc: sagar.a.kamble@intel.com Cc: vijay.a.purushothaman@intel.com Cc: linux-doc@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Sagar Kamble --- Documentation/DocBook/drm.tmpl | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.t= mpl index 104402a..dd2ae67 100644 --- a/Documentation/DocBook/drm.tmpl +++ b/Documentation/DocBook/drm.tmpl @@ -2264,6 +2264,20 @@ void intel_crt_init(struct drm_device *dev) + In addition to above types, properties can be constrained by suppl= ying additional + flags while creating the property. Supported flags are + + + DRM_MODE_PROP_32BIT_PAIR + This flag is applicable to Bitmask enum proper= ties. It creates + Pair-properties that store two packed 32 bit values as 64bit unsign= ed integer + (often used as key-value pair). The lower 32 bits contain the first= value (also: key), + while the upper 32 bits contain the second value. + Written as: ({key (LSB 32 bits), value (MSB 32 bits)}). + + + + To create a property drivers call one of the following functions d= epending on the property type. All property creation functions take propert= y flags and name, as well as type-specific arguments. @@ -2336,7 +2350,7 @@ void intel_crt_init(struct drm_device *dev) DRM - Generic + Generic =E2=80=9CEDID=E2=80=9D BLOB | IMMUTABLE 0 @@ -2351,6 +2365,22 @@ void intel_crt_init(struct drm_device *dev) Contains DPMS operation mode value. + =E2=80=9Cblend=E2=80=9D + BITMASK | 32BIT_PAIR + { "zero" =3D 0, "one" =3D 1, "src-color" =3D 2, "on= e-minus-src-color" =3D 3 + , "dst-color" =3D 4, "one-minus-dst-color" =3D 5, "src-alpha"=3D 6, "on= e-minus-src-alpha" =3D 7, "dst-alpha" =3D 8 + , "one-minus-dst-alpha" =3D 9, "constant-color" =3D 10, "one-minus-cons= tant-color" =3D 11, "constant-alpha" =3D 12 + , "one-minus-constant-alpha" =3D 13, "alpha-saturate" =3D 14 } + Plane + Contains plane alpha/color blending operation value= s. These are modeled after the glBlendFunc API + in OpenGL. Not all modes are supported by all drivers. The first value = of the 32BIT_PAIR describes the blending mode + of the source plane, the second value describes the blending factors of= the source plane. + + For e.g. to apply constant alpha of 0xFF on source plane, the first val= ue of this property for source plane should + be set to 2^10 and second value to value of alpha(0xFF). + + + DVI-I =E2=80=9Csubconnector=E2=80=9D ENUM --=20 1.8.5 --===============0644960243== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0644960243==--