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 <zhigang.g...@linux.intel.com>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to