From: zhigang.gong@linux.intel.com Subject: [PATCH] uxa/glamor/dri: Fix a typo bug when fixup glamor pixmap. Date: Tue, 7 Feb 2012 09:40:54 +0800 Message-ID: <1328578854-28083-1-git-send-email-zhigang.gong@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 346489F03E for ; Mon, 6 Feb 2012 17:57:53 -0800 (PST) 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: chris@chris-wilson.co.uk Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org From: Zhigang Gong Should modify the old pixmap's header not the new one which was already destroyed. Signed-off-by: Zhigang Gong --- src/intel_dri.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/intel_dri.c b/src/intel_dri.c index 0c6d45c..8bc6157 100644 --- a/src/intel_dri.c +++ b/src/intel_dri.c @@ -174,7 +174,7 @@ static PixmapPtr fixup_glamor(DrawablePtr drawable, PixmapPtr pixmap) xf86DrvMsg(scrn->scrnIndex, X_WARNING, "Failed to get DRI drawable for glamor pixmap.\n"); - screen->ModifyPixmapHeader(pixmap, + screen->ModifyPixmapHeader(old, drawable->width, drawable->height, 0, 0, -- 1.7.4.4