From patchwork Mon Mar 8 09:27:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 84016 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o289R6rB023496 for ; Mon, 8 Mar 2010 09:27:41 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9F48F9E7DB; Mon, 8 Mar 2010 01:27:04 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from localhost.localdomain (cable-static-49-187.intergga.ch [157.161.49.187]) by gabe.freedesktop.org (Postfix) with ESMTP id 219259E78C for ; Mon, 8 Mar 2010 01:27:02 -0800 (PST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.14.3/8.14.3) with ESMTP id o289RvJJ001732; Mon, 8 Mar 2010 10:27:57 +0100 Received: (from daniel@localhost) by localhost.localdomain (8.14.3/8.14.3/Submit) id o289Runf001731; Mon, 8 Mar 2010 10:27:56 +0100 From: Daniel Vetter To: intel-gfx@lists.freedesktop.org Date: Mon, 8 Mar 2010 10:27:47 +0100 Message-Id: <1268040467-1699-1-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.6.6.1 Cc: Daniel Vetter Subject: [Intel-gfx] [PATCH] i915 XvMC: fixup colors X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 08 Mar 2010 09:27:41 +0000 (UTC) diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c index 190b736..0888d63 100644 --- a/src/xvmc/i915_xvmc.c +++ b/src/xvmc/i915_xvmc.c @@ -31,9 +31,9 @@ #include "i915_structs.h" #include "i915_program.h" -#define UOFFSET(surface) (SIZE_Y420(surface->width, surface->height) + \ +#define UOFFSET(surface) (SIZE_Y420(surface->width, surface->height)) +#define VOFFSET(surface) (SIZE_Y420(surface->width, surface->height) + \ SIZE_UV420(surface->width, surface->height)) -#define VOFFSET(surface) (SIZE_Y420(surface->width, surface->height)) typedef union { int16_t component[2];