From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 2/3] drm/i915: add destination color key support Date: Mon, 12 Dec 2011 23:14:46 +0100 Message-ID: <20111212221445.GC6832@phenom.ffwll.local> References: <1323289763-1963-1-git-send-email-jbarnes@virtuousgeek.org> <1323289763-1963-3-git-send-email-jbarnes@virtuousgeek.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ww0-f43.google.com (mail-ww0-f43.google.com [74.125.82.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 572149E81E for ; Mon, 12 Dec 2011 14:13:11 -0800 (PST) Received: by wgbds11 with SMTP id ds11so9873847wgb.12 for ; Mon, 12 Dec 2011 14:13:10 -0800 (PST) Content-Disposition: inline In-Reply-To: <1323289763-1963-3-git-send-email-jbarnes@virtuousgeek.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Jesse Barnes Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Wed, Dec 07, 2011 at 12:29:22PM -0800, Jesse Barnes wrote: > Add new ioctls for getting and setting the current destination color > key. This allows for simple overlay display control by matching a color > key value in the primary plane before blending the overlay on top. > > v2: remove unnecessary mutex acquire/release around reg accesses > > Signed-off-by: Jesse Barnes [snip] > +/* Set the destination color key on a given sprite */ > +struct drm_intel_set_sprite_destkey { > + __u32 plane_id; > + __u32 value; > +}; > + > +/* Get the current destination color key on a given sprite */ > +struct drm_intel_get_sprite_destkey { > + __u32 plane_id; > + __u32 value; > +}; As explained in my top-reply, I think we want a __u32 flags here to enable the colorkey (and maybe switch between dst/src color key). Nothing else to complain about here. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48