2008-12-16 21:30:14 +01:00
|
|
|
/*
|
|
|
|
* Copyright © 2008 Intel Corporation
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice (including the next
|
|
|
|
* paragraph) shall be included in all copies or substantial portions of the
|
|
|
|
* Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
|
* IN THE SOFTWARE.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Eric Anholt <eric@anholt.net>
|
2012-04-28 08:13:47 +02:00
|
|
|
* Zhigang Gong <zhigang.gong@linux.intel.com>
|
2008-12-16 21:30:14 +01:00
|
|
|
*
|
|
|
|
*/
|
2008-12-16 23:00:05 +01:00
|
|
|
|
|
|
|
#ifndef GLAMOR_H
|
|
|
|
#define GLAMOR_H
|
|
|
|
|
2012-02-10 13:54:44 +01:00
|
|
|
#include <scrnintstr.h>
|
|
|
|
#include <pixmapstr.h>
|
|
|
|
#include <gcstruct.h>
|
|
|
|
#include <picturestr.h>
|
|
|
|
#include <fb.h>
|
|
|
|
#include <fbpict.h>
|
2013-12-28 07:19:07 +01:00
|
|
|
#ifdef GLAMOR_FOR_XORG
|
|
|
|
#include <xf86xv.h>
|
|
|
|
#endif
|
2013-12-18 20:41:33 +01:00
|
|
|
|
2013-12-19 00:27:52 +01:00
|
|
|
struct glamor_context;
|
|
|
|
|
2011-12-12 00:09:03 +01:00
|
|
|
/*
|
|
|
|
* glamor_pixmap_type : glamor pixmap's type.
|
|
|
|
* @MEMORY: pixmap is in memory.
|
|
|
|
* @TEXTURE_DRM: pixmap is in a texture created from a DRM buffer.
|
2011-12-13 15:48:34 +01:00
|
|
|
* @SEPARATE_TEXTURE: The texture is created from a DRM buffer, but
|
|
|
|
* the format is incompatible, so this type of pixmap
|
|
|
|
* will never fallback to DDX layer.
|
2011-12-12 00:09:03 +01:00
|
|
|
* @DRM_ONLY: pixmap is in a external DRM buffer.
|
|
|
|
* @TEXTURE_ONLY: pixmap is in an internal texture.
|
|
|
|
*/
|
2013-12-18 20:59:07 +01:00
|
|
|
typedef enum glamor_pixmap_type {
|
|
|
|
GLAMOR_MEMORY,
|
|
|
|
GLAMOR_TEXTURE_DRM,
|
|
|
|
GLAMOR_DRM_ONLY,
|
|
|
|
GLAMOR_TEXTURE_ONLY,
|
2011-12-12 00:09:03 +01:00
|
|
|
} glamor_pixmap_type_t;
|
|
|
|
|
2011-08-24 10:54:32 +02:00
|
|
|
#define GLAMOR_EGL_EXTERNAL_BUFFER 3
|
2014-10-30 04:30:12 +01:00
|
|
|
#define GLAMOR_USE_EGL_SCREEN (1 << 0)
|
|
|
|
#define GLAMOR_NO_DRI3 (1 << 1)
|
|
|
|
#define GLAMOR_VALID_FLAGS (GLAMOR_USE_EGL_SCREEN \
|
2013-12-31 09:07:42 +01:00
|
|
|
| GLAMOR_NO_DRI3)
|
2012-01-31 11:16:58 +01:00
|
|
|
|
2011-12-16 08:04:33 +01:00
|
|
|
/* @glamor_init: Initialize glamor internal data structure.
|
|
|
|
*
|
|
|
|
* @screen: Current screen pointer.
|
|
|
|
* @flags: Please refer the flags description above.
|
|
|
|
*
|
2012-01-31 11:16:58 +01:00
|
|
|
* @GLAMOR_USE_EGL_SCREEN:
|
|
|
|
* If you are using EGL layer, then please set this bit
|
|
|
|
* on, otherwise, clear it.
|
|
|
|
*
|
2014-10-30 04:30:12 +01:00
|
|
|
* @GLAMOR_NO_DRI3
|
|
|
|
* Disable the built-in DRI3 support
|
|
|
|
*
|
2011-12-16 08:04:33 +01:00
|
|
|
* This function initializes necessary internal data structure
|
|
|
|
* for glamor. And before calling into this function, the OpenGL
|
2012-01-19 13:47:55 +01:00
|
|
|
* environment should be ready. Should be called before any real
|
2012-01-31 11:16:58 +01:00
|
|
|
* glamor rendering or texture allocation functions. And should
|
|
|
|
* be called after the DDX's screen initialization or at the last
|
|
|
|
* step of the DDX's screen initialization.
|
2011-12-16 08:04:33 +01:00
|
|
|
*/
|
2011-08-23 04:31:50 +02:00
|
|
|
extern _X_EXPORT Bool glamor_init(ScreenPtr screen, unsigned int flags);
|
|
|
|
extern _X_EXPORT void glamor_fini(ScreenPtr screen);
|
2012-01-18 10:12:32 +01:00
|
|
|
|
2012-01-19 13:47:55 +01:00
|
|
|
/* This function is used to free the glamor private screen's
|
|
|
|
* resources. If the DDX driver is not set GLAMOR_USE_SCREEN,
|
|
|
|
* then, DDX need to call this function at proper stage, if
|
|
|
|
* it is the xorg DDX driver,then it should be called at free
|
|
|
|
* screen stage not the close screen stage. The reason is after
|
|
|
|
* call to this function, the xorg DDX may need to destroy the
|
|
|
|
* screen pixmap which must be a glamor pixmap and requires
|
|
|
|
* the internal data structure still exist at that time.
|
|
|
|
* Otherwise, the glamor internal structure will not be freed.*/
|
2012-07-16 05:25:09 +02:00
|
|
|
extern _X_EXPORT Bool glamor_close_screen(ScreenPtr screen);
|
2012-01-19 13:47:55 +01:00
|
|
|
|
2012-01-18 10:12:32 +01:00
|
|
|
/* Let glamor to know the screen's fbo. The low level
|
|
|
|
* driver should already assign a tex
|
|
|
|
* to this pixmap through the set_pixmap_texture. */
|
2013-12-18 20:59:07 +01:00
|
|
|
extern _X_EXPORT void glamor_set_screen_pixmap(PixmapPtr screen_pixmap,
|
|
|
|
PixmapPtr *back_pixmap);
|
2012-01-18 10:12:32 +01:00
|
|
|
|
2013-12-18 22:24:14 +01:00
|
|
|
extern _X_EXPORT uint32_t glamor_get_pixmap_texture(PixmapPtr pixmap);
|
|
|
|
|
2012-01-18 10:12:32 +01:00
|
|
|
extern _X_EXPORT void glamor_set_pixmap_texture(PixmapPtr pixmap,
|
2013-12-18 20:59:07 +01:00
|
|
|
unsigned int tex);
|
2011-12-12 00:09:03 +01:00
|
|
|
|
2013-12-18 20:59:07 +01:00
|
|
|
extern _X_EXPORT void glamor_set_pixmap_type(PixmapPtr pixmap,
|
|
|
|
glamor_pixmap_type_t type);
|
2014-12-10 08:21:44 +01:00
|
|
|
extern _X_EXPORT void glamor_destroy_textured_pixmap(PixmapPtr pixmap);
|
2011-11-02 06:44:50 +01:00
|
|
|
extern _X_EXPORT void glamor_block_handler(ScreenPtr screen);
|
2014-03-19 05:23:24 +01:00
|
|
|
|
2013-12-18 20:59:07 +01:00
|
|
|
extern _X_EXPORT PixmapPtr glamor_create_pixmap(ScreenPtr screen, int w, int h,
|
|
|
|
int depth, unsigned int usage);
|
2014-04-01 03:04:07 +02:00
|
|
|
extern _X_EXPORT Bool glamor_destroy_pixmap(PixmapPtr pixmap);
|
2011-08-24 10:54:32 +02:00
|
|
|
|
2014-03-19 05:23:24 +01:00
|
|
|
#define GLAMOR_CREATE_PIXMAP_CPU 0x100
|
|
|
|
#define GLAMOR_CREATE_PIXMAP_FIXUP 0x101
|
|
|
|
#define GLAMOR_CREATE_FBO_NO_FBO 0x103
|
|
|
|
#define GLAMOR_CREATE_NO_LARGE 0x105
|
2014-04-01 03:00:54 +02:00
|
|
|
#define GLAMOR_CREATE_PIXMAP_NO_TEXTURE 0x106
|
2014-03-19 05:23:24 +01:00
|
|
|
|
2012-02-17 09:56:05 +01:00
|
|
|
/* @glamor_egl_exchange_buffers: Exchange the underlying buffers(KHR image,fbo).
|
|
|
|
*
|
|
|
|
* @front: front pixmap.
|
|
|
|
* @back: back pixmap.
|
|
|
|
*
|
|
|
|
* Used by the DRI2 page flip. This function will exchange the KHR images and
|
|
|
|
* fbos of the two pixmaps.
|
|
|
|
* */
|
2013-12-18 20:59:07 +01:00
|
|
|
extern _X_EXPORT void glamor_egl_exchange_buffers(PixmapPtr front,
|
|
|
|
PixmapPtr back);
|
2012-02-17 09:56:05 +01:00
|
|
|
|
2013-12-18 20:59:07 +01:00
|
|
|
extern _X_EXPORT void glamor_pixmap_exchange_fbos(PixmapPtr front,
|
|
|
|
PixmapPtr back);
|
2012-05-15 04:42:41 +02:00
|
|
|
|
2013-12-05 08:49:15 +01:00
|
|
|
/* The DDX is not supposed to call these three functions */
|
|
|
|
extern _X_EXPORT void glamor_enable_dri3(ScreenPtr screen);
|
2013-12-18 20:59:07 +01:00
|
|
|
extern _X_EXPORT unsigned int glamor_egl_create_argb8888_based_texture(ScreenPtr
|
|
|
|
screen,
|
|
|
|
int w,
|
2015-06-10 06:46:22 +02:00
|
|
|
int h,
|
|
|
|
Bool linear);
|
2013-12-18 20:59:07 +01:00
|
|
|
extern _X_EXPORT int glamor_egl_dri3_fd_name_from_tex(ScreenPtr, PixmapPtr,
|
|
|
|
unsigned int, Bool,
|
|
|
|
CARD16 *, CARD32 *);
|
2013-12-05 08:49:15 +01:00
|
|
|
|
2014-12-05 19:58:28 +01:00
|
|
|
extern void glamor_egl_destroy_pixmap_image(PixmapPtr pixmap);
|
|
|
|
|
2014-12-09 21:28:38 +01:00
|
|
|
extern _X_EXPORT void *glamor_egl_get_gbm_device(ScreenPtr screen);
|
|
|
|
|
2013-12-31 03:49:46 +01:00
|
|
|
/* @glamor_supports_pixmap_import_export: Returns whether
|
|
|
|
* glamor_fd_from_pixmap(), glamor_name_from_pixmap(), and
|
|
|
|
* glamor_pixmap_from_fd() are supported.
|
2013-12-05 08:49:15 +01:00
|
|
|
*
|
|
|
|
* @screen: Current screen pointer.
|
|
|
|
*
|
2013-12-31 03:49:46 +01:00
|
|
|
* To have DRI3 support enabled, glamor and glamor_egl need to be
|
|
|
|
* initialized. glamor also has to be compiled with gbm support.
|
|
|
|
*
|
|
|
|
* The EGL layer needs to have the following extensions working:
|
|
|
|
*
|
2013-12-05 08:49:15 +01:00
|
|
|
* .EGL_KHR_gl_texture_2D_image
|
|
|
|
* .EGL_EXT_image_dma_buf_import
|
|
|
|
* */
|
2013-12-31 03:49:46 +01:00
|
|
|
extern _X_EXPORT Bool glamor_supports_pixmap_import_export(ScreenPtr screen);
|
2013-12-05 08:49:15 +01:00
|
|
|
|
2013-12-31 03:49:46 +01:00
|
|
|
/* @glamor_fd_from_pixmap: Get a dma-buf fd from a pixmap.
|
2013-12-05 08:49:15 +01:00
|
|
|
*
|
|
|
|
* @screen: Current screen pointer.
|
|
|
|
* @pixmap: The pixmap from which we want the fd.
|
|
|
|
* @stride, @size: Pointers to fill the stride and size of the
|
|
|
|
* buffer associated to the fd.
|
|
|
|
*
|
|
|
|
* the pixmap and the buffer associated by the fd will share the same
|
|
|
|
* content.
|
|
|
|
* Returns the fd on success, -1 on error.
|
|
|
|
* */
|
2013-12-31 03:49:46 +01:00
|
|
|
extern _X_EXPORT int glamor_fd_from_pixmap(ScreenPtr screen,
|
|
|
|
PixmapPtr pixmap,
|
|
|
|
CARD16 *stride, CARD32 *size);
|
2013-12-05 08:49:15 +01:00
|
|
|
|
2013-12-31 03:49:46 +01:00
|
|
|
/**
|
|
|
|
* @glamor_name_from_pixmap: Gets a gem name from a pixmap.
|
2013-12-05 08:49:15 +01:00
|
|
|
*
|
|
|
|
* @pixmap: The pixmap from which we want the gem name.
|
|
|
|
*
|
2013-12-31 03:49:46 +01:00
|
|
|
* the pixmap and the buffer associated by the gem name will share the
|
|
|
|
* same content. This function can be used by the DDX to support DRI2,
|
|
|
|
* and needs the same set of buffer export GL extensions as DRI3
|
|
|
|
* support.
|
|
|
|
*
|
2013-12-05 08:49:15 +01:00
|
|
|
* Returns the name on success, -1 on error.
|
|
|
|
* */
|
2013-12-31 03:41:57 +01:00
|
|
|
extern _X_EXPORT int glamor_name_from_pixmap(PixmapPtr pixmap,
|
|
|
|
CARD16 *stride, CARD32 *size);
|
2013-12-05 08:49:15 +01:00
|
|
|
|
2015-01-14 02:00:28 +01:00
|
|
|
/* @glamor_gbm_bo_from_pixmap: Get a GBM bo from a pixmap.
|
|
|
|
*
|
|
|
|
* @screen: Current screen pointer.
|
|
|
|
* @pixmap: The pixmap from which we want the fd.
|
|
|
|
* @stride, @size: Pointers to fill the stride and size of the
|
|
|
|
* buffer associated to the fd.
|
|
|
|
*
|
|
|
|
* the pixmap and the buffer represented by the gbm_bo will share the same
|
|
|
|
* content.
|
|
|
|
*
|
|
|
|
* Returns the gbm_bo on success, NULL on error.
|
|
|
|
* */
|
|
|
|
extern _X_EXPORT void *glamor_gbm_bo_from_pixmap(ScreenPtr screen,
|
|
|
|
PixmapPtr pixmap);
|
|
|
|
|
2013-12-31 03:49:46 +01:00
|
|
|
/* @glamor_pixmap_from_fd: Creates a pixmap to wrap a dma-buf fd.
|
2013-12-05 08:49:15 +01:00
|
|
|
*
|
|
|
|
* @screen: Current screen pointer.
|
|
|
|
* @fd: The dma-buf fd to import.
|
|
|
|
* @width: The width of the buffer.
|
|
|
|
* @height: The height of the buffer.
|
|
|
|
* @stride: The stride of the buffer.
|
|
|
|
* @depth: The depth of the buffer.
|
|
|
|
* @bpp: The number of bpp of the buffer.
|
|
|
|
*
|
|
|
|
* Returns a valid pixmap if the import succeeded, else NULL.
|
|
|
|
* */
|
2013-12-31 03:49:46 +01:00
|
|
|
extern _X_EXPORT PixmapPtr glamor_pixmap_from_fd(ScreenPtr screen,
|
|
|
|
int fd,
|
|
|
|
CARD16 width,
|
|
|
|
CARD16 height,
|
|
|
|
CARD16 stride,
|
|
|
|
CARD8 depth,
|
|
|
|
CARD8 bpp);
|
2012-05-15 04:42:41 +02:00
|
|
|
|
2015-06-10 05:38:39 +02:00
|
|
|
/* @glamor_back_pixmap_from_fd: Backs an existing pixmap with a dma-buf fd.
|
|
|
|
*
|
|
|
|
* @pixmap: Pixmap to change backing for
|
|
|
|
* @fd: The dma-buf fd to import.
|
|
|
|
* @width: The width of the buffer.
|
|
|
|
* @height: The height of the buffer.
|
|
|
|
* @stride: The stride of the buffer.
|
|
|
|
* @depth: The depth of the buffer.
|
|
|
|
* @bpp: The number of bpp of the buffer.
|
|
|
|
*
|
|
|
|
* Returns TRUE if successful, FALSE on failure.
|
|
|
|
* */
|
|
|
|
extern _X_EXPORT Bool glamor_back_pixmap_from_fd(PixmapPtr pixmap,
|
|
|
|
int fd,
|
|
|
|
CARD16 width,
|
|
|
|
CARD16 height,
|
|
|
|
CARD16 stride,
|
|
|
|
CARD8 depth,
|
|
|
|
CARD8 bpp);
|
2011-08-30 11:37:47 +02:00
|
|
|
#ifdef GLAMOR_FOR_XORG
|
2012-02-02 04:21:05 +01:00
|
|
|
|
|
|
|
#define GLAMOR_EGL_MODULE_NAME "glamoregl"
|
|
|
|
|
2011-12-16 08:04:33 +01:00
|
|
|
/* @glamor_egl_init: Initialize EGL environment.
|
|
|
|
*
|
|
|
|
* @scrn: Current screen info pointer.
|
|
|
|
* @fd: Current drm fd.
|
|
|
|
*
|
2012-01-19 13:47:55 +01:00
|
|
|
* This function creates and intialize EGL contexts.
|
2011-12-16 08:04:33 +01:00
|
|
|
* Should be called from DDX's preInit function.
|
|
|
|
* Return TRUE if success, otherwise return FALSE.
|
|
|
|
* */
|
2011-08-25 04:05:11 +02:00
|
|
|
extern _X_EXPORT Bool glamor_egl_init(ScrnInfoPtr scrn, int fd);
|
2011-12-16 08:04:33 +01:00
|
|
|
|
|
|
|
extern _X_EXPORT Bool glamor_egl_init_textured_pixmap(ScreenPtr screen);
|
|
|
|
|
|
|
|
/* @glamor_egl_create_textured_screen: Create textured screen pixmap.
|
|
|
|
*
|
|
|
|
* @screen: screen pointer to be processed.
|
|
|
|
* @handle: screen pixmap's BO handle.
|
|
|
|
* @stride: screen pixmap's stride in bytes.
|
|
|
|
*
|
|
|
|
* This function is similar with the create_textured_pixmap. As the
|
|
|
|
* screen pixmap is a special, we handle it separately in this function.
|
|
|
|
*/
|
2011-11-02 06:44:50 +01:00
|
|
|
extern _X_EXPORT Bool glamor_egl_create_textured_screen(ScreenPtr screen,
|
2013-12-18 20:59:07 +01:00
|
|
|
int handle, int stride);
|
2012-02-17 09:56:05 +01:00
|
|
|
|
|
|
|
/* @glamor_egl_create_textured_screen_ext:
|
|
|
|
*
|
|
|
|
* extent one parameter to track the pointer of the DDX layer's back pixmap.
|
|
|
|
* We need this pointer during the closing screen stage. As before back to
|
|
|
|
* the DDX's close screen, we have to free all the glamor related resources.
|
|
|
|
*/
|
|
|
|
extern _X_EXPORT Bool glamor_egl_create_textured_screen_ext(ScreenPtr screen,
|
2013-12-18 20:59:07 +01:00
|
|
|
int handle,
|
|
|
|
int stride,
|
|
|
|
PixmapPtr
|
|
|
|
*back_pixmap);
|
2012-02-17 09:56:05 +01:00
|
|
|
|
2011-12-16 08:04:33 +01:00
|
|
|
/*
|
|
|
|
* @glamor_egl_create_textured_pixmap: Try to create a textured pixmap from
|
|
|
|
* a BO handle.
|
2012-01-19 13:47:55 +01:00
|
|
|
*
|
2011-12-16 08:04:33 +01:00
|
|
|
* @pixmap: The pixmap need to be processed.
|
|
|
|
* @handle: The BO's handle attached to this pixmap at DDX layer.
|
|
|
|
* @stride: Stride in bytes for this pixmap.
|
|
|
|
*
|
|
|
|
* This function try to create a texture from the handle and attach
|
|
|
|
* the texture to the pixmap , thus glamor can render to this pixmap
|
|
|
|
* as well. Return true if successful, otherwise return FALSE.
|
|
|
|
*/
|
2011-11-02 06:44:50 +01:00
|
|
|
extern _X_EXPORT Bool glamor_egl_create_textured_pixmap(PixmapPtr pixmap,
|
2013-12-18 20:59:07 +01:00
|
|
|
int handle, int stride);
|
2011-11-02 06:44:50 +01:00
|
|
|
|
2013-11-18 22:52:22 +01:00
|
|
|
/*
|
|
|
|
* @glamor_egl_create_textured_pixmap_from_bo: Try to create a textured pixmap
|
|
|
|
* from a gbm_bo.
|
|
|
|
*
|
|
|
|
* @pixmap: The pixmap need to be processed.
|
|
|
|
* @bo: a pointer on a gbm_bo structure attached to this pixmap at DDX layer.
|
|
|
|
*
|
|
|
|
* This function is similar to glamor_egl_create_textured_pixmap.
|
|
|
|
*/
|
|
|
|
extern _X_EXPORT Bool
|
2013-12-18 20:59:07 +01:00
|
|
|
glamor_egl_create_textured_pixmap_from_gbm_bo(PixmapPtr pixmap, void *bo);
|
2013-11-18 22:52:22 +01:00
|
|
|
|
2011-08-30 11:37:47 +02:00
|
|
|
#endif
|
2011-11-09 09:09:03 +01:00
|
|
|
|
2014-04-01 02:59:18 +02:00
|
|
|
extern _X_EXPORT void glamor_egl_screen_init(ScreenPtr screen,
|
|
|
|
struct glamor_context *glamor_ctx);
|
2013-12-05 08:49:15 +01:00
|
|
|
extern _X_EXPORT void glamor_egl_destroy_textured_pixmap(PixmapPtr pixmap);
|
|
|
|
|
2011-12-23 09:19:39 +01:00
|
|
|
extern _X_EXPORT int glamor_create_gc(GCPtr gc);
|
2011-12-27 09:42:32 +01:00
|
|
|
|
2013-12-18 20:59:07 +01:00
|
|
|
extern _X_EXPORT void glamor_validate_gc(GCPtr gc, unsigned long changes,
|
|
|
|
DrawablePtr drawable);
|
2014-01-06 02:29:57 +01:00
|
|
|
|
2014-04-02 23:07:20 +02:00
|
|
|
extern _X_EXPORT void glamor_destroy_gc(GCPtr gc);
|
|
|
|
|
|
|
|
#define HAS_GLAMOR_DESTROY_GC 1
|
|
|
|
|
2014-04-26 00:07:03 +02:00
|
|
|
extern Bool _X_EXPORT glamor_change_window_attributes(WindowPtr pWin, unsigned long mask);
|
|
|
|
extern void _X_EXPORT glamor_copy_window(WindowPtr window, DDXPointRec old_origin, RegionPtr src_region);
|
|
|
|
|
2014-04-02 06:15:48 +02:00
|
|
|
#define HAS_GLAMOR_TEXT 1
|
|
|
|
|
2013-12-28 07:19:07 +01:00
|
|
|
#ifdef GLAMOR_FOR_XORG
|
2013-12-18 20:59:07 +01:00
|
|
|
extern _X_EXPORT XF86VideoAdaptorPtr glamor_xv_init(ScreenPtr pScreen,
|
|
|
|
int num_texture_ports);
|
2013-12-18 20:43:48 +01:00
|
|
|
#endif
|
2013-09-23 07:42:24 +02:00
|
|
|
|
2013-12-18 20:59:07 +01:00
|
|
|
#endif /* GLAMOR_H */
|