/**************************************************************************
Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
All Rights Reserved.
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,
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 NON-INFRINGEMENT.
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:
* Kevin E. Martin <kevin@precisioninsight.com>
*
* When we're building the XMesa driver for use in the X server (as the
* indirect render) we include this file when building the xm_*.c files.
* We need to define some types and macros differently when building
* in the Xserver vs. stand-alone Mesa.
*/
#ifndef _XMESA_XF86_H_
#define _XMESA_XF86_H_
#include "GL/glxtokens.h"
#include "scrnintstr.h"
#include "pixmapstr.h"
#include "gcstruct.h"
#include "servermd.h"
typedef struct _XMesaImageRec {
char *data;
int bits_per_pixel;
} XMesaImage;
do { \
(void) __d; \
} while (0)
do { \
(void) __d; \
} while (0)
do { \
(void) __d; \
} while (0)
do { \
(void) __d; \
} while (0)
do { \
(void) __d; \
} while (0)
do { \
(void) __d; \
} while (0)
int y, unsigned int width,
unsigned int height,
unsigned long plane_mask, int format)
{
/* Assumes: Images are always in ZPixmap format */
return img;
}
do { \
/* Assumes: Images are always in ZPixmap format */ \
(void) __d; \
} while (0)
do { \
(void) __d; \
} while (0)
/* CreatePixmap returns a PixmapPtr; so, it cannot be inside braces */
#ifdef CREATE_PIXMAP_USAGE_SCRATCH
#else
#endif
do { \
(void) __d; \
FreeScratchGC(__gc); \
} while (0)
#endif