45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef _GLX_server_h_
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define _GLX_server_h_
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person obtaining a
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copy of this software and associated documentation files (the "Software"),
45e9809aff7304721fddb95654901b32195c9c7avboxsync * to deal in the Software without restriction, including without limitation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and/or sell copies of the Software, and to permit persons to whom the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software is furnished to do so, subject to the following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice including the dates of first publication and
45e9809aff7304721fddb95654901b32195c9c7avboxsync * either this permission notice or a reference to
45e9809aff7304721fddb95654901b32195c9c7avboxsync * http://oss.sgi.com/projects/FreeB/
45e9809aff7304721fddb95654901b32195c9c7avboxsync * shall be included in all copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsync * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
45e9809aff7304721fddb95654901b32195c9c7avboxsync * SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Except as contained in this notice, the name of Silicon Graphics, Inc.
45e9809aff7304721fddb95654901b32195c9c7avboxsync * shall not be used in advertising or otherwise to promote the sale, use or
45e9809aff7304721fddb95654901b32195c9c7avboxsync * other dealings in this Software without prior written authorization from
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Silicon Graphics, Inc.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "dmx.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <misc.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <dixstruct.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <pixmapstr.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <gcstruct.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <extnsionst.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <resource.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <scrnintstr.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync** The X header misc.h defines these math functions.
45e9809aff7304721fddb95654901b32195c9c7avboxsync*/
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef abs
45e9809aff7304721fddb95654901b32195c9c7avboxsync#undef fabs
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GL_GLEXT_PROTOTYPES /* we want prototypes */
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <GL/gl.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <GL/glxproto.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <GL/glxint.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "glxscreens.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "glxdrawable.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "glxcontext.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "glxerror.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GLX_SERVER_MAJOR_VERSION 1
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define GLX_SERVER_MINOR_VERSION 3
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef True
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define True 1
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef False
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define False 0
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync** GLX resources.
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID GLXContextID;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID GLXPixmap;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID GLXDrawable;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID GLXWindow;
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef XID GLXPbuffer;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct __GLXcontextRec *GLXContext;
45e9809aff7304721fddb95654901b32195c9c7avboxsync*/
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct __GLXclientStateRec __GLXclientState;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXscreenInfo *__glXActiveScreens;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern GLint __glXNumActiveScreens;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/************************************************************************/
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync** The last context used (from the server's persective) is cached.
45e9809aff7304721fddb95654901b32195c9c7avboxsync*/
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXcontext *__glXLastContext;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXcontext *__glXForceCurrent(__GLXclientState*, GLXContextTag, int*);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Macros to set, unset, and retrieve the flag that says whether a context
45e9809aff7304721fddb95654901b32195c9c7avboxsync** has unflushed commands.
45e9809aff7304721fddb95654901b32195c9c7avboxsync*/
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define __GLX_NOTE_UNFLUSHED_CMDS(glxc) glxc->hasUnflushedCommands = GL_TRUE
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define __GLX_NOTE_FLUSHED_CMDS(glxc) glxc->hasUnflushedCommands = GL_FALSE
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define __GLX_HAS_UNFLUSHED_CMDS(glxc) (glxc->hasUnflushedCommands)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/************************************************************************/
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct {
45e9809aff7304721fddb95654901b32195c9c7avboxsync int elem_size; /* element size in bytes */
45e9809aff7304721fddb95654901b32195c9c7avboxsync int nelems; /* number of elements to swap */
45e9809aff7304721fddb95654901b32195c9c7avboxsync void (*swapfunc)(GLbyte *pc);
45e9809aff7304721fddb95654901b32195c9c7avboxsync} __GLXRenderSwapInfo;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync** State kept per client.
45e9809aff7304721fddb95654901b32195c9c7avboxsync*/
45e9809aff7304721fddb95654901b32195c9c7avboxsyncstruct __GLXclientStateRec {
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** Whether this structure is currently being used to support a client.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync Bool inUse;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** Buffer for returned data.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLbyte *returnBuf;
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint returnBufSize;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** Keep a list of all the contexts that are current for this client's
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** threads.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync __GLXcontext **currentContexts;
45e9809aff7304721fddb95654901b32195c9c7avboxsync DrawablePtr *currentDrawables;
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint numCurrentContexts;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /* Back pointer to X client record */
45e9809aff7304721fddb95654901b32195c9c7avboxsync ClientPtr client;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync int GLClientmajorVersion;
45e9809aff7304721fddb95654901b32195c9c7avboxsync int GLClientminorVersion;
45e9809aff7304721fddb95654901b32195c9c7avboxsync char *GLClientextensions;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLXContextTag *be_currentCTag;
45e9809aff7304721fddb95654901b32195c9c7avboxsync Display **be_displays;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync /*
45e9809aff7304721fddb95654901b32195c9c7avboxsync ** Keep track of large rendering commands, which span multiple requests.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint largeCmdBytesSoFar; /* bytes received so far */
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint largeCmdBytesTotal; /* total bytes expected */
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint largeCmdRequestsSoFar; /* requests received so far */
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint largeCmdRequestsTotal; /* total requests expected */
45e9809aff7304721fddb95654901b32195c9c7avboxsync void (*largeCmdRequestsSwapProc)(GLbyte *);
45e9809aff7304721fddb95654901b32195c9c7avboxsync __GLXRenderSwapInfo *largeCmdRequestsSwap_info;
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLbyte *largeCmdBuf;
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint largeCmdBufSize;
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint largeCmdMaxReqDataSize;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync};
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXclientState *__glXClients[];
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/************************************************************************/
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Dispatch tables.
45e9809aff7304721fddb95654901b32195c9c7avboxsync*/
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef void (*__GLXdispatchRenderProcPtr)(GLbyte *);
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef int (*__GLXdispatchSingleProcPtr)(__GLXclientState *, GLbyte *);
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef int (*__GLXdispatchVendorPrivProcPtr)(__GLXclientState *, GLbyte *);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXdispatchSingleProcPtr __glXSingleTable[];
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXdispatchVendorPrivProcPtr __glXVendorPrivTable_EXT[];
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXdispatchSingleProcPtr __glXSwapSingleTable[];
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXdispatchVendorPrivProcPtr __glXSwapVendorPrivTable_EXT[];
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXdispatchRenderProcPtr __glXSwapRenderTable[];
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXRenderSwapInfo __glXSwapRenderTable_EXT[];
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Dispatch for GLX commands.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef int (*__GLXprocPtr)(__GLXclientState *, char *pc);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXprocPtr __glXProcTable[];
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Tables for computing the size of each rendering command.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsynctypedef struct {
45e9809aff7304721fddb95654901b32195c9c7avboxsync int bytes;
45e9809aff7304721fddb95654901b32195c9c7avboxsync int (*varsize)(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsync} __GLXrenderSizeData;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXrenderSizeData __glXRenderSizeTable[];
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern __GLXrenderSizeData __glXRenderSizeTable_EXT[];
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/************************************************************************/
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync** X resources.
45e9809aff7304721fddb95654901b32195c9c7avboxsync*/
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern RESTYPE __glXContextRes;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern RESTYPE __glXClientRes;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern RESTYPE __glXPixmapRes;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern RESTYPE __glXDrawableRes;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern RESTYPE __glXWindowRes;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern RESTYPE __glXPbufferRes;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/************************************************************************/
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Prototypes.
45e9809aff7304721fddb95654901b32195c9c7avboxsync*/
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern char *__glXcombine_strings(const char *, const char *);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXDisp_DrawArrays(GLbyte*);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXDispSwap_DrawArrays(GLbyte*);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync** Routines for sending swapped replies.
45e9809aff7304721fddb95654901b32195c9c7avboxsync*/
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXSwapMakeCurrentReply(ClientPtr client,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xGLXMakeCurrentReadSGIReply *reply);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXSwapIsDirectReply(ClientPtr client,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xGLXIsDirectReply *reply);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXSwapQueryVersionReply(ClientPtr client,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xGLXQueryVersionReply *reply);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXSwapQueryContextInfoEXTReply(ClientPtr client,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xGLXQueryContextInfoEXTReply *reply,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int *buf);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void glxSwapQueryExtensionsStringReply(ClientPtr client,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xGLXQueryExtensionsStringReply *reply, char *buf);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void glxSwapQueryServerStringReply(ClientPtr client,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xGLXQueryServerStringReply *reply, char *buf);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXSwapQueryContextReply(ClientPtr client,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xGLXQueryContextReply *reply, int *buf);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXSwapGetDrawableAttributesReply(ClientPtr client,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xGLXGetDrawableAttributesReply *reply, int *buf);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXSwapQueryMaxSwapBarriersSGIXReply(ClientPtr client,
45e9809aff7304721fddb95654901b32195c9c7avboxsync xGLXQueryMaxSwapBarriersSGIXReply *reply);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Routines for computing the size of variably-sized rendering commands.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTypeSize(GLenum enm);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXImageSize(GLenum format, GLenum type, GLsizei w, GLsizei h,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint rowLength, GLint skipRows, GLint alignment);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXImage3DSize(GLenum format, GLenum type,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLsizei w, GLsizei h, GLsizei d,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint imageHeight, GLint rowLength,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint skipImages, GLint skipRows,
45e9809aff7304721fddb95654901b32195c9c7avboxsync GLint alignment);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXCallListsReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXBitmapReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXFogfvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXFogivReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXLightfvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXLightivReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXLightModelfvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXLightModelivReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXMaterialfvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXMaterialivReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexParameterfvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexParameterivReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexImage1DReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexImage2DReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexEnvfvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexEnvivReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexGendvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexGenfvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexGenivReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXMap1dReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXMap1fReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXMap2dReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXMap2fReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXPixelMapfvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXPixelMapuivReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXPixelMapusvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXDrawPixelsReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXDrawArraysSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXPrioritizeTexturesReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexSubImage1DReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexSubImage2DReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexImage3DReqSize(GLbyte *pc, Bool swap );
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXTexSubImage3DReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXConvolutionFilter1DReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXConvolutionFilter2DReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXConvolutionParameterivReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXConvolutionParameterfvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXSeparableFilter2DReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXColorTableReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXColorSubTableReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXColorTableParameterfvReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXColorTableParameterivReqSize(GLbyte *pc, Bool swap);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Routines for computing the size of returned data.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXConvolutionParameterivSize(GLenum pname);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXConvolutionParameterfvSize(GLenum pname);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXColorTableParameterfvSize(GLenum pname);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXColorTableParameterivSize(GLenum pname);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXFreeGLXWindow(__glXWindow *pGlxWindow);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern void __glXFreeGLXPbuffer(__glXPbuffer *pGlxPbuffer);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXVersionMajor;
45e9809aff7304721fddb95654901b32195c9c7avboxsyncextern int __glXVersionMinor;
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define __GLX_IS_VERSION_SUPPORTED(major,minor) \
45e9809aff7304721fddb95654901b32195c9c7avboxsync ( (__glXVersionMajor > (major)) || \
45e9809aff7304721fddb95654901b32195c9c7avboxsync ((__glXVersionMajor == (major)) && (__glXVersionMinor >= (minor))) )
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* !__GLX_server_h__ */