diff options
author | Shawn Xiao <b49994@freescale.com> | 2015-12-11 16:51:47 +0800 |
---|---|---|
committer | Octavian Purdila <octavian.purdila@nxp.com> | 2017-02-23 14:21:42 +0200 |
commit | bcc1174dfc97222c65653bada1df69211b65fac2 (patch) | |
tree | 56263a2d878c37e946afa29c9f40fb5a0175ca6c /drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h | |
parent | 6094d6808b326ec517197233a000334c46203941 (diff) |
MGS-1274 gpu: Integrate 5.0.11.p8 driver
Once received Vivate 5.0.11.p8_early_pre driver, integrate the kernel
related part to kernel.
Signed-off-by: Shawn Xiao <b49994@freescale.com>
Diffstat (limited to 'drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h')
-rw-r--r-- | drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h index 5fdc54aa4e60..dc982c31e138 100644 --- a/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h +++ b/drivers/mxc/gpu-viv/hal/kernel/inc/gc_hal_eglplatform.h @@ -2,7 +2,7 @@ * * The MIT License (MIT) * -* Copyright (c) 2014 Vivante Corporation +* Copyright (c) 2014 - 2015 Vivante Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -26,7 +26,7 @@ * * The GPL License (GPL) * -* Copyright (C) 2014 Vivante Corporation +* Copyright (C) 2014 - 2015 Vivante Corporation * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -93,9 +93,15 @@ typedef struct _DFBPixmap * HALNativePixmapType; /* Wayland platform. */ #include <wayland-egl.h> +#include <pthread.h> + #define WL_COMPOSITOR_SIGNATURE (0x31415926) +#define WL_CLIENT_SIGNATURE (0x27182818) + +#define WL_LOCAL_DISPLAY_SIGNATURE (0x27182991) + typedef struct _gcsWL_VIV_BUFFER { struct wl_resource *wl_buffer; @@ -114,6 +120,12 @@ typedef struct _gcsWL_EGL_DISPLAY gctINT file; } gcsWL_EGL_DISPLAY; +typedef struct _gcsWL_LOCAL_DISPLAY +{ + gctUINT wl_signature; + gctPOINTER localInfo; +} gcsWL_LOCAL_DISPLAY; + typedef struct _gcsWL_EGL_BUFFER_INFO { gctINT32 width; @@ -125,16 +137,17 @@ typedef struct _gcsWL_EGL_BUFFER_INFO gcePOOL pool; gctUINT bytes; gcoSURF surface; - gcoSURF attached_surface; gctINT32 invalidate; gctBOOL locked; } gcsWL_EGL_BUFFER_INFO; typedef struct _gcsWL_EGL_BUFFER { - struct wl_buffer* wl_buffer; + gctUINT wl_signature; gcsWL_EGL_BUFFER_INFO info; + struct wl_buffer* wl_buffer; struct wl_callback* frame_callback; + struct wl_list link; } gcsWL_EGL_BUFFER; typedef struct _gcsWL_EGL_WINDOW_INFO @@ -151,13 +164,17 @@ typedef struct _gcsWL_EGL_WINDOW_INFO struct wl_egl_window { + gctUINT wl_signature; gcsWL_EGL_DISPLAY* display; gcsWL_EGL_BUFFER **backbuffers; gcsWL_EGL_WINDOW_INFO* info; gctINT noResolve; gctINT32 attached_width; gctINT32 attached_height; + gcsATOM_PTR reference; + pthread_mutex_t window_mutex; struct wl_surface* surface; + struct wl_list link; }; typedef void* HALNativeDisplayType; @@ -677,8 +694,8 @@ gcoOS_ResizeWindow( IN gctPOINTER localDisplay, IN HALNativeWindowType Drawable, IN gctUINT Width, - IN gctUINT Height) - ; + IN gctUINT Height + ); #ifdef USE_FREESCALE_EGL_ACCEL gceSTATUS |