From: Zhigang Gong Subject: [PATCH 2/4] glamor: Added new data element to track uxa flags in intel structure. Date: Mon, 14 Nov 2011 20:09:02 +0800 Message-ID: <1321272544-29722-2-git-send-email-zhigang.gong@linux.intel.com> References: <1321272544-29722-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 313CD9E99B for ; Mon, 14 Nov 2011 04:20:50 -0800 (PST) In-Reply-To: <1321272544-29722-1-git-send-email-zhigang.gong@linux.intel.com> 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: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org As uxa_driver may be released before the last call to freeScreen and destroy the last pixmap, we have to introduce a new flag in intel structure to indicate whether we are using GLAMOR. This intel->uxa_flag is a clone of intel->uxa_driver->flags element. Signed-off-by: Zhigang Gong --- src/intel.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/intel.h b/src/intel.h index 3b3f87d..b24aa02 100644 --- a/src/intel.h +++ b/src/intel.h @@ -318,6 +318,7 @@ typedef struct intel_screen_private { void (*batch_commit_notify) (struct intel_screen_private *intel); uxa_driver_t *uxa_driver; + int uxa_flags; Bool need_sync; int accel_pixmap_offset_alignment; int accel_max_x; -- 1.7.4.4