Commit 0861da66 authored by alanh's avatar alanh
Browse files

merge newmesa branch to the trunk

parent 1afc96e2
......@@ -4,6 +4,9 @@
*/
#define XFree86CustomVersion "DRI trunk"
/* You need this now */
#define MesaSrcDir /X11R6/SourceForge/Mesanew/Mesa-newtree
/* Don't use any special flags by default, but leave this here commented out
* so people see how to if they want
......@@ -32,7 +35,7 @@
#elif defined(i386Architecture)
#define XF86CardDrivers tdfx i810 mga ati glint vga sis
#define DriDrivers r200 tdfx mga i810 r128 radeon gamma i830 ffb sis
#define DriDrivers r200 mga i810 r128 radeon gamma i830 sis tdfx ffb
#else
......@@ -91,8 +94,10 @@
#define XnestServer NO
#define XVirtualFramebufferServer NO
/* we don't have libexpat sources in DRI CVS, so assume that it's installed */
#define HasExpat YES
/* we do have libexpat sources in DRI CVS and want to build static to
* link with libGL to isolate link problems with systems that don't have it */
#define HasExpat NO
#define NormalLibExpat YES
/*
* Don't change anything below or the build will fail.
......
......@@ -7,7 +7,7 @@ dnl The implementation will create a binary, and instead of running
dnl the binary it will be grep'ed for some symbols that will look
dnl different for different endianess of the binary.
dnl
dnl @version $Id: ac_c_bigendian_cross.m4,v 1.1 2003/12/08 22:02:49 alanh Exp $
dnl @version $Id: ac_c_bigendian_cross.m4,v 1.2 2003/12/09 15:33:35 alanh Exp $
dnl @author Guido Draheim <guidod@gmx.de>
dnl
AC_DEFUN([AC_C_BIGENDIAN_CROSS],
......
......@@ -4,7 +4,7 @@
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.1 2003/12/08 22:02:49 alanh Exp $
# $Id: mkinstalldirs,v 1.2 2003/12/09 15:33:35 alanh Exp $
errstatus=0
......
......@@ -74,9 +74,15 @@
#define __GLX_MAX_CONTEXT_PROPS 3
#ifndef GLX_VENDOR
#define GLX_VENDOR 0x1
#endif
#ifndef GLX_VERSION
#define GLX_VERSION 0x2
#endif
#ifndef GLX_EXTENSIONS
#define GLX_EXTENSIONS 0x3
#endif
/*****************************************************************************/
......
......@@ -21,18 +21,18 @@ XCOMM $XFree86: xc/lib/GL/GL/Imakefile,v 1.18 2003/06/30 01:45:10 torrey Exp $
BASEREQUIREDLIBS = SharedGLReqs
#endif
#include "../mesa/src/array_cache/Imakefile.inc"
#include "../mesa/src/math/Imakefile.inc"
#include "../mesa/src/swrast/Imakefile.inc"
#include "../mesa/src/swrast_setup/Imakefile.inc"
#include "../mesa/src/tnl/Imakefile.inc"
#include "../mesa/src/tnl_dd/Imakefile.inc"
#include "../mesa/src/Imakefile.inc"
#include "../mesa/array_cache/Imakefile.inc"
#include "../mesa/math/Imakefile.inc"
#include "../mesa/swrast/Imakefile.inc"
#include "../mesa/swrast_setup/Imakefile.inc"
#include "../mesa/tnl/Imakefile.inc"
#include "../mesa/tnl_dd/Imakefile.inc"
#include "../mesa/Imakefile.inc"
#ifdef i386Architecture
#include "../mesa/src/X86/Imakefile.inc"
#include "../mesa/x86/Imakefile.inc"
#endif
#ifdef SparcArchitecture
#include "../mesa/src/SPARC/Imakefile.inc"
#include "../mesa/sparc/Imakefile.inc"
#endif
XCOMM
......@@ -72,7 +72,7 @@ NormalLintTarget($(PROFSRC))
MESAPOBJS = $(COREMESAPOBJS) $(MESA_ASM_POBJS)
#if GlxUseBuiltInDRIDriver
#include "../mesa/src/drv/common/Imakefile.inc"
#include "../mesa/drivers/dri/common/Imakefile.inc"
#endif
......@@ -82,8 +82,8 @@ XCOMM nothing
#elif GlxBuiltInGamma
#define MesaDrvGammaBuildDir $(GLXLIBSRC)/mesa/src/drv/gamma/
#include "../mesa/src/drv/gamma/Imakefile.inc"
#define MesaDrvGammaBuildDir $(GLXLIBSRC)/mesa/drivers/dri/gamma/
#include "../mesa/drivers/dri/gamma/Imakefile.inc"
DRVOBJS = $(GAMMAOBJS) $(MESAOBJS) $(DRMOBJS)
DRVUOBJS = $(GAMMAUOBJS) $(MESAUOBJS) $(DRMUOBJS)
......@@ -92,8 +92,8 @@ XCOMM nothing
#elif GlxBuiltInTdfx
#define MesaDrvTdfxBuildDir $(GLXLIBSRC)/mesa/src/drv/tdfx/
#include "../mesa/src/drv/tdfx/Imakefile.inc"
#define MesaDrvTdfxBuildDir $(GLXLIBSRC)/mesa/drivers/dri/tdfx/
#include "../mesa/drivers/dri/tdfx/Imakefile.inc"
DRVOBJS = $(TDFXOBJS) $(MESAOBJS) $(DRMOBJS)
DRVUOBJS = $(TDFXUOBJS) $(MESAUOBJS) $(DRMUOBJS)
......@@ -104,8 +104,8 @@ OTHERREQUIREDLIBS = -lglide3 -ldl
#elif GlxBuiltInI810
#define MesaDrvI810BuildDir $(GLXLIBSRC)/mesa/src/drv/i810/
#include "../mesa/src/drv/i810/Imakefile.inc"
#define MesaDrvI810BuildDir $(GLXLIBSRC)/mesa/drivers/dri/i810/
#include "../mesa/drivers/dri/i810/Imakefile.inc"
DRVOBJS = $(I810OBJS) $(COMMONOBJS) $(MESAOBJS) $(DRMOBJS)
DRVUOBJS = $(I810UOBJS) $(COMMONUOBJS) $(MESAUOBJS) $(DRMUOBJS)
......@@ -113,8 +113,8 @@ OTHERREQUIREDLIBS = -lglide3 -ldl
DRVPOBJS = $(I810POBJS) $(COMMONPOBJS) $(MESAPOBJS) $(DRMPOBJS)
#elif GlxBuiltInI830
#define MesaDrvI830BuildDir $(GLXLIBSRC)/mesa/src/drv/i830/
#include "../mesa/src/drv/i830/Imakefile.inc"
#define MesaDrvI830BuildDir $(GLXLIBSRC)/mesa/drivers/dri/i830/
#include "../mesa/drivers/dri/i830/Imakefile.inc"
DRVOBJS = $(I830OBJS) $(COMMONOBJS) $(MESAOBJS) $(DRMOBJS)
DRVUOBJS = $(I830UOBJS) $(COMMONUOBJS) $(MESAUOBJS) $(DRMUOBJS)
......@@ -123,8 +123,8 @@ OTHERREQUIREDLIBS = -lglide3 -ldl
#elif GlxBuiltInMga
#define MesaDrvMgaBuildDir $(GLXLIBSRC)/mesa/src/drv/mga/
#include "../mesa/src/drv/mga/Imakefile.inc"
#define MesaDrvMgaBuildDir $(GLXLIBSRC)/mesa/drivers/dri/mga/
#include "../mesa/drivers/dri/mga/Imakefile.inc"
DRVOBJS = $(MGAOBJS) $(COMMONOBJS) $(MESAOBJS) $(DRMOBJS)
DRVUOBJS = $(MGAUOBJS) $(COMMONUOBJS) $(MESAUOBJS) $(DRMUOBJS)
......@@ -133,8 +133,8 @@ OTHERREQUIREDLIBS = -lglide3 -ldl
#elif GlxBuiltInR128
#define MesaDrvR128BuildDir $(GLXLIBSRC)/mesa/src/drv/r128/
#include "../mesa/src/drv/r128/Imakefile.inc"
#define MesaDrvR128BuildDir $(GLXLIBSRC)/mesa/drivers/dri/r128/
#include "../mesa/drivers/dri/r128/Imakefile.inc"
DRVOBJS = $(R128OBJS) $(COMMONOBJS) $(MESAOBJS) $(DRMOBJS)
DRVUOBJS = $(R128UOBJS) $(COMMONUOBJS) $(MESAUOBJS) $(DRMUOBJS)
......@@ -143,8 +143,8 @@ OTHERREQUIREDLIBS = -lglide3 -ldl
#elif GlxBuiltInRadeon
#define MesaDrvRadeonBuildDir $(GLXLIBSRC)/mesa/src/drv/radeon/
#include "../mesa/src/drv/radeon/Imakefile.inc"
#define MesaDrvRadeonBuildDir $(GLXLIBSRC)/mesa/drivers/dri/radeon/
#include "../mesa/drivers/dri/radeon/Imakefile.inc"
DRVOBJS = $(RADEONOBJS) $(COMMONOBJS) $(MESAOBJS) $(DRMOBJS)
DRVUOBJS = $(RADEONUOBJS) $(COMMONUOBJS) $(MESAUOBJS) $(DRMUOBJS)
......@@ -153,8 +153,8 @@ OTHERREQUIREDLIBS = -lglide3 -ldl
#elif GlxBuiltInFfb
#define MesaDrvFfbBuildDir $(GLXLIBSRC)/mesa/src/drv/ffb/
#include "../mesa/src/drv/ffb/Imakefile.inc"
#define MesaDrvFfbBuildDir $(GLXLIBSRC)/mesa/drivers/dri/ffb/
#include "../mesa/drivers/dri/ffb/Imakefile.inc"
DRVOBJS = $(FFBOBJS) $(MESAOBJS) $(DRMOBJS)
DRVUOBJS = $(FFBUOBJS) $(MESAUOBJS) $(DRMUOBJS)
......@@ -163,8 +163,8 @@ OTHERREQUIREDLIBS = -lglide3 -ldl
#elif GlxBuiltInSIS
#define MesaDrvSisBuildDir $(GLXLIBSRC)/mesa/src/drv/sis/
#include "../mesa/src/drv/sis/Imakefile.inc"
#define MesaDrvSisBuildDir $(GLXLIBSRC)/mesa/drivers/dri/sis/
#include "../mesa/drivers/dri/sis/Imakefile.inc"
DRVOBJS = $(SISOBJS) $(MESAOBJS) $(DRMOBJS)
DRVUOBJS = $(SISUOBJS) $(MESAUOBJS) $(DRMUOBJS)
......@@ -173,7 +173,7 @@ OTHERREQUIREDLIBS = -lglide3 -ldl
#elif GlxBuiltInXMesa
#include "../mesa/src/X/Imakefile.inc"
#include "../mesa/drivers/x11/Imakefile.inc"
DRVOBJS = $(MESAOBJS) $(XMESA_OBJS)
DRVUOBJS = $(MESAUOBJS) $(XMESA_UOBJS)
......
......@@ -71,7 +71,7 @@ LIBGLBUILDDIR = GL
#if BuildOSMesaLib || \
(BuildXF86DRI && \
(defined(DriDrivers) || GlxDriverUsesMesa || GlxBuiltInXMesa))
MESADIRS = mesa/src
MESADIRS = mesa
#endif
/*
......@@ -79,7 +79,7 @@ LIBGLBUILDDIR = GL
* BuildOSMesaLib
*/
#if BuildOSMesaLib
OSMESADIRS = mesa/src/OSmesa
OSMESADIRS = mesa/drivers/osmesa
#endif
/*
......@@ -95,11 +95,7 @@ LIBGLBUILDDIR = GL
* BuildXF86DRI && defined(DriDrivers)
*/
#if BuildXF86DRI && defined(DriDrivers)
DRIVERDIRS = mesa/src/drv
#endif
#if defined(DarwinArchitecture) && BuildAppleDRI
DRIDIRS = apple
DRIVERDIRS = mesa/drivers/dri
#endif
/*
......
......@@ -17,10 +17,12 @@ ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#if !GlxUseSGISI
DRI_SRCS = dri_glx.c
DRI_OBJS = dri_glx.o
DRI_INCS = -I. -I$(GLXLIBSRC)/glx -I$(INCLUDESRC) -I$(INCLUDESRC)/GL \
DRI_INCS = -I. -I$(GLXLIBSRC)/glx \
-I$(XINCLUDESRC) -I$(SERVERSRC)/GL/dri \
-I$(GLXLIBSRC)/include \
-I$(MESASRCDIR)/include -I$(MESASRCDIR)/src
-I$(MESASRCDIR)/include \
-I$(MESASRCDIR)/src/mesa/main \
-I$(MESASRCDIR)/src/mesa/glapi
#endif
#if GlxUseBuiltInDRIDriver
......
......@@ -26,7 +26,6 @@
#include <Xext.h>
#include <extutil.h>
#include <stdio.h>
#include "glxclient.h"
#include "xf86dri.h"
#include "sarea.h"
#include "dri_util.h"
......
......@@ -55,6 +55,8 @@
#include <inttypes.h>
#include "glxclient.h" /* for GLXDrawable */
/* temporary */
typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
#include "xf86dri.h" /* for XF86DRIClipRectPtr */
#include "sarea.h" /* for XF86DRISAREAPtr */
#include "GL/internal/glcore.h" /* for __GLcontextModes */
......
......@@ -33,13 +33,13 @@ XCOMM glw
# Files from Mesa
LinkSourceFile(glapi.c, $(MESASRCDIR)/src)
LinkSourceFile(glthread.c, $(MESASRCDIR)/src)
#if defined(i386Architecture)
LinkSourceFile(glapi_x86.S, $(MESASRCDIR)/src/X86)
LinkSourceFile(glapi.c, $(MESASRCDIR)/src/mesa/glapi)
LinkSourceFile(glthread.c, $(MESASRCDIR)/src/mesa/glapi)
#ifdef i386Architecture
LinkSourceFile(glapi_x86.S, $(MESASRCDIR)/src/mesa/x86)
#endif
#if defined(SparcArchitecture) && !defined(OpenBSDArchitecture)
LinkSourceFile(glapi_sparc.S, $(MESASRCDIR)/src/SPARC)
#ifdef SparcArchitecture
LinkSourceFile(glapi_sparc.S, $(MESASRCDIR)/src/mesa/sparc)
#endif
......@@ -97,10 +97,10 @@ LinkSourceFile(glapi_sparc.S, $(MESASRCDIR)/src/SPARC)
GLX_DEFS = GlxDefines
#ifdef i386Architecture
ASM_DIR = X86
ASM_DIR = x86
#endif
#ifdef SparcArchitecture
ASM_DIR = SPARC
ASM_DIR = sparc
#endif
#if BuildXF86DRI
......@@ -125,16 +125,14 @@ LinkSourceFile(glapi_sparc.S, $(MESASRCDIR)/src/SPARC)
OBJS = $(GLX_OBJS) $(ASM_OBJS)
DEFINES = $(GLX_DEFS) $(ASM_DEFS) $(XMESA_DEFINES)
INCLUDES = -I$(INCLUDESRC) \
-I$(XINCLUDESRC) \
INCLUDES = -I$(XINCLUDESRC) \
-I$(MESASRCDIR)/include \
-I$(EXTINCSRC) \
-I$(INCLUDESRC)/GL \
-I$(GLXLIBSRC)/glx \
-I$(MESASRCDIR)/src \
-I$(MESASRCDIR)/src/X \
-I$(MESASRCDIR)/src/$(ASM_DIR) \
-I$(MESASRCDIR)/include \
-I$(GLXLIBSRC)/include \
-I$(MESASRCDIR)/src/mesa/main \
-I$(MESASRCDIR)/src/mesa/glapi \
-I$(MESASRCDIR)/src/mesa/drivers/x11 \
-I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \
$(DRI_INCS)
#include <Library.tmpl>
......
......@@ -41,7 +41,6 @@
#include <inttypes.h>
#include "packsingle.h"
#include "glxclient.h"
#include <extutil.h>
#include <Xext.h>
#include <assert.h>
......
/* $XFree86: xc/lib/GL/include/GL/internal/glcore.h,v 1.10 2003/06/30 01:45:11 torrey Exp $ */
#ifndef __gl_core_h_
#define __gl_core_h_
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
** Software License B, Version 1.1 (the "License"), the contents of this
** file are subject only to the provisions of the License. You may not use
** this file except in compliance with the License. You may obtain a copy
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
**
** http://oss.sgi.com/projects/FreeB
**
** Note that, as provided in the License, the Software is distributed on an
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
**
** Original Code. The Original Code is: OpenGL Sample Implementation,
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
** Copyright in any portions created by third parties is as indicated
** elsewhere herein. All Rights Reserved.
**
** Additional Notice Provisions: The application programming interfaces
** established by SGI in conjunction with the Original Code are The
** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
** Window System(R) (Version 1.3), released October 19, 1998. This software
** was created using the OpenGL(R) version 1.2.1 Sample Implementation
** published by SGI, but has not been independently verified as being
** compliant with the OpenGL(R) version 1.2.1 Specification.
**
*/
#ifndef XFree86LOADER
#include <sys/types.h>
#endif
#ifdef CAPI
#undef CAPI
#endif
#define CAPI
#define GL_CORE_SGI 1
#define GL_CORE_MESA 2
#define GL_CORE_APPLE 4
typedef struct __GLcontextRec __GLcontext;
typedef struct __GLinterfaceRec __GLinterface;
/*
** This file defines the interface between the GL core and the surrounding
** "operating system" that supports it (currently the GLX or WGL extensions).
**
** Members (data and function pointers) are documented as imported or
** exported according to how they are used by the core rendering functions.
** Imported members are initialized by the "operating system" and used by
** the core functions. Exported members are initialized by the core functions
** and used by the "operating system".
*/
/*
** Mode and limit information for a context. This information is
** kept around in the context so that values can be used during
** command execution, and for returning information about the
** context to the application.
*/
typedef struct __GLcontextModesRec {
struct __GLcontextModesRec * next;
GLboolean rgbMode;
GLboolean floatMode;
GLboolean colorIndexMode;
GLuint doubleBufferMode;
GLuint stereoMode;
GLboolean haveAccumBuffer;
GLboolean haveDepthBuffer;
GLboolean haveStencilBuffer;
GLint redBits, greenBits, blueBits, alphaBits; /* bits per comp */
GLuint redMask, greenMask, blueMask, alphaMask;
GLint rgbBits; /* total bits for rgb */
GLint indexBits; /* total bits for colorindex */
GLint accumRedBits, accumGreenBits, accumBlueBits, accumAlphaBits;
GLint depthBits;
GLint stencilBits;
GLint numAuxBuffers;
GLint level;
GLint pixmapMode;
/* GLX */
GLint visualID;
GLint visualType; /**< One of the GLX X visual types. (i.e.,
* \c GLX_TRUE_COLOR, etc.)
*/
/* EXT_visual_rating / GLX 1.2 */
GLint visualRating;
/* EXT_visual_info / GLX 1.2 */
GLint transparentPixel;
/* colors are floats scaled to ints */
GLint transparentRed, transparentGreen, transparentBlue, transparentAlpha;
GLint transparentIndex;
/* ARB_multisample / SGIS_multisample */
GLint sampleBuffers;
GLint samples;
/* SGIX_fbconfig / GLX 1.3 */
GLint drawableType;
GLint renderType;
GLint xRenderable;
GLint fbconfigID;
/* SGIX_pbuffer / GLX 1.3 */
GLint maxPbufferWidth;
GLint maxPbufferHeight;
GLint maxPbufferPixels;
GLint optimalPbufferWidth; /* Only for SGIX_pbuffer. */
GLint optimalPbufferHeight; /* Only for SGIX_pbuffer. */
/* SGIX_visual_select_group */
GLint visualSelectGroup;
/* OML_swap_method */
GLint swapMethod;
GLint screen;
} __GLcontextModes;
/************************************************************************/
/*
** Structure used for allocating and freeing drawable private memory.
** (like software buffers, for example).
**
** The memory allocation routines are provided by the surrounding
** "operating system" code, and they are to be used for allocating
** software buffers and things which are associated with the drawable,
** and used by any context which draws to that drawable. There are
** separate memory allocation functions for drawables and contexts
** since drawables and contexts can be created and destroyed independently
** of one another, and the "operating system" may want to use separate
** allocation arenas for each.
**
** The freePrivate function is filled in by the core routines when they
** allocates software buffers, and stick them in "private". The freePrivate
** function will destroy anything allocated to this drawable (to be called
** when the drawable is destroyed).
*/
typedef struct __GLdrawableRegionRec __GLdrawableRegion;
typedef struct __GLdrawableBufferRec __GLdrawableBuffer;
typedef struct __GLdrawablePrivateRec __GLdrawablePrivate;
typedef struct __GLregionRectRec {
/* lower left (inside the rectangle) */
GLint x0, y0;
/* upper right (outside the rectangle) */
GLint x1, y1;
} __GLregionRect;
struct __GLdrawableRegionRec {
GLint numRects;
__GLregionRect *rects;
__GLregionRect boundingRect;
};
/************************************************************************/
/* masks for the buffers */
#define __GL_FRONT_BUFFER_MASK 0x00000001
#define __GL_FRONT_LEFT_BUFFER_MASK 0x00000001
#define __GL_FRONT_RIGHT_BUFFER_MASK 0x00000002
#define __GL_BACK_BUFFER_MASK 0x00000004
#define __GL_BACK_LEFT_BUFFER_MASK 0x00000004
#define __GL_BACK_RIGHT_BUFFER_MASK 0x00000008
#define __GL_ACCUM_BUFFER_MASK 0x00000010
#define __GL_DEPTH_BUFFER_MASK 0x00000020
#define __GL_STENCIL_BUFFER_MASK 0x00000040
#define __GL_AUX_BUFFER_MASK(i) (0x0000080 << (i))
#define __GL_ALL_BUFFER_MASK 0xffffffff
/* what Resize routines return if resize resorted to fallback case */
#define __GL_BUFFER_FALLBACK 0x10
typedef void (*__GLbufFallbackInitFn)(__GLdrawableBuffer *buf,
__GLdrawablePrivate *glPriv, GLint bits);
typedef void (*__GLbufMainInitFn)(__GLdrawableBuffer *buf,
__GLdrawablePrivate *glPriv, GLint bits,
__GLbufFallbackInitFn back);
/*
** A drawable buffer
**
** This data structure describes the context side of a drawable.
**
** According to the spec there could be multiple contexts bound to the same
** drawable at the same time (from different threads). In order to avoid
** multiple-access conflicts, locks are used to serialize access. When a
** thread needs to access (read or write) a member of the drawable, it takes
** a lock first. Some of the entries in the drawable are treated "mostly
** constant", so we take the freedom of allowing access to them without
** taking a lock (for optimization reasons).
**
** For more details regarding locking, see buffers.h in the GL core
*/
struct __GLdrawableBufferRec {
/*
** Buffer dimensions
*/
GLint width, height, depth;
/*
** Framebuffer base address
*/
void *base;
/*
** Framebuffer size (in bytes)
*/
GLuint size;
/*
** Size (in bytes) of each element in the framebuffer
*/
GLuint elementSize;
GLuint elementSizeLog2;
/*
** Element skip from one scanline to the next.
** If the buffer is part of another buffer (for example, fullscreen
** front buffer), outerWidth is the width of that buffer.
*/
GLint outerWidth;
/*
** outerWidth * elementSize
*/
GLint byteWidth;
/*
** Allocation/deallocation is done based on this handle. A handle
** is conceptually different from the framebuffer 'base'.
*/
void *handle;
/* imported */
GLboolean (*resize)(__GLdrawableBuffer *buf,
GLint x, GLint y, GLuint width, GLuint height,
__GLdrawablePrivate *glPriv, GLuint bufferMask);
void (*lock)(__GLdrawableBuffer *buf, __GLdrawablePrivate *glPriv);
void (*unlock)(__GLdrawableBuffer *buf, __GLdrawablePrivate *glPriv);
void (*fill)(__GLdrawableBuffer *buf, __GLdrawablePrivate *glPriv,
GLuint val, GLint x, GLint y, GLint w, GLint h);
void (*free)(__GLdrawableBuffer *buf, __GLdrawablePrivate *glPriv);
/* exported */
void (*freePrivate)(__GLdrawableBuffer *buf, __GLdrawablePrivate *glPriv);
void *private;
/* private */
void *other; /* implementation private data */
__GLbufMainInitFn mainInit;
__GLbufFallbackInitFn fallbackInit;
};
/*