diff options
author | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:43:39 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2011-10-10 17:43:39 +0200 |
commit | f4092abdf94af6a99aff944d6264bc1284e8bdd4 (patch) | |
tree | 2ac1c9cc16ceb93edb2c4382c088dac5aeafdf0f /nx-X11/lib/GL | |
parent | a840692edc9c6d19cd7c057f68e39c7d95eb767d (diff) | |
download | nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.gz nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.bz2 nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.zip |
Imported nx-X11-3.1.0-1.tar.gznx-X11/3.1.0-1
Summary: Imported nx-X11-3.1.0-1.tar.gz
Keywords:
Imported nx-X11-3.1.0-1.tar.gz
into Git repository
Diffstat (limited to 'nx-X11/lib/GL')
80 files changed, 14936 insertions, 0 deletions
diff --git a/nx-X11/lib/GL/GL/GL-def.cpp b/nx-X11/lib/GL/GL/GL-def.cpp new file mode 100644 index 000000000..74549ebed --- /dev/null +++ b/nx-X11/lib/GL/GL/GL-def.cpp @@ -0,0 +1,493 @@ +LIBRARY libGL +VERSION LIBRARY_VERSION +EXPORTS + glClearIndex @ 1 + glClearColor @ 2 + glClear @ 3 + glIndexMask @ 4 + glColorMask @ 5 + glAlphaFunc @ 6 + glBlendFunc @ 7 + glLogicOp @ 8 + glCullFace @ 9 + glFrontFace @ 10 + glPointSize @ 11 + glLineWidth @ 12 + glLineStipple @ 13 + glPolygonMode @ 14 + glPolygonStipple @ 15 + glGetPolygonStipple @ 16 + glEdgeFlag @ 17 + glEdgeFlagv @ 18 + glScissor @ 19 + glClipPlane @ 20 + glGetClipPlane @ 21 + glDrawBuffer @ 22 + glReadBuffer @ 23 + glEnable @ 24 + glDisable @ 25 + glIsEnabled @ 26 + glGetBooleanv @ 27 + glGetDoublev @ 28 + glGetFloatv @ 29 + glGetIntegerv @ 30 + glPushAttrib @ 31 + glPopAttrib @ 32 + glRenderMode @ 33 + glGetError @ 34 + glGetString @ 35 + glFinish @ 36 + glFlush @ 37 + glHint @ 38 + glClearDepth @ 39 + glDepthFunc @ 40 + glDepthMask @ 41 + glDepthRange @ 42 + glClearAccum @ 43 + glAccum @ 44 + glMatrixMode @ 45 + glOrtho @ 46 + glFrustum @ 47 + glViewport @ 48 + glPushMatrix @ 49 + glPopMatrix @ 50 + glLoadIdentity @ 51 + glLoadMatrixd @ 52 + glLoadMatrixf @ 53 + glMultMatrixd @ 54 + glMultMatrixf @ 55 + glRotated @ 56 + glRotatef @ 57 + glScaled @ 58 + glScalef @ 59 + glTranslated @ 60 + glTranslatef @ 61 + glIsList @ 62 + glDeleteLists @ 63 + glGenLists @ 64 + glNewList @ 65 + glEndList @ 66 + glCallList @ 67 + glCallLists @ 68 + glListBase @ 69 + glBegin @ 70 + glEnd @ 71 + glVertex2d @ 72 + glVertex2f @ 73 + glVertex2i @ 74 + glVertex2s @ 75 + glVertex3d @ 76 + glVertex3f @ 77 + glVertex3i @ 78 + glVertex3s @ 79 + glVertex4d @ 80 + glVertex4f @ 81 + glVertex4i @ 82 + glVertex4s @ 83 + glVertex2dv @ 84 + glVertex2fv @ 85 + glVertex2iv @ 86 + glVertex2sv @ 87 + glVertex3dv @ 88 + glVertex3fv @ 89 + glVertex3iv @ 90 + glVertex3sv @ 91 + glVertex4dv @ 92 + glVertex4fv @ 93 + glVertex4iv @ 94 + glVertex4sv @ 95 + glNormal3b @ 96 + glNormal3d @ 97 + glNormal3f @ 98 + glNormal3i @ 99 + glNormal3s @ 100 + glNormal3bv @ 101 + glNormal3dv @ 102 + glNormal3fv @ 103 + glNormal3iv @ 104 + glNormal3sv @ 105 + glIndexd @ 106 + glIndexf @ 107 + glIndexi @ 108 + glIndexs @ 109 + glIndexdv @ 110 + glIndexfv @ 111 + glIndexiv @ 112 + glIndexsv @ 113 + glColor3b @ 114 + glColor3d @ 115 + glColor3f @ 116 + glColor3i @ 117 + glColor3s @ 118 + glColor3ub @ 119 + glColor3ui @ 120 + glColor3us @ 121 + glColor4b @ 122 + glColor4d @ 123 + glColor4f @ 124 + glColor4i @ 125 + glColor4s @ 126 + glColor4ub @ 127 + glColor4ui @ 128 + glColor4us @ 129 + glColor3bv @ 130 + glColor3dv @ 131 + glColor3fv @ 132 + glColor3iv @ 133 + glColor3sv @ 134 + glColor3ubv @ 135 + glColor3uiv @ 136 + glColor3usv @ 137 + glColor4bv @ 138 + glColor4dv @ 139 + glColor4fv @ 140 + glColor4iv @ 141 + glColor4sv @ 142 + glColor4ubv @ 143 + glColor4uiv @ 144 + glColor4usv @ 145 + glTexCoord1d @ 146 + glTexCoord1f @ 147 + glTexCoord1i @ 148 + glTexCoord1s @ 149 + glTexCoord2d @ 150 + glTexCoord2f @ 151 + glTexCoord2i @ 152 + glTexCoord2s @ 153 + glTexCoord3d @ 154 + glTexCoord3f @ 155 + glTexCoord3i @ 156 + glTexCoord3s @ 157 + glTexCoord4d @ 158 + glTexCoord4f @ 159 + glTexCoord4i @ 160 + glTexCoord4s @ 161 + glTexCoord1dv @ 162 + glTexCoord1fv @ 163 + glTexCoord1iv @ 164 + glTexCoord1sv @ 165 + glTexCoord2dv @ 166 + glTexCoord2fv @ 167 + glTexCoord2iv @ 168 + glTexCoord2sv @ 169 + glTexCoord3dv @ 170 + glTexCoord3fv @ 171 + glTexCoord3iv @ 172 + glTexCoord3sv @ 173 + glTexCoord4dv @ 174 + glTexCoord4fv @ 175 + glTexCoord4iv @ 176 + glTexCoord4sv @ 177 + glRasterPos2d @ 178 + glRasterPos2f @ 179 + glRasterPos2i @ 180 + glRasterPos2s @ 181 + glRasterPos3d @ 182 + glRasterPos3f @ 183 + glRasterPos3i @ 184 + glRasterPos3s @ 185 + glRasterPos4d @ 186 + glRasterPos4f @ 187 + glRasterPos4i @ 188 + glRasterPos4s @ 189 + glRasterPos2dv @ 190 + glRasterPos2fv @ 191 + glRasterPos2iv @ 192 + glRasterPos2sv @ 193 + glRasterPos3dv @ 194 + glRasterPos3fv @ 195 + glRasterPos3iv @ 196 + glRasterPos3sv @ 197 + glRasterPos4dv @ 198 + glRasterPos4fv @ 199 + glRasterPos4iv @ 200 + glRasterPos4sv @ 201 + glRectd @ 202 + glRectf @ 203 + glRecti @ 204 + glRects @ 205 + glRectdv @ 206 + glRectfv @ 207 + glRectiv @ 208 + glRectsv @ 209 + glShadeModel @ 210 + glLightf @ 211 + glLighti @ 212 + glLightfv @ 213 + glLightiv @ 214 + glGetLightfv @ 215 + glGetLightiv @ 216 + glLightModelf @ 217 + glLightModeli @ 218 + glLightModelfv @ 219 + glLightModeliv @ 220 + glMaterialf @ 221 + glMateriali @ 222 + glMaterialfv @ 223 + glMaterialiv @ 224 + glGetMaterialfv @ 225 + glGetMaterialiv @ 226 + glColorMaterial @ 227 + glPixelZoom @ 228 + glPixelStoref @ 229 + glPixelStorei @ 230 + glPixelTransferf @ 231 + glPixelTransferi @ 232 + glPixelMapfv @ 233 + glPixelMapuiv @ 234 + glPixelMapusv @ 235 + glGetPixelMapfv @ 236 + glGetPixelMapuiv @ 237 + glGetPixelMapusv @ 238 + glBitmap @ 239 + glReadPixels @ 240 + glDrawPixels @ 241 + glCopyPixels @ 242 + glStencilFunc @ 243 + glStencilMask @ 244 + glStencilOp @ 245 + glClearStencil @ 246 + glTexGend @ 247 + glTexGenf @ 248 + glTexGeni @ 249 + glTexGendv @ 250 + glTexGenfv @ 251 + glTexGeniv @ 252 + glGetTexGendv @ 253 + glGetTexGenfv @ 254 + glGetTexGeniv @ 255 + glTexEnvf @ 256 + glTexEnvi @ 257 + glTexEnvfv @ 258 + glTexEnviv @ 259 + glGetTexEnvfv @ 260 + glGetTexEnviv @ 261 + glTexParameterf @ 262 + glTexParameteri @ 263 + glTexParameterfv @ 264 + glTexParameteriv @ 265 + glGetTexParameterfv @ 266 + glGetTexParameteriv @ 267 + glGetTexLevelParameterfv @ 268 + glGetTexLevelParameteriv @ 269 + glTexImage1D @ 270 + glTexImage2D @ 271 + glGetTexImage @ 272 + glMap1d @ 273 + glMap1f @ 274 + glMap2d @ 275 + glMap2f @ 276 + glGetMapdv @ 277 + glGetMapfv @ 278 + glGetMapiv @ 279 + glEvalCoord1d @ 280 + glEvalCoord1f @ 281 + glEvalCoord1dv @ 282 + glEvalCoord1fv @ 283 + glEvalCoord2d @ 284 + glEvalCoord2f @ 285 + glEvalCoord2dv @ 286 + glEvalCoord2fv @ 287 + glMapGrid1d @ 288 + glMapGrid1f @ 289 + glMapGrid2d @ 290 + glMapGrid2f @ 291 + glEvalPoint1 @ 292 + glEvalPoint2 @ 293 + glEvalMesh1 @ 294 + glEvalMesh2 @ 295 + glFogf @ 296 + glFogi @ 297 + glFogfv @ 298 + glFogiv @ 299 + glFeedbackBuffer @ 300 + glPassThrough @ 301 + glSelectBuffer @ 302 + glInitNames @ 303 + glLoadName @ 304 + glPushName @ 305 + glPopName @ 306 +; glBlendEquationEXT @ 307 +; glBlendColorEXT @ 308 + glPolygonOffset @ 309 +#ifndef __UNIXOS2__ +; glVertexPointerEXT @ 310 +; glNormalPointerEXT @ 311 +#else + glVertexPointerEXT @ 310 + glNormalPointerEXT @ 311 +#endif +; glColorPointerEXT @ 312 +; glIndexPointerEXT @ 313 +; glTexCoordPointerEXT @ 314 +; glEdgeFlagPointerEXT @ 315 +; glGetPointervEXT @ 316 +; glArrayElementEXT @ 317 +#ifndef __UNIXOS2__ +; glDrawArraysEXT @ 318 +#else + glDrawArraysEXT @ 318 +#endif +; OSMesaCreateContext @ 319 +; OSMesaDestroyContext @ 320 +; OSMesaMakeCurrent @ 321 +; XMesaCreateContext @ 322 +; XMesaDestroyContext @ 323 +; XMesaMakeCurrent @ 326 +; XMesaGetCurrentContext @ 327 +; XMesaSwapBuffers @ 328 +; XMesaGetBackBuffer @ 329 + glXChooseVisual @ 330 + glXCreateContext @ 331 + glXDestroyContext @ 332 + glXMakeCurrent @ 333 + glXCopyContext @ 334 + glXSwapBuffers @ 335 + glXCreateGLXPixmap @ 336 + glXDestroyGLXPixmap @ 337 + glXQueryExtension @ 338 + glXQueryVersion @ 339 + glXIsDirect @ 340 + glXGetConfig @ 341 + glXGetCurrentContext @ 342 + glXGetCurrentDrawable @ 343 + glXWaitGL @ 344 + glXWaitX @ 345 + glXUseXFont @ 346 + glXQueryExtensionsString @ 347 + glXQueryServerString @ 348 + glXGetClientString @ 349 + glPushClientAttrib @ 350 + glPopClientAttrib @ 351 + glIndexub @ 352 + glIndexubv @ 353 + glVertexPointer @ 354 + glNormalPointer @ 355 + glColorPointer @ 356 + glIndexPointer @ 357 + glTexCoordPointer @ 358 + glEdgeFlagPointer @ 359 + glGetPointerv @ 360 + glArrayElement @ 361 + glDrawArrays @ 362 + glDrawElements @ 363 + glInterleavedArrays @ 364 + glGenTextures @ 365 + glDeleteTextures @ 366 + glBindTexture @ 367 + glPrioritizeTextures @ 368 + glAreTexturesResident @ 369 + glIsTexture @ 370 + glTexSubImage1D @ 371 + glTexSubImage2D @ 372 + glCopyTexImage1D @ 373 + glCopyTexImage2D @ 374 + glCopyTexSubImage1D @ 375 + glCopyTexSubImage2D @ 376 +; glWindowPos2iMESA @ 377 +; glWindowPos2sMESA @ 378 +#ifndef __UNIXOS2__ +; glWindowPos2fMESA @ 379 +#else + glWindowPos2fMESA @ 379 +#endif +; glWindowPos2dMESA @ 380 +; glWindowPos2ivMESA @ 381 +; glWindowPos2svMESA @ 382 +; glWindowPos2fvMESA @ 383 +; glWindowPos2dvMESA @ 384 +; glWindowPos3iMESA @ 385 +; glWindowPos3sMESA @ 386 +; glWindowPos3fMESA @ 387 +; glWindowPos3dMESA @ 388 +; glWindowPos3ivMESA @ 389 +; glWindowPos3svMESA @ 390 +; glWindowPos3fvMESA @ 391 +; glWindowPos3dvMESA @ 392 +; glWindowPos4iMESA @ 393 +; glWindowPos4sMESA @ 394 +; glWindowPos4fMESA @ 395 +; glWindowPos4dMESA @ 396 +; glWindowPos4ivMESA @ 397 +; glWindowPos4svMESA @ 398 +; glWindowPos4fvMESA @ 399 +; glWindowPos4dvMESA @ 400 +#ifndef __UNIXOS2__ +; glXCreateGLXPixmapMESA @ 401 +#else + glXCreateGLXPixmapMESA @ 401 +#endif +; glXReleaseBuffersMESA @ 402 +; OSMesaGetCurrentContext @ 403 +; OSMesaPixelStore @ 404 +; OSMesaGetIntegerv @ 405 +; XMesaCreateVisual @ 406 +; XMesaDestroyVisual @ 407 +; XMesaCreateWindowBuffer @ 408 +; XMesaCreatePixmapBuffer @ 409 +; XMesaDestroyBuffer @ 410 +; XMesaGetCurrentBuffer @ 411 +; XMesaFlush @ 412 +; XMesaGetString @ 413 +; glPolygonOffsetEXT @ 414 + glDisableClientState @ 450 + glEnableClientState @ 451 + glXFreeContextEXT @ 452 + glXGetContextIDEXT @ 453 + glXGetCurrentDisplay @ 454 + glXImportContextEXT @ 455 + glXQueryContextInfoEXT @ 456 +#ifndef __UNIXOS2__ + glXGetCurrentDrawableEXT @ 457 +#endif + glCopyTexSubImage3D @ 458 + glDrawRangeElements @ 459 + glTexSubImage3D @ 460 + glBlendColorEXT @ 461 + glBlendEquationEXT @ 462 + glTexImage3D @ 463 +#ifdef __UNIXOS2__ + _glapi_Context @ 500 + _glapi_Dispatch @ 501 + glMultiTexCoord1svARB @ 502 + glMultiTexCoord1ivARB @ 503 + glMultiTexCoord1fvARB @ 504 + glMultiTexCoord1dvARB @ 505 + glMultiTexCoord2svARB @ 506 + glMultiTexCoord2ivARB @ 507 + glMultiTexCoord2fvARB @ 508 + glMultiTexCoord2dvARB @ 509 + glMultiTexCoord3svARB @ 510 + glMultiTexCoord3ivARB @ 511 + glMultiTexCoord3fvARB @ 512 + glMultiTexCoord3dvARB @ 513 + glMultiTexCoord4svARB @ 514 + glMultiTexCoord4ivARB @ 515 + glMultiTexCoord4fvARB @ 516 + glMultiTexCoord4dvARB @ 517 + glMultiTexCoord1fARB @ 518 + glMultiTexCoord2fARB @ 519 + glMultiTexCoord3fARB @ 520 + glMultiTexCoord4fARB @ 521 + _glapi_set_dispatch @ 522 + _glapi_noop_enable_warnings @ 523 + _glapi_add_entrypoint @ 524 + _glapi_get_dispatch_table_size @ 525 + _glapi_check_multithread @ 526 + _glapi_set_context @ 527 + _glapi_get_context @ 528 + glColorTable @ 529 + glColorSubTable @ 530 + glConvolutionFilter1D @ 531 + glConvolutionFilter2D @ 532 + glXGetProcAddressARB @ 533 + glLockArraysEXT @ 534 + glUnlockArraysEXT @ 535 + glActiveTextureARB @ 536 + glColorTableEXT @ 537 + glPointParameterfEXT @ 538 + glPointParameterfvEXT @ 539 + glXMakeContextCurrent @ 540 +#endif + +/* $XFree86: xc/lib/GL/GL/GL-def.cpp,v 1.2 2003/03/25 04:18:07 dawes Exp $ */ diff --git a/nx-X11/lib/GL/GL/Imakefile b/nx-X11/lib/GL/GL/Imakefile new file mode 100644 index 000000000..336f3d5b7 --- /dev/null +++ b/nx-X11/lib/GL/GL/Imakefile @@ -0,0 +1,246 @@ +XCOMM $XFree86: xc/lib/GL/GL/Imakefile,v 1.23 2003/11/17 03:10:41 dawes Exp $ + +#include <Threads.tmpl> + +#define DoNormalLib NormalLibGlx +#define DoSharedLib SharedLibGlx +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx + +#ifndef ShLibBindGlobals +#if !HasGcc2 || (GccMajorVersion > 2) || (GccMinorVersion > 7) +#define ShlibBindGlobals YES +#endif +#endif + + LIBNAME = GL + SOREV = $(SOGLREV) + +#ifdef SharedGLReqs +BASEREQUIREDLIBS = SharedGLReqs +#endif + +#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/x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../mesa/sparc/Imakefile.inc" +#endif + + +#if BuildXF86DRI && defined(i386Architecture) && MesaUseX86Asm + GLAPI_OBJ = $(GLXLIBSRC)/glx/glapi_x86.o +#endif + + GLXOBJS = $(GLXLIBSRC)/glx/?*.o + GLXUOBJS = $(GLXLIBSRC)/glx/unshared/?*.o $(GLAPI_OBJ) + GLXDOBJS = $(GLXLIBSRC)/glx/debugger/?*.o $(GLAPI_OBJ) + GLXPOBJS = $(GLXLIBSRC)/glx/profiled/?*.o $(GLAPI_OBJ) + +#if BuildXF86DRI + DRMOBJS = $(GLXLIBSRC)/dri/drm/?*.o + DRMUOBJS = $(GLXLIBSRC)/dri/drm/unshared/?*.o + DRMDOBJS = $(GLXLIBSRC)/dri/drm/debugger/?*.o + DRMPOBJS = $(GLXLIBSRC)/dri/drm/profiled/?*.o + + MESAOBJS = $(COREMESAOBJS) $(MESA_ASM_OBJS) + MESAUOBJS = $(COREMESAUOBJS) $(MESA_ASM_UOBJS) + MESADOBJS = $(COREMESADOBJS) $(MESA_ASM_DOBJS) + MESAPOBJS = $(COREMESAPOBJS) $(MESA_ASM_POBJS) + +#if GlxUseBuiltInDRIDriver +#include "../mesa/drivers/dri/common/Imakefile.inc" +#endif + + +#if GlxUseSGISI + +XCOMM nothing + +#elif GlxBuiltInGamma + +#define MesaDrvGammaBuildDir $(GLXLIBSRC)/mesa/drivers/dri/gamma/ +#include "../mesa/drivers/dri/gamma/Imakefile.inc" + + DRVOBJS = $(GAMMAOBJS) $(MESAOBJS) + DRVUOBJS = $(GAMMAUOBJS) $(MESAUOBJS) + DRVDOBJS = $(GAMMADOBJS) $(MESADOBJS) + DRVPOBJS = $(GAMMAPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInTdfx + +#define MesaDrvTdfxBuildDir $(GLXLIBSRC)/mesa/drivers/dri/tdfx/ +#include "../mesa/drivers/dri/tdfx/Imakefile.inc" + + DRVOBJS = $(TDFXOBJS) $(MESAOBJS) + DRVUOBJS = $(TDFXUOBJS) $(MESAUOBJS) + DRVDOBJS = $(TDFXDOBJS) $(MESADOBJS) + DRVPOBJS = $(TDFXPOBJS) $(MESAPOBJS) + +OTHERREQUIREDLIBS = -lglide3 -ldl + +#elif GlxBuiltInI810 + +#define MesaDrvI810BuildDir $(GLXLIBSRC)/mesa/drivers/dri/i810/ +#include "../mesa/drivers/dri/i810/Imakefile.inc" + + DRVOBJS = $(I810OBJS) $(COMMONOBJS) $(MESAOBJS) + DRVUOBJS = $(I810UOBJS) $(COMMONUOBJS) $(MESAUOBJS) + DRVDOBJS = $(I810DOBJS) $(COMMONDOBJS) $(MESADOBJS) + DRVPOBJS = $(I810POBJS) $(COMMONPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInI915 +#define MesaDrvI915BuildDir $(GLXLIBSRC)/mesa/drivers/dri/i915/ +#include "../mesa/drivers/dri/i915/Imakefile.inc" + + DRVOBJS = $(I915OBJS) $(COMMONOBJS) $(MESAOBJS) + DRVUOBJS = $(I915UOBJS) $(COMMONUOBJS) $(MESAUOBJS) + DRVDOBJS = $(I915DOBJS) $(COMMONDOBJS) $(MESADOBJS) + DRVPOBJS = $(I915POBJS) $(COMMONPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInMga + +#define MesaDrvMgaBuildDir $(GLXLIBSRC)/mesa/drivers/dri/mga/ +#include "../mesa/drivers/dri/mga/Imakefile.inc" + + DRVOBJS = $(MGAOBJS) $(COMMONOBJS) $(MESAOBJS) + DRVUOBJS = $(MGAUOBJS) $(COMMONUOBJS) $(MESAUOBJS) + DRVDOBJS = $(MGADOBJS) $(COMMONDOBJS) $(MESADOBJS) + DRVPOBJS = $(MGAPOBJS) $(COMMONPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInR128 + +#define MesaDrvR128BuildDir $(GLXLIBSRC)/mesa/drivers/dri/r128/ +#include "../mesa/drivers/dri/r128/Imakefile.inc" + + DRVOBJS = $(R128OBJS) $(COMMONOBJS) $(MESAOBJS) + DRVUOBJS = $(R128UOBJS) $(COMMONUOBJS) $(MESAUOBJS) + DRVDOBJS = $(R128DOBJS) $(COMMONDOBJS) $(MESADOBJS) + DRVPOBJS = $(R128POBJS) $(COMMONPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInRadeon + +#define MesaDrvRadeonBuildDir $(GLXLIBSRC)/mesa/drivers/dri/radeon/ +#include "../mesa/drivers/dri/radeon/Imakefile.inc" + + DRVOBJS = $(RADEONOBJS) $(COMMONOBJS) $(MESAOBJS) + DRVUOBJS = $(RADEONUOBJS) $(COMMONUOBJS) $(MESAUOBJS) + DRVDOBJS = $(RADEONDOBJS) $(COMMONDOBJS) $(MESADOBJS) + DRVPOBJS = $(RADEONPOBJS) $(COMMONPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInFfb + +#define MesaDrvFfbBuildDir $(GLXLIBSRC)/mesa/drivers/dri/ffb/ +#include "../mesa/drivers/dri/ffb/Imakefile.inc" + + DRVOBJS = $(FFBOBJS) $(MESAOBJS) + DRVUOBJS = $(FFBUOBJS) $(MESAUOBJS) + DRVDOBJS = $(FFBDOBJS) $(MESADOBJS) + DRVPOBJS = $(FFBPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInSIS + +#define MesaDrvSisBuildDir $(GLXLIBSRC)/mesa/drivers/dri/sis/ +#include "../mesa/drivers/dri/sis/Imakefile.inc" + + DRVOBJS = $(SISOBJS) $(MESAOBJS) + DRVUOBJS = $(SISUOBJS) $(MESAUOBJS) + DRVDOBJS = $(SISDOBJS) $(MESADOBJS) + DRVPOBJS = $(SISPOBJS) $(MESAPOBJS) + +#elif GlxBuiltInXMesa + +#include "../mesa/drivers/x11/Imakefile.inc" + + DRVOBJS = $(MESAOBJS) $(XMESA_OBJS) + DRVUOBJS = $(MESAUOBJS) $(XMESA_UOBJS) + DRVDOBJS = $(MESADOBJS) $(XMESA_DOBJS) + DRVPOBJS = $(MESAPOBJS) $(XMESA_POBJS) + +#else + +XCOMM No built-in drivers. This is the usual case. + +#endif + +#endif /* BuildXF86DRI */ + +#if defined(DarwinArchitecture) && BuildAppleDRI + APPLEOBJS = appledri.o dri_dispatch.o dri_driver.o dri_glx.o x-list.o x-hash.o + DRIOBJS = $(APPLEOBJS:%.o=$(GLXLIBSRC)/apple/%.o) + DRIUOBJS = $(APPLEOBJS:%.o=$(GLXLIBSRC)/apple/unshared/%.o) + DRIDOBJS = $(APPLEOBJS:%.o=$(GLXLIBSRC)/apple/debugger/%.o) + DRIPOBJS = $(APPLEOBJS:%.o=$(GLXLIBSRC)/apple/profiled/%.o) + +NATIVE_GL = /System/Library/Frameworks/OpenGL.framework + +OTHERREQUIREDLIBS = \ + XpluginLibrary $(NATIVE_GL)/Libraries/libGL.dylib -sub_library libGL \ + -framework ApplicationServices -framework CoreFoundation \ + -framework OpenGL +#endif + +#if BuildXF86DRI && BuildXF86VidModeExt +VMODEREQUIREDLIBS = $(LDPRELIBS) $(XXF86VMLIB) +#endif + +/* + * Note: DRIDIRS is empty for !BuildXF86DRI, and DRVSUBDIRS is empty + * for no built-in drivers. + */ + +REQUIREDLIBS = $(OTHERREQUIREDLIBS) $(VMODEREQUIREDLIBS) $(BASEREQUIREDLIBS) + + OBJS = $(GLXOBJS) $(DRIOBJS) $(DRVOBJS) $(DRMOBJS) +#if HasSharedLibraries && !SharedLibGlxWithoutPIC + UOBJS = $(GLXUOBJS) $(DRIUOBJS) $(DRVUOBJS) $(DRMUOBJS) +#else + UOBJS = $(OBJS) +#endif + DOBJS = $(GLXDOBJS) $(DRIDOBJS) $(DRVDOBJS) $(DRMDOBJS) + POBJS = $(GLXPOBJS) $(DRIPOBJS) $(DRVPOBJS) $(DRMPOBJS) + +#if LocalThreads + THREADOBJS = $(THREADS_LIBS) +#endif + +#include <Library.tmpl> + +#undef _LinkBuildLibrary +#define _LinkBuildLibrary(lib) LinkBuildLibrary(lib) + + +#if NormalLibGlx +NormalLibraryTarget($(LIBNAME),$(UOBJS)) +InstallLibrary($(LIBNAME),$(USRLIBDIR)) +#endif +#if SharedLibGlx +SharedDepLibraryTarget($(LIBNAME),$(SOREV),$(OBJS),$(OBJS) $(THREADOBJS),.,.) +InstallSharedLibrary($(LIBNAME),$(SOREV),$(SHLIBDIR)) +#if LinkGLToUsrLib && AlternateUsrLibDir +install:: + MakeDir($(DESTDIR)$(SYSTEMUSRLIBDIR)) + $(RM) $(DESTDIR)$(SYSTEMUSRLIBDIR)/lib$(LIBNAME).so + $(LN) $(SHLIBDIR)/lib$(LIBNAME).so $(DESTDIR)$(SYSTEMUSRLIBDIR)/lib$(LIBNAME).so || true + $(RM) $(DESTDIR)$(SYSTEMUSRLIBDIR)/lib$(LIBNAME).so.1 + $(LN) $(SHLIBDIR)/lib$(LIBNAME).so.1 $(DESTDIR)$(SYSTEMUSRLIBDIR)/lib$(LIBNAME).so.1 || true +#endif +#endif +#if DebugLibGlx +DebuggedLibraryTarget($(LIBNAME),$(DOBJS)) +InstallLibrary($(LIBNAME)_d,$(USRLIBDIR)) +#endif +#if ProfileLibGlx +ProfiledLibraryTarget($(LIBNAME),$(POBJS)) +InstallLibrary($(LIBNAME)_p,$(USRLIBDIR)) +#endif + + diff --git a/nx-X11/lib/GL/Imakefile b/nx-X11/lib/GL/Imakefile new file mode 100644 index 000000000..b53a71f4c --- /dev/null +++ b/nx-X11/lib/GL/Imakefile @@ -0,0 +1,119 @@ +XCOMM $XFree86: xc/lib/GL/Imakefile,v 1.43 2003/06/30 01:45:10 torrey Exp $ + +XCOMM +XCOMM Imake tokens which are significant to building libGL: +XCOMM +XCOMM BuildGLXLibrary - if defined, build libs in xc/lib/GL and xc/lib/GLw +XCOMM +XCOMM BuildXF86DRI - if defined, build libGL with DRI capability +XCOMM +XCOMM Only zero or one of the following can be defined at once: +XCOMM GlxBuiltInGamma - if defined, build gamma_dri.so driver into libGL +XCOMM GlxBuiltInTdfx - if defined, build tdfx_dri.so driver into libGL +XCOMM GlxBuiltInMga - if defined, build mga_dri.so driver into libGL +XCOMM GlxBuiltInI810 - if defined, build i810_dri.so driver into libGL +XCOMM GlxBuiltInR128 - if defined, build r128_dri.so driver into libGL +XCOMM GlxBuiltInRadeon - if defined, build radeon_dri.so driver into libGL +XCOMM GlxBuiltInR200 - if defined, build r200_dri.so driver into libGL +XCOMM GlxBuiltInFfb - if defined, build ffb_dri.so driver into libGL +XCOMM GlxBuiltInSIS - if defined, build sis_dri.so driver into libGL +XCOMM +XCOMM GlxUseBuiltInDRIDriver - automatically defined if any of the +XCOMM GlxBuiltIn[Gamma,Tdfx,Mga,I810,R128,Radeon,R200,Ffb,SIS] tokens is +XCOMM defined +XCOMM +XCOMM GlxBuiltInXMesa - if defined, build XMesa (Xlib Mesa driver) into libGL +XCOMM to enable rendering to displays that lack the GLX extension. +XCOMM +XCOMM GlxDriverUsesMesa - will be defined if building a DRI driver into +XCOMM libGL and it uses Mesa. +XCOMM +XCOMM GlxUseSGISI - if defined, use the SGI OpenGL Sample Implementation +XCOMM to build the GLX server extension (not fully implemented yet). +XCOMM +XCOMM NormalLibGlx - if defined, build static libGL.a library +XCOMM +XCOMM SharedLibGlx - if defined, build dynamic libGL.so library +XCOMM +XCOMM DebugLibGlx - if defined, build libGL with debug info +XCOMM +XCOMM ProfileLibGlx - if defined, build libGL with profiling info +XCOMM +XCOMM SharedGlxRev - dynamic library version, currently defined to be "1.2" +XCOMM +XCOMM GlxSoProf - if defined, build dynamic libGL for profiling with soprof +XCOMM +XCOMM GlxStubLib - purpose??? +XCOMM +XCOMM +XCOMM Server-side tokens: +XCOMM BuildGlxExt +XCOMM GlxUseSGISI + + + +#include <Threads.tmpl> + +#define IHaveSubdirs + +#define PassCDebugFlags + +LIBGLBUILDDIR = GL + GLXDIRS = glx + +/* + * Need to build the Mesa + XMesa source in the following cases: + * BuildXF86DRI && defined(DriDrivers) + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + */ +#if BuildOSMesaLib || \ + (BuildXF86DRI && \ + (defined(DriDrivers) || GlxDriverUsesMesa || GlxBuiltInXMesa)) + MESADIRS = mesa +#endif + +/* + * Only need the OSmesa code in the following case: + * BuildOSMesaLib + */ +#if BuildOSMesaLib + OSMESADIRS = mesa/drivers/osmesa +#endif + +/* + * Need to build the DRI code in the following cases: + * BuildXF86DRI + */ +#if BuildXF86DRI + DRIDIRS = dri/drm +#endif + +/* + * Need to build the DRI drivers in the following cases: + * BuildXF86DRI && defined(DriDrivers) + */ +#if BuildXF86DRI && defined(DriDrivers) + DRIVERDIRS = mesa/drivers/dri +#endif + +#if defined(DarwinArchitecture) && BuildAppleDRI + DRIDIRS = apple +#endif + +/* + * The build order depends on whether the drivers are loaded into libGL or + * built-in to libGL. In the former case, libGL needs to be built before + * the drivers, and in the latter case, it needs to be built after the driver. + */ +#if BuildXF86DRI && GlxUseBuiltInDRIDriver +SUBDIRS = $(MESADIRS) $(DRIDIRS) $(DRIVERDIRS) $(GLXDIRS) $(LIBGLBUILDDIR) $(OSMESADIRS) +#else +SUBDIRS = $(MESADIRS) $(GLXDIRS) $(DRIDIRS) $(LIBGLBUILDDIR) $(OSMESADIRS) $(DRIVERDIRS) +#endif + +MakeSubdirs($(SUBDIRS)) + +DependSubdirs($(SUBDIRS)) + diff --git a/nx-X11/lib/GL/apple/Imakefile b/nx-X11/lib/GL/apple/Imakefile new file mode 100644 index 000000000..0a593e63e --- /dev/null +++ b/nx-X11/lib/GL/apple/Imakefile @@ -0,0 +1,54 @@ +XCOMM $XFree86: xc/lib/GL/apple/Imakefile,v 1.2 2003/10/09 23:42:32 torrey Exp $ + +#include <Threads.tmpl> + +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx + + XPRDIR = $(SERVERSRC)/hw/darwin/quartz/xpr + +LinkSourceFile(x-list.c,$(XPRDIR)) +LinkSourceFile(x-list.h,$(XPRDIR)) +LinkSourceFile(x-hash.c,$(XPRDIR)) +LinkSourceFile(x-hash.h,$(XPRDIR)) + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + + DRI_SRCS = dri_glx.c dri_driver.c dri_dispatch.c x-hash.c x-list.c + DRI_OBJS = dri_glx.o dri_driver.o dri_dispatch.o x-hash.o x-list.o + DRI_INCS = -I. -I$(GLXLIBSRC)/glx -I$(INCLUDESRC) -I$(INCLUDESRC)/GL \ + -I$(XINCLUDESRC) -I$(SERVERSRC)/GL/dri -I$(XPINCDIR) \ + -I$(MESASRCDIR)/include -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(GLXLIBSRC)/include + + AS = /System/Library/Frameworks/ApplicationServices.framework + + DEFINES = $(ALLOC_DEFINES) GlxDefines $(GLX_DEFS) -DXP_NO_X_HEADERS=1 \ + -DOSVERSION=OSMajorVersion*100+OSMinorVersion + INCLUDES = -I$(XLIBSRC) -I$(EXTINCSRC) -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core -I$(DRI_INCS) -F$(AS)/Frameworks + SRCS = appledri.c $(DRI_SRCS) + OBJS = appledri.o $(DRI_OBJS) + +/* We won't require this to run when building normally, just for updating. + Also, don't give it any dependences so make doesn't attempt to rebuild + it if the dates get screwed up. (It actually depends on build-dispatch + and dri_dispatch.defs) */ +dri_dispatch.h : + ./build-dispatch <dri_dispatch.defs >$@ + +LinkSourceFile(drm.h,$(DRMSRCDIR)/shared-core) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/apple/appledri.c b/nx-X11/lib/GL/apple/appledri.c new file mode 100644 index 000000000..ed48fcb0c --- /dev/null +++ b/nx-X11/lib/GL/apple/appledri.c @@ -0,0 +1,302 @@ +/* $XFree86: xc/lib/GL/dri/XF86dri.c,v 1.12 2001/08/27 17:40:57 dawes Exp $ */ +/************************************************************************** + +Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. +Copyright 2000 VA Linux Systems, Inc. +Copyright (c) 2002 Apple Computer, Inc. +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, +distribute, sub license, 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 NON-INFRINGEMENT. +IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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: + * Kevin E. Martin <martin@valinux.com> + * Jens Owen <jens@valinux.com> + * Rickard E. (Rik) Faith <faith@valinux.com> + * + */ + +/* THIS IS NOT AN X CONSORTIUM STANDARD */ + +#define NEED_EVENTS +#define NEED_REPLIES +#include <X11/Xlibint.h> +#include "appledristr.h" +#include <X11/extensions/Xext.h> +#include "extutil.h" +#include <stdio.h> + +static XExtensionInfo _appledri_info_data; +static XExtensionInfo *appledri_info = &_appledri_info_data; +static char *appledri_extension_name = APPLEDRINAME; + +#define AppleDRICheckExtension(dpy,i,val) \ + XextCheckExtension(dpy, i, appledri_extension_name, val) + +/***************************************************************************** + * * + * private utility routines * + * * + *****************************************************************************/ + +static int close_display(Display *dpy, XExtCodes *extCodes); +static Bool wire_to_event(); + +static /* const */ XExtensionHooks appledri_extension_hooks = { + NULL, /* create_gc */ + NULL, /* copy_gc */ + NULL, /* flush_gc */ + NULL, /* free_gc */ + NULL, /* create_font */ + NULL, /* free_font */ + close_display, /* close_display */ + wire_to_event, /* wire_to_event */ + NULL, /* event_to_wire */ + NULL, /* error */ + NULL, /* error_string */ +}; + +static XEXT_GENERATE_FIND_DISPLAY(find_display, appledri_info, + appledri_extension_name, + &appledri_extension_hooks, + AppleDRINumberEvents, NULL) + +static XEXT_GENERATE_CLOSE_DISPLAY(close_display, appledri_info) + +static void (*surface_notify_handler)(); + +void * +XAppleDRISetSurfaceNotifyHandler(void (*fun)()) +{ + void *old = surface_notify_handler; + surface_notify_handler = fun; + return old; +} + +static Bool wire_to_event(dpy, re, event) + Display *dpy; + XEvent *re; + xEvent *event; +{ + XExtDisplayInfo *info = find_display(dpy); + xAppleDRINotifyEvent *sevent; + + AppleDRICheckExtension(dpy, info, False); + + switch ((event->u.u.type & 0x7f) - info->codes->first_event) { + case AppleDRISurfaceNotify: + sevent = (xAppleDRINotifyEvent *) event; + if (surface_notify_handler != NULL) { + (*surface_notify_handler)(dpy, (unsigned int) sevent->arg, + (int) sevent->kind); + } + return False; + } + return False; +} + +/***************************************************************************** + * * + * public Apple-DRI Extension routines * + * * + *****************************************************************************/ + +#if 0 +#include <stdio.h> +#define TRACE(msg) fprintf(stderr, "AppleDRI%s\n", msg); +#else +#define TRACE(msg) +#endif + + +Bool XAppleDRIQueryExtension(dpy, event_basep, error_basep) + Display *dpy; + int *event_basep, *error_basep; +{ + XExtDisplayInfo *info = find_display(dpy); + + TRACE("QueryExtension..."); + if (XextHasExtension(info)) { + *event_basep = info->codes->first_event; + *error_basep = info->codes->first_error; + TRACE("QueryExtension... return True"); + return True; + } else { + TRACE("QueryExtension... return False"); + return False; + } +} + +Bool XAppleDRIQueryVersion(dpy, majorVersion, minorVersion, patchVersion) + Display* dpy; + int* majorVersion; + int* minorVersion; + int* patchVersion; +{ + XExtDisplayInfo *info = find_display(dpy); + xAppleDRIQueryVersionReply rep; + xAppleDRIQueryVersionReq *req; + + TRACE("QueryVersion..."); + AppleDRICheckExtension(dpy, info, False); + + LockDisplay(dpy); + GetReq(AppleDRIQueryVersion, req); + req->reqType = info->codes->major_opcode; + req->driReqType = X_AppleDRIQueryVersion; + if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) { + UnlockDisplay(dpy); + SyncHandle(); + TRACE("QueryVersion... return False"); + return False; + } + *majorVersion = rep.majorVersion; + *minorVersion = rep.minorVersion; + *patchVersion = rep.patchVersion; + UnlockDisplay(dpy); + SyncHandle(); + TRACE("QueryVersion... return True"); + return True; +} + +Bool XAppleDRIQueryDirectRenderingCapable(dpy, screen, isCapable) + Display* dpy; + int screen; + Bool* isCapable; +{ + XExtDisplayInfo *info = find_display(dpy); + xAppleDRIQueryDirectRenderingCapableReply rep; + xAppleDRIQueryDirectRenderingCapableReq *req; + + TRACE("QueryDirectRenderingCapable..."); + AppleDRICheckExtension(dpy, info, False); + + LockDisplay(dpy); + GetReq(AppleDRIQueryDirectRenderingCapable, req); + req->reqType = info->codes->major_opcode; + req->driReqType = X_AppleDRIQueryDirectRenderingCapable; + req->screen = screen; + if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) { + UnlockDisplay(dpy); + SyncHandle(); + TRACE("QueryDirectRenderingCapable... return False"); + return False; + } + *isCapable = rep.isCapable; + UnlockDisplay(dpy); + SyncHandle(); + TRACE("QueryDirectRenderingCapable... return True"); + return True; +} + +Bool XAppleDRIAuthConnection(dpy, screen, magic) + Display* dpy; + int screen; + unsigned int magic; +{ + XExtDisplayInfo *info = find_display(dpy); + xAppleDRIAuthConnectionReq *req; + xAppleDRIAuthConnectionReply rep; + + TRACE("AuthConnection..."); + AppleDRICheckExtension(dpy, info, False); + + LockDisplay(dpy); + GetReq(AppleDRIAuthConnection, req); + req->reqType = info->codes->major_opcode; + req->driReqType = X_AppleDRIAuthConnection; + req->screen = screen; + req->magic = magic; + rep.authenticated = 0; + if (!_XReply(dpy, (xReply *)&rep, 0, xFalse) || !rep.authenticated) { + UnlockDisplay(dpy); + SyncHandle(); + TRACE("AuthConnection... return False"); + return False; + } + UnlockDisplay(dpy); + SyncHandle(); + TRACE("AuthConnection... return True"); + return True; +} + +Bool XAppleDRICreateSurface(dpy, screen, drawable, client_id, key, uid) + Display* dpy; + int screen; + Drawable drawable; + unsigned int client_id; + unsigned int *key; + unsigned int *uid; +{ + XExtDisplayInfo *info = find_display(dpy); + xAppleDRICreateSurfaceReply rep; + xAppleDRICreateSurfaceReq *req; + + TRACE("CreateSurface..."); + AppleDRICheckExtension(dpy, info, False); + + LockDisplay(dpy); + GetReq(AppleDRICreateSurface, req); + req->reqType = info->codes->major_opcode; + req->driReqType = X_AppleDRICreateSurface; + req->screen = screen; + req->drawable = drawable; + req->client_id = client_id; + rep.key_0 = rep.key_1 = rep.uid = 0; + if (!_XReply(dpy, (xReply *)&rep, 0, xFalse) || !rep.key_0) { + UnlockDisplay(dpy); + SyncHandle(); + TRACE("CreateSurface... return False"); + return False; + } + key[0] = rep.key_0; + key[1] = rep.key_1; + *uid = rep.uid; + UnlockDisplay(dpy); + SyncHandle(); + TRACE("CreateSurface... return True"); + return True; +} + +Bool XAppleDRIDestroySurface(dpy, screen, drawable) + Display* dpy; + int screen; + Drawable drawable; +{ + XExtDisplayInfo *info = find_display(dpy); + xAppleDRIDestroySurfaceReq *req; + + TRACE("DestroySurface..."); + AppleDRICheckExtension(dpy, info, False); + + LockDisplay(dpy); + GetReq(AppleDRIDestroySurface, req); + req->reqType = info->codes->major_opcode; + req->driReqType = X_AppleDRIDestroySurface; + req->screen = screen; + req->drawable = drawable; + UnlockDisplay(dpy); + SyncHandle(); + TRACE("DestroySurface... return True"); + return True; +} diff --git a/nx-X11/lib/GL/apple/appledri.h b/nx-X11/lib/GL/apple/appledri.h new file mode 100644 index 000000000..fafdc236c --- /dev/null +++ b/nx-X11/lib/GL/apple/appledri.h @@ -0,0 +1,106 @@ +/* $XFree86: xc/lib/GL/apple/appledri.h,v 1.1 2003/06/30 01:45:10 torrey Exp $ */ +/************************************************************************** + +Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. +Copyright 2000 VA Linux Systems, Inc. +Copyright (c) 2002 Apple Computer, Inc. +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, +distribute, sub license, 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 NON-INFRINGEMENT. +IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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: + * Kevin E. Martin <martin@valinux.com> + * Jens Owen <jens@valinux.com> + * Rickard E. (Rik) Faith <faith@valinux.com> + * + */ + +#ifndef _APPLEDRI_H_ +#define _APPLEDRI_H_ + +#include <X11/Xfuncproto.h> + +#define X_AppleDRIQueryVersion 0 +#define X_AppleDRIQueryDirectRenderingCapable 1 +#define X_AppleDRICreateSurface 2 +#define X_AppleDRIDestroySurface 3 +#define X_AppleDRIAuthConnection 4 +/* Requests up to and including 18 were used in a previous version */ + +/* Events */ +#define AppleDRIObsoleteEvent1 0 +#define AppleDRIObsoleteEvent2 1 +#define AppleDRIObsoleteEvent3 2 +#define AppleDRISurfaceNotify 3 +#define AppleDRINumberEvents 4 + +/* Errors */ +#define AppleDRIClientNotLocal 0 +#define AppleDRIOperationNotSupported 1 +#define AppleDRINumberErrors (AppleDRIOperationNotSupported + 1) + +/* Kinds of SurfaceNotify events: */ +#define AppleDRISurfaceNotifyChanged 0 +#define AppleDRISurfaceNotifyDestroyed 1 + +#ifndef _APPLEDRI_SERVER_ + +typedef struct { + int type; /* of event */ + unsigned long serial; /* # of last request processed by server */ + Bool send_event; /* true if this came frome a SendEvent request */ + Display *display; /* Display the event was read from */ + Window window; /* window of event */ + Time time; /* server timestamp when event happened */ + int kind; /* subtype of event */ + int arg; +} XAppleDRINotifyEvent; + +_XFUNCPROTOBEGIN + +Bool XAppleDRIQueryExtension (Display *dpy, int *event_base, int *error_base); + +Bool XAppleDRIQueryVersion (Display *dpy, int *majorVersion, + int *minorVersion, int *patchVersion); + +Bool XAppleDRIQueryDirectRenderingCapable (Display *dpy, int screen, + Bool *isCapable); + +void *XAppleDRISetSurfaceNotifyHandler (void (*fun) (Display *dpy, + unsigned uid, int kind)); + +Bool XAppleDRIAuthConnection (Display *dpy, int screen, unsigned int magic); + +Bool XAppleDRICreateSurface (Display *dpy, int screen, Drawable drawable, + unsigned int client_id, unsigned int key[2], + unsigned int* uid); + +Bool XAppleDRIDestroySurface (Display *dpy, int screen, Drawable drawable); + +Bool XAppleDRISynchronizeSurfaces (Display *dpy); + +_XFUNCPROTOEND + +#endif /* _APPLEDRI_SERVER_ */ +#endif /* _APPLEDRI_H_ */ diff --git a/nx-X11/lib/GL/apple/appledristr.h b/nx-X11/lib/GL/apple/appledristr.h new file mode 100644 index 000000000..ec4158391 --- /dev/null +++ b/nx-X11/lib/GL/apple/appledristr.h @@ -0,0 +1,174 @@ +/* $XFree86: xc/lib/GL/apple/appledristr.h,v 1.1 2003/06/30 01:45:10 torrey Exp $ */ +/************************************************************************** + +Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. +Copyright 2000 VA Linux Systems, Inc. +Copyright (c) 2002 Apple Computer, Inc. +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, +distribute, sub license, 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 NON-INFRINGEMENT. +IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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: + * Kevin E. Martin <martin@valinux.com> + * Jens Owen <jens@valinux.com> + * Rickard E. (Rik) Fiath <faith@valinux.com> + * + */ + +#ifndef _APPLEDRISTR_H_ +#define _APPLEDRISTR_H_ + +#include "appledri.h" + +#define APPLEDRINAME "Apple-DRI" + +#define APPLE_DRI_MAJOR_VERSION 1 /* current version numbers */ +#define APPLE_DRI_MINOR_VERSION 0 +#define APPLE_DRI_PATCH_VERSION 0 + +typedef struct _AppleDRIQueryVersion { + CARD8 reqType; /* always DRIReqCode */ + CARD8 driReqType; /* always X_DRIQueryVersion */ + CARD16 length B16; +} xAppleDRIQueryVersionReq; +#define sz_xAppleDRIQueryVersionReq 4 + +typedef struct { + BYTE type; /* X_Reply */ + BOOL pad1; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD16 majorVersion B16; /* major version of DRI protocol */ + CARD16 minorVersion B16; /* minor version of DRI protocol */ + CARD32 patchVersion B32; /* patch version of DRI protocol */ + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; +} xAppleDRIQueryVersionReply; +#define sz_xAppleDRIQueryVersionReply 32 + +typedef struct _AppleDRIQueryDirectRenderingCapable { + CARD8 reqType; /* always DRIReqCode */ + CARD8 driReqType; /* X_DRIQueryDirectRenderingCapable */ + CARD16 length B16; + CARD32 screen B32; +} xAppleDRIQueryDirectRenderingCapableReq; +#define sz_xAppleDRIQueryDirectRenderingCapableReq 8 + +typedef struct { + BYTE type; /* X_Reply */ + BOOL pad1; + CARD16 sequenceNumber B16; + CARD32 length B32; + BOOL isCapable; + BOOL pad2; + BOOL pad3; + BOOL pad4; + CARD32 pad5 B32; + CARD32 pad6 B32; + CARD32 pad7 B32; + CARD32 pad8 B32; + CARD32 pad9 B32; +} xAppleDRIQueryDirectRenderingCapableReply; +#define sz_xAppleDRIQueryDirectRenderingCapableReply 32 + +typedef struct _AppleDRIAuthConnection { + CARD8 reqType; /* always DRIReqCode */ + CARD8 driReqType; /* always X_DRICloseConnection */ + CARD16 length B16; + CARD32 screen B32; + CARD32 magic B32; +} xAppleDRIAuthConnectionReq; +#define sz_xAppleDRIAuthConnectionReq 12 + +typedef struct { + BYTE type; + BOOL pad1; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD32 authenticated B32; + CARD32 pad2 B32; + CARD32 pad3 B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; +} xAppleDRIAuthConnectionReply; +#define zx_xAppleDRIAuthConnectionReply 32 + +typedef struct _AppleDRICreateSurface { + CARD8 reqType; /* always DRIReqCode */ + CARD8 driReqType; /* always X_DRICreateSurface */ + CARD16 length B16; + CARD32 screen B32; + CARD32 drawable B32; + CARD32 client_id B32; +} xAppleDRICreateSurfaceReq; +#define sz_xAppleDRICreateSurfaceReq 16 + +typedef struct { + BYTE type; /* X_Reply */ + BOOL pad1; + CARD16 sequenceNumber B16; + CARD32 length B32; + CARD32 key_0 B32; + CARD32 key_1 B32; + CARD32 uid B32; + CARD32 pad4 B32; + CARD32 pad5 B32; + CARD32 pad6 B32; +} xAppleDRICreateSurfaceReply; +#define sz_xAppleDRICreateSurfaceReply 32 + +typedef struct _AppleDRIDestroySurface { + CARD8 reqType; /* always DRIReqCode */ + CARD8 driReqType; /* always X_DRIDestroySurface */ + CARD16 length B16; + CARD32 screen B32; + CARD32 drawable B32; +} xAppleDRIDestroySurfaceReq; +#define sz_xAppleDRIDestroySurfaceReq 12 + +typedef struct _AppleDRINotify { + BYTE type; /* always eventBase + event type */ + BYTE kind; + CARD16 sequenceNumber B16; + Time time B32; /* time of change */ + CARD16 pad1 B16; + CARD32 arg B32; + CARD32 pad3 B32; +} xAppleDRINotifyEvent; +#define sz_xAppleDRINotifyEvent 20 + +#ifdef _APPLEDRI_SERVER_ + +void AppleDRISendEvent ( + int /* type */, + unsigned int /* mask */, + int /* which */, + int /* arg */ +); + +#endif /* _APPLEDRI_SERVER_ */ +#endif /* _APPLEDRISTR_H_ */ diff --git a/nx-X11/lib/GL/apple/build-dispatch b/nx-X11/lib/GL/apple/build-dispatch new file mode 100755 index 000000000..862e10c0d --- /dev/null +++ b/nx-X11/lib/GL/apple/build-dispatch @@ -0,0 +1,101 @@ +#!/bin/sh +exec rep "$0" "$@" +!# + +;; build-dispatch + +;; $Id: build-dispatch,v 1.2 2004/04/23 18:43:09 eich Exp $ +;; $XFree86: $ + +;; Copyright (c) 2002 Apple Computer, Inc. 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, 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 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 THE ABOVE LISTED COPYRIGHT +;; HOLDER(S) 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. + +;; Except as contained in this notice, the name(s) of the above +;; copyright holders shall not be used in advertising or otherwise to +;; promote the sale, use or other dealings in this Software without +;; prior written authorization. + +;; This lisp script is used to build the C dispatch table from the +;; .defs file. It currently uses my (jsh's) rep interpreter. The +;; created file is checked into cvs, so it only needs to be run when +;; the .defs file is touched + +(structure () + + (open rep + rep.regexp) + + (defmacro @ args `(format standard-output ,@args)) + + (define stubs '()) + + (define (strip-args s) + (mapcar (lambda (x) + (and (string-match "[ \t\n*]+([a-zA-Z0-9_]+)$" x) + (expand-last-match "\\1"))) + (string-split "," s))) + + (@ "/* dri_dispatch.h -- built automatically, DO NOT EDIT\n $%s$\n $%s$ */\n\n" "Id" "XFree86: ") + + (condition-case nil + (while t + (let* ((form (read standard-input)) + (args (unless (string= (nth 3 form) "void") + (strip-args (nth 3 form)))) + (internal (>= (nth 2 form) 0)) + (alias (nth 4 form)) + (prefix (if (eq (nth 0 form) 'void) + "_VOID \(" + (format nil " \(%s, " (nth 0 form))))) + (when (or internal (not alias)) + (@ "DEFUN_%s%s%s,\n (%s),\n (%s)\)\n\n" + (if internal "LOCAL" "EXTERN") + prefix + (nth 1 form) + (if (string= (nth 3 form) "void") + (if internal "void *rend" "") + (if internal (format nil "void *rend, %s" (nth 3 form)) (nth 3 form))) + (mapconcat identity args ", "))) + (when alias + (@ "DEFUN_ALIAS%s%s, %s,\n (%s),\n (%s)\)\n\n" + prefix (nth 1 form) alias (nth 3 form) + (mapconcat identity args ", "))) + (when internal + (setq stubs (cons form stubs))))) + + (end-of-stream)) + + (setq stubs (nreverse stubs)) + + (@ "#define INDIRECT_DISPATCH_INIT(d,p) \\\n") + (@ "do { \\\n") + + (setq stubs (sort stubs (lambda (a b) + (< (nth 2 a) (nth 2 b))))) + + (let loop ((rest stubs)) + (when rest + (let ((form (car rest))) + (@ " (d)[%s] = (void *) &p ## %s; \\\n" (nth 2 form) (nth 1 form))) + (loop (cdr rest)))) + + (@ "} while (0)\n")) diff --git a/nx-X11/lib/GL/apple/dri_dispatch.c b/nx-X11/lib/GL/apple/dri_dispatch.c new file mode 100644 index 000000000..8e5c4ddfd --- /dev/null +++ b/nx-X11/lib/GL/apple/dri_dispatch.c @@ -0,0 +1,153 @@ +/* dri_dispatch.c + $Id: dri_dispatch.c,v 1.5 2005/07/03 07:00:55 daniels Exp $ + + Copyright (c) 2002 Apple Computer, Inc. All rights reserved. + Copyright (c) Torrey T. Lyons. 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, 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 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 THE ABOVE LISTED COPYRIGHT + HOLDER(S) 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. + + Except as contained in this notice, the name(s) of the above + copyright holders shall not be used in advertising or otherwise to + promote the sale, use or other dealings in this Software without + prior written authorization. */ +/* $XFree86: xc/lib/GL/apple/dri_dispatch.c,v 1.4 2004/04/21 04:59:40 torrey Exp $ */ + +#include <OpenGL/OpenGL.h> +#include <OpenGL/CGLContext.h> + +/* We use Apple's GL headers, but as of Panther its glext.h + did not define the following. */ +#ifndef GL_ARB_vertex_buffer_object +#include <stddef.h> +typedef ptrdiff_t GLintptrARB; +typedef ptrdiff_t GLsizeiptrARB; +#endif + +#define GLAPIENTRYP * +#include "glapi.h" +#include "glapitable.h" +#include "glxclient.h" + +#include <Xlibint.h> +#include <stdio.h> + +#ifdef __GNUC__ +# define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__) +#else +# define GCC_VERSION 0 +#endif + +#if GCC_VERSION < 3000 +# define __builtin_expect(a, b) a +#endif + +static int indirect_noop (void) +{ + return 0; +} + +/* Macro used for gl functions that exist in OpenGL.framework. We'll + use the existing stub for the initial dispatch, but need this + function to handle indirect contexts. */ +#define DEFUN_LOCAL_1(ret, return, gn, proto, args) \ +static ret indirect__ ## gn proto \ +{ \ + struct _glapi_table *disp; \ + \ + disp = _glapi_Dispatch; \ + if (__builtin_expect (disp == NULL, 0)) \ + disp = _glapi_get_dispatch (); \ + \ + return (*disp->gn) args; \ +} + +/* Macro used for gl functions that don't exist in OpenGL.framework. + We drop them on the floor in direct rendering mode, but pass them + over the wire normally for indirect contexts. */ +#define DEFUN_EXTERN_1(ret, return, gn, proto, args) \ +ret gl ## gn proto \ +{ \ + __GLXcontext *gc; \ + struct _glapi_table *disp; \ + \ + gc = __glXGetCurrentContext (); \ + if (!gc->isDirect) { \ + disp = _glapi_Dispatch; \ + if (__builtin_expect (disp == NULL, 0)) \ + disp = _glapi_get_dispatch (); \ + \ + return (*disp->gn) args; \ + } else { \ + int a = 0; return (ret) a; \ + } \ +} + +/* Macro for functions that already exist, but with a different name. */ +#define DEFUN_ALIAS_1(ret, return, gn, on, proto, args) \ +ret gl ## gn proto \ +{ \ + return gl ## on args; \ +} + +#define DEFUN_LOCAL(r, gn, p, a) \ + DEFUN_LOCAL_1 (r, return, gn, p, a) +#define DEFUN_LOCAL_VOID(gn, p, a) \ + DEFUN_LOCAL_1 (void, , gn, p, a) + +#define DEFUN_EXTERN(r, gn, p, a) \ + DEFUN_EXTERN_1 (r, return, gn, p, a) +#define DEFUN_EXTERN_VOID(gn, p, a) \ + DEFUN_EXTERN_1 (void, , gn, p, a) + +#define DEFUN_ALIAS(r, gn, on, p, a) \ + DEFUN_ALIAS_1 (r, return, gn, on, p, a) +#define DEFUN_ALIAS_VOID(gn, on, p, a) \ + DEFUN_ALIAS_1 (void, , gn, on, p, a) + +#include "dri_dispatch.h" + +__private_extern__ const CGLContextObj +XAppleDRIGetIndirectContext (void) +{ + static CGLContextObj ctx; + void **t; + int i; + + if (ctx != NULL) + return ctx; + + /* initialize gl */ + CGLSetOption (kCGLGOResetLibrary, 0); + + /* Create an empty "context" for dispatching purposes. Add some slop + in case the dispatch table grows in future updates. */ + ctx = Xcalloc (1, sizeof (struct _CGLContextObject) + 1024); + + /* fill it with no-op vectors */ + t = (void **) &ctx->disp; + for (i = 0; i < (int) (sizeof (ctx->disp) / sizeof (t[0])); i++) + t[i] = &indirect_noop; + + /* then install the functions we actually support */ + INDIRECT_DISPATCH_INIT (((void **) (&ctx->disp)), indirect__); + + return ctx; +} diff --git a/nx-X11/lib/GL/apple/dri_dispatch.defs b/nx-X11/lib/GL/apple/dri_dispatch.defs new file mode 100644 index 000000000..7d268e929 --- /dev/null +++ b/nx-X11/lib/GL/apple/dri_dispatch.defs @@ -0,0 +1,856 @@ +;; -*- lisp -*- + +;; dri_dispatch.defs + +;; $Id: dri_dispatch.defs,v 1.5 2004/08/18 23:12:49 kem Exp $ +;; $XFree86: xc/lib/GL/apple/dri_dispatch.defs,v 1.6 2004/04/21 04:59:40 torrey Exp $ + +;; Copyright (c) 2002 Apple Computer, Inc. All rights reserved. +;; Copyright (c) 2003-2004 Torrey T. Lyons. 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, 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 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 THE ABOVE LISTED COPYRIGHT +;; HOLDER(S) 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. + +;; Except as contained in this notice, the name(s) of the above +;; copyright holders shall not be used in advertising or otherwise to +;; promote the sale, use or other dealings in this Software without +;; prior written authorization. + +;; This file maps the Mesa GL api that X uses to the Apple CGL entry +;; points. It's used to automatically generate the CGL dispatch table +;; that's installed when an indirect context is current + +;; The format is (RETURN-TYPE MESA-NAME CGL-INDEX "ARGS" [ALIAS]) + +;; For the script to work, ARGS must be either the string "void" or a +;; comma separated list of parameters. Each parameter name _must_ be +;; the last non-whitespace token in the field (i.e. inline function +;; declarations won't work) + +;; CGL-INDEX is an index into the function vector table defined in +;; <OpenGL/gliDispatch.h>. The names of the entries in this table +;; aren't guaranteed to remain the same, but the table is guaranteed to +;; be binary-compatible in future revisions, so we use indices. + +;; If CGL-INDEX is -1, it denotes that OpenGL.framework doesn't +;; implement that function. We'll generate our own stub and make +;; it work in indirect mode (unless it has an alias). + +;; ALIAS is the name of the function that should be used to define an +;; external entry point for the function (because it doesn't exist in +;; OpenGL.framework) + +;; The ordering matches the Mesa api table, but that's not important + +;; This table has some dependencies on the version of Mac OS X. +;; Currently the script used to process this table does not handle +;; these dependencies appropriately, so they must be added by hand. +;; They are indicated by MAC_OS_X_VERSION in the comments below. + +(void NewList 177 "GLuint list, GLenum mode") +(void EndList 75 "void") +(void CallList 8 "GLuint list") +(void CallLists 9 "GLsizei n, GLenum type, const GLvoid * lists") +(void DeleteLists 58 "GLuint list, GLsizei range") +(GLuint GenLists 97 "GLsizei range") +(void ListBase 156 "GLuint base") +(void Begin 4 "GLenum mode") +(void Bitmap 6 "GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap") +(void Color3b 17 "GLbyte red, GLbyte green, GLbyte blue") +(void Color3bv 18 "const GLbyte * v") +(void Color3d 19 "GLdouble red, GLdouble green, GLdouble blue") +(void Color3dv 20 "const GLdouble * v") +(void Color3f 21 "GLfloat red, GLfloat green, GLfloat blue") +(void Color3fv 22 "const GLfloat * v") +(void Color3i 23 "GLint red, GLint green, GLint blue") +(void Color3iv 24 "const GLint * v") +(void Color3s 25 "GLshort red, GLshort green, GLshort blue") +(void Color3sv 26 "const GLshort * v") +(void Color3ub 27 "GLubyte red, GLubyte green, GLubyte blue") +(void Color3ubv 28 "const GLubyte * v") +(void Color3ui 29 "GLuint red, GLuint green, GLuint blue") +(void Color3uiv 30 "const GLuint * v") +(void Color3us 31 "GLushort red, GLushort green, GLushort blue") +(void Color3usv 32 "const GLushort * v") +(void Color4b 33 "GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha") +(void Color4bv 34 "const GLbyte * v") +(void Color4d 35 "GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha") +(void Color4dv 36 "const GLdouble * v") +(void Color4f 37 "GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha") +(void Color4fv 38 "const GLfloat * v") +(void Color4i 39 "GLint red, GLint green, GLint blue, GLint alpha") +(void Color4iv 40 "const GLint * v") +(void Color4s 41 "GLshort red, GLshort green, GLshort blue, GLshort alpha") +(void Color4sv 42 "const GLshort * v") +(void Color4ub 43 "GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha") +(void Color4ubv 44 "const GLubyte * v") +(void Color4ui 45 "GLuint red, GLuint green, GLuint blue, GLuint alpha") +(void Color4uiv 46 "const GLuint * v") +(void Color4us 47 "GLushort red, GLushort green, GLushort blue, GLushort alpha") +(void Color4usv 48 "const GLushort * v") +(void EdgeFlag 69 "GLboolean flag") +(void EdgeFlagv 71 "const GLboolean * flag") +(void End 74 "void") +(void Indexd 131 "GLdouble c") +(void Indexdv 132 "const GLdouble * c") +(void Indexf 133 "GLfloat c") +(void Indexfv 134 "const GLfloat * c") +(void Indexi 135 "GLint c") +(void Indexiv 136 "const GLint * c") +(void Indexs 137 "GLshort c") +(void Indexsv 138 "const GLshort * c") +(void Normal3b 178 "GLbyte nx, GLbyte ny, GLbyte nz") +(void Normal3bv 179 "const GLbyte * v") +(void Normal3d 180 "GLdouble nx, GLdouble ny, GLdouble nz") +(void Normal3dv 181 "const GLdouble * v") +(void Normal3f 182 "GLfloat nx, GLfloat ny, GLfloat nz") +(void Normal3fv 183 "const GLfloat * v") +(void Normal3i 184 "GLint nx, GLint ny, GLint nz") +(void Normal3iv 185 "const GLint * v") +(void Normal3s 186 "GLshort nx, GLshort ny, GLshort nz") +(void Normal3sv 187 "const GLshort * v") +(void RasterPos2d 212 "GLdouble x, GLdouble y") +(void RasterPos2dv 213 "const GLdouble * v") +(void RasterPos2f 214 "GLfloat x, GLfloat y") +(void RasterPos2fv 215 "const GLfloat * v") +(void RasterPos2i 216 "GLint x, GLint y") +(void RasterPos2iv 217 "const GLint * v") +(void RasterPos2s 218 "GLshort x, GLshort y") +(void RasterPos2sv 219 "const GLshort * v") +(void RasterPos3d 220 "GLdouble x, GLdouble y, GLdouble z") +(void RasterPos3dv 221 "const GLdouble * v") +(void RasterPos3f 222 "GLfloat x, GLfloat y, GLfloat z") +(void RasterPos3fv 223 "const GLfloat * v") +(void RasterPos3i 224 "GLint x, GLint y, GLint z") +(void RasterPos3iv 225 "const GLint * v") +(void RasterPos3s 226 "GLshort x, GLshort y, GLshort z") +(void RasterPos3sv 227 "const GLshort * v") +(void RasterPos4d 228 "GLdouble x, GLdouble y, GLdouble z, GLdouble w") +(void RasterPos4dv 229 "const GLdouble * v") +(void RasterPos4f 230 "GLfloat x, GLfloat y, GLfloat z, GLfloat w") +(void RasterPos4fv 231 "const GLfloat * v") +(void RasterPos4i 232 "GLint x, GLint y, GLint z, GLint w") +(void RasterPos4iv 233 "const GLint * v") +(void RasterPos4s 234 "GLshort x, GLshort y, GLshort z, GLshort w") +(void RasterPos4sv 235 "const GLshort * v") +(void Rectd 238 "GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2") +(void Rectdv 239 "const GLdouble * v1, const GLdouble * v2") +(void Rectf 240 "GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2") +(void Rectfv 241 "const GLfloat * v1, const GLfloat * v2") +(void Recti 242 "GLint x1, GLint y1, GLint x2, GLint y2") +(void Rectiv 243 "const GLint * v1, const GLint * v2") +(void Rects 244 "GLshort x1, GLshort y1, GLshort x2, GLshort y2") +(void Rectsv 245 "const GLshort * v1, const GLshort * v2") +(void TexCoord1d 257 "GLdouble s") +(void TexCoord1dv 258 "const GLdouble * v") +(void TexCoord1f 259 "GLfloat s") +(void TexCoord1fv 260 "const GLfloat * v") +(void TexCoord1i 261 "GLint s") +(void TexCoord1iv 262 "const GLint * v") +(void TexCoord1s 263 "GLshort s") +(void TexCoord1sv 264 "const GLshort * v") +(void TexCoord2d 265 "GLdouble s, GLdouble t") +(void TexCoord2dv 266 "const GLdouble * v") +(void TexCoord2f 267 "GLfloat s, GLfloat t") +(void TexCoord2fv 268 "const GLfloat * v") +(void TexCoord2i 269 "GLint s, GLint t") +(void TexCoord2iv 270 "const GLint * v") +(void TexCoord2s 271 "GLshort s, GLshort t") +(void TexCoord2sv 272 "const GLshort * v") +(void TexCoord3d 273 "GLdouble s, GLdouble t, GLdouble r") +(void TexCoord3dv 274 "const GLdouble * v") +(void TexCoord3f 275 "GLfloat s, GLfloat t, GLfloat r") +(void TexCoord3fv 276 "const GLfloat * v") +(void TexCoord3i 277 "GLint s, GLint t, GLint r") +(void TexCoord3iv 278 "const GLint * v") +(void TexCoord3s 279 "GLshort s, GLshort t, GLshort r") +(void TexCoord3sv 280 "const GLshort * v") +(void TexCoord4d 281 "GLdouble s, GLdouble t, GLdouble r, GLdouble q") +(void TexCoord4dv 282 "const GLdouble * v") +(void TexCoord4f 283 "GLfloat s, GLfloat t, GLfloat r, GLfloat q") +(void TexCoord4fv 284 "const GLfloat * v") +(void TexCoord4i 285 "GLint s, GLint t, GLint r, GLint q") +(void TexCoord4iv 286 "const GLint * v") +(void TexCoord4s 287 "GLshort s, GLshort t, GLshort r, GLshort q") +(void TexCoord4sv 288 "const GLshort * v") +(void Vertex2d 310 "GLdouble x, GLdouble y") +(void Vertex2dv 311 "const GLdouble * v") +(void Vertex2f 312 "GLfloat x, GLfloat y") +(void Vertex2fv 313 "const GLfloat * v") +(void Vertex2i 314 "GLint x, GLint y") +(void Vertex2iv 315 "const GLint * v") +(void Vertex2s 316 "GLshort x, GLshort y") +(void Vertex2sv 317 "const GLshort * v") +(void Vertex3d 318 "GLdouble x, GLdouble y, GLdouble z") +(void Vertex3dv 319 "const GLdouble * v") +(void Vertex3f 320 "GLfloat x, GLfloat y, GLfloat z") +(void Vertex3fv 321 "const GLfloat * v") +(void Vertex3i 322 "GLint x, GLint y, GLint z") +(void Vertex3iv 323 "const GLint * v") +(void Vertex3s 324 "GLshort x, GLshort y, GLshort z") +(void Vertex3sv 325 "const GLshort * v") +(void Vertex4d 326 "GLdouble x, GLdouble y, GLdouble z, GLdouble w") +(void Vertex4dv 327 "const GLdouble * v") +(void Vertex4f 328 "GLfloat x, GLfloat y, GLfloat z, GLfloat w") +(void Vertex4fv 329 "const GLfloat * v") +(void Vertex4i 330 "GLint x, GLint y, GLint z, GLint w") +(void Vertex4iv 331 "const GLint * v") +(void Vertex4s 332 "GLshort x, GLshort y, GLshort z, GLshort w") +(void Vertex4sv 333 "const GLshort * v") +(void ClipPlane 16 "GLenum plane, const GLdouble * equation") +(void ColorMaterial 50 "GLenum face, GLenum mode") +(void CullFace 57 "GLenum mode") +(void Fogf 91 "GLenum pname, GLfloat param") +(void Fogfv 92 "GLenum pname, const GLfloat * params") +(void Fogi 93 "GLenum pname, GLint param") +(void Fogiv 94 "GLenum pname, const GLint * params") +(void FrontFace 95 "GLenum mode") +(void Hint 128 "GLenum target, GLenum mode") +(void Lightf 150 "GLenum light, GLenum pname, GLfloat param") +(void Lightfv 151 "GLenum light, GLenum pname, const GLfloat * params") +(void Lighti 152 "GLenum light, GLenum pname, GLint param") +(void Lightiv 153 "GLenum light, GLenum pname, const GLint * params") +(void LightModelf 146 "GLenum pname, GLfloat param") +(void LightModelfv 147 "GLenum pname, const GLfloat * params") +(void LightModeli 148 "GLenum pname, GLint param") +(void LightModeliv 149 "GLenum pname, const GLint * params") +(void LineStipple 154 "GLint factor, GLushort pattern") +(void LineWidth 155 "GLfloat width") +(void Materialf 170 "GLenum face, GLenum pname, GLfloat param") +(void Materialfv 171 "GLenum face, GLenum pname, const GLfloat * params") +(void Materiali 172 "GLenum face, GLenum pname, GLint param") +(void Materialiv 173 "GLenum face, GLenum pname, const GLint * params") +(void PointSize 199 "GLfloat size") +(void PolygonMode 200 "GLenum face, GLenum mode") +(void PolygonStipple 202 "const GLubyte * mask") +(void Scissor 251 "GLint x, GLint y, GLsizei width, GLsizei height") +(void ShadeModel 253 "GLenum mode") +(void TexParameterf 302 "GLenum target, GLenum pname, GLfloat param") +(void TexParameterfv 303 "GLenum target, GLenum pname, const GLfloat * params") +(void TexParameteri 304 "GLenum target, GLenum pname, GLint param") +(void TexParameteriv 305 "GLenum target, GLenum pname, const GLint * params") +(void TexImage1D 300 "GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels") +(void TexImage2D 301 "GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels") +(void TexEnvf 290 "GLenum target, GLenum pname, GLfloat param") +(void TexEnvfv 291 "GLenum target, GLenum pname, const GLfloat * params") +(void TexEnvi 292 "GLenum target, GLenum pname, GLint param") +(void TexEnviv 293 "GLenum target, GLenum pname, const GLint * params") +(void TexGend 294 "GLenum coord, GLenum pname, GLdouble param") +(void TexGendv 295 "GLenum coord, GLenum pname, const GLdouble * params") +(void TexGenf 296 "GLenum coord, GLenum pname, GLfloat param") +(void TexGenfv 297 "GLenum coord, GLenum pname, const GLfloat * params") +(void TexGeni 298 "GLenum coord, GLenum pname, GLint param") +(void TexGeniv 299 "GLenum coord, GLenum pname, const GLint * params") +(void FeedbackBuffer 88 "GLsizei size, GLenum type, GLfloat * buffer") +(void SelectBuffer 252 "GLsizei size, GLuint * buffer") +(GLint RenderMode 246 "GLenum mode") +(void InitNames 141 "void") +(void LoadName 160 "GLuint name") +(void PassThrough 190 "GLfloat token") +(void PopName 206 "void") +(void PushName 211 "GLuint name") +(void DrawBuffer 66 "GLenum mode") +(void Clear 10 "GLbitfield mask") +(void ClearAccum 11 "GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha") +(void ClearIndex 14 "GLfloat c") +(void ClearColor 12 "GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha") +(void ClearStencil 15 "GLint s") +(void ClearDepth 13 "GLclampd depth") +(void StencilMask 255 "GLuint mask") +(void ColorMask 49 "GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha") +(void DepthMask 61 "GLboolean flag") +(void IndexMask 129 "GLuint mask") +(void Accum 0 "GLenum op, GLfloat value") +(void Disable 63 "GLenum cap") +(void Enable 72 "GLenum cap") +(void Finish 89 "void") +(void Flush 90 "void") +(void PopAttrib 203 "void") +(void PushAttrib 208 "GLbitfield mask") +(void Map1d 162 "GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points") +(void Map1f 163 "GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points") +(void Map2d 164 "GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points") +(void Map2f 165 "GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points") +(void MapGrid1d 166 "GLint un, GLdouble u1, GLdouble u2") +(void MapGrid1f 167 "GLint un, GLfloat u1, GLfloat u2") +(void MapGrid2d 168 "GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2") +(void MapGrid2f 169 "GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2") +(void EvalCoord1d 76 "GLdouble u") +(void EvalCoord1dv 77 "const GLdouble * u") +(void EvalCoord1f 78 "GLfloat u") +(void EvalCoord1fv 79 "const GLfloat * u") +(void EvalCoord2d 80 "GLdouble u, GLdouble v") +(void EvalCoord2dv 81 "const GLdouble * u") +(void EvalCoord2f 82 "GLfloat u, GLfloat v") +(void EvalCoord2fv 83 "const GLfloat * u") +(void EvalMesh1 84 "GLenum mode, GLint i1, GLint i2") +(void EvalPoint1 86 "GLint i") +(void EvalMesh2 85 "GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2") +(void EvalPoint2 87 "GLint i, GLint j") +(void AlphaFunc 1 "GLenum func, GLclampf ref") +(void BlendFunc 7 "GLenum sfactor, GLenum dfactor") +(void LogicOp 161 "GLenum opcode") +(void StencilFunc 254 "GLenum func, GLint ref, GLuint mask") +(void StencilOp 256 "GLenum fail, GLenum zfail, GLenum zpass") +(void DepthFunc 60 "GLenum func") +(void PixelZoom 198 "GLfloat xfactor, GLfloat yfactor") +(void PixelTransferf 196 "GLenum pname, GLfloat param") +(void PixelTransferi 197 "GLenum pname, GLint param") +(void PixelStoref 194 "GLenum pname, GLfloat param") +(void PixelStorei 195 "GLenum pname, GLint param") +(void PixelMapfv 191 "GLenum map, GLint mapsize, const GLfloat * values") +(void PixelMapuiv 192 "GLenum map, GLint mapsize, const GLuint * values") +(void PixelMapusv 193 "GLenum map, GLint mapsize, const GLushort * values") +(void ReadBuffer 236 "GLenum mode") +(void CopyPixels 52 "GLint x, GLint y, GLsizei width, GLsizei height, GLenum type") +(void ReadPixels 237 "GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels") +(void DrawPixels 68 "GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels") +(void GetBooleanv 99 "GLenum pname, GLboolean * params") +(void GetClipPlane 100 "GLenum plane, GLdouble * equation") +(void GetDoublev 101 "GLenum pname, GLdouble * params") +(GLenum GetError 102 "void") +(void GetFloatv 103 "GLenum pname, GLfloat * params") +(void GetIntegerv 104 "GLenum pname, GLint * params") +(void GetLightfv 105 "GLenum light, GLenum pname, GLfloat * params") +(void GetLightiv 106 "GLenum light, GLenum pname, GLint * params") +(void GetMapdv 107 "GLenum target, GLenum query, GLdouble * v") +(void GetMapfv 108 "GLenum target, GLenum query, GLfloat * v") +(void GetMapiv 109 "GLenum target, GLenum query, GLint * v") +(void GetMaterialfv 110 "GLenum face, GLenum pname, GLfloat * params") +(void GetMaterialiv 111 "GLenum face, GLenum pname, GLint * params") +(void GetPixelMapfv 112 "GLenum map, GLfloat * values") +(void GetPixelMapuiv 113 "GLenum map, GLuint * values") +(void GetPixelMapusv 114 "GLenum map, GLushort * values") +(void GetPolygonStipple 116 "GLubyte * mask") +(|const GLubyte *| GetString 117 "GLenum name") +(void GetTexEnvfv 118 "GLenum target, GLenum pname, GLfloat * params") +(void GetTexEnviv 119 "GLenum target, GLenum pname, GLint * params") +(void GetTexGendv 120 "GLenum coord, GLenum pname, GLdouble * params") +(void GetTexGenfv 121 "GLenum coord, GLenum pname, GLfloat * params") +(void GetTexGeniv 122 "GLenum coord, GLenum pname, GLint * params") +(void GetTexImage 123 "GLenum target, GLint level, GLenum format, GLenum type, GLvoid * pixels") +(void GetTexParameterfv 126 "GLenum target, GLenum pname, GLfloat * params") +(void GetTexParameteriv 127 "GLenum target, GLenum pname, GLint * params") +(void GetTexLevelParameterfv 124 "GLenum target, GLint level, GLenum pname, GLfloat * params") +(void GetTexLevelParameteriv 125 "GLenum target, GLint level, GLenum pname, GLint * params") +(GLboolean IsEnabled 143 "GLenum cap") +(GLboolean IsList 144 "GLuint list") +(void DepthRange 62 "GLclampd zNear, GLclampd zFar") +(void Frustum 96 "GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar") +(void LoadIdentity 157 "void") +(void LoadMatrixf 159 "const GLfloat * m") +(void LoadMatrixd 158 "const GLdouble * m") +(void MatrixMode 174 "GLenum mode") +(void MultMatrixf 176 "const GLfloat * m") +(void MultMatrixd 175 "const GLdouble * m") +(void Ortho 189 "GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar") +(void PopMatrix 205 "void") +(void PushMatrix 210 "void") +(void Rotated 247 "GLdouble angle, GLdouble x, GLdouble y, GLdouble z") +(void Rotatef 248 "GLfloat angle, GLfloat x, GLfloat y, GLfloat z") +(void Scaled 249 "GLdouble x, GLdouble y, GLdouble z") +(void Scalef 250 "GLfloat x, GLfloat y, GLfloat z") +(void Translated 308 "GLdouble x, GLdouble y, GLdouble z") +(void Translatef 309 "GLfloat x, GLfloat y, GLfloat z") +(void Viewport 335 "GLint x, GLint y, GLsizei width, GLsizei height") +(void ArrayElement 3 "GLint i") +(void BindTexture 5 "GLenum target, GLenum texture") +(void ColorPointer 51 "GLint size, GLenum type, GLsizei stride, const GLvoid * pointer") +(void DisableClientState 64 "GLenum array") +(void DrawArrays 65 "GLenum mode, GLint first, GLsizei count") +(void DrawElements 67 "GLenum mode, GLsizei count, GLenum type, const GLvoid * indices") +(void EdgeFlagPointer 70 "GLsizei stride, const GLvoid * pointer") +(void EnableClientState 73 "GLenum array") +(void IndexPointer 130 "GLenum type, GLsizei stride, const GLvoid * pointer") +(void Indexub 139 "GLubyte c") +(void Indexubv 140 "const GLubyte * c") +(void InterleavedArrays 142 "GLenum format, GLsizei stride, const GLvoid * pointer") +(void NormalPointer 188 "GLenum type, GLsizei stride, const GLvoid * pointer") +(void PolygonOffset 201 "GLfloat factor, GLfloat units") +(void TexCoordPointer 289 "GLint size, GLenum type, GLsizei stride, const GLvoid * pointer") +(void VertexPointer 334 "GLint size, GLenum type, GLsizei stride, const GLvoid * pointer") +(GLboolean AreTexturesResident 2 "GLsizei n, const GLenum * textures, GLboolean * residences") +(void CopyTexImage1D 53 "GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border") +(void CopyTexImage2D 54 "GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border") +(void CopyTexSubImage1D 55 "GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width") +(void CopyTexSubImage2D 56 "GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height") +(void DeleteTextures 59 "GLsizei n, const GLenum * textures") +(void GenTextures 98 "GLsizei n, GLenum * textures") +(void GetPointerv 115 "GLenum pname, GLvoid * * params") +(GLboolean IsTexture 145 "GLenum texture") +(void PrioritizeTextures 207 "GLsizei n, const GLenum * textures, const GLclampf * priorities") +(void TexSubImage1D 306 "GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * pixels") +(void TexSubImage2D 307 "GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels") +(void PopClientAttrib 204 "void") +(void PushClientAttrib 209 "GLbitfield mask") +(void BlendColor 337 "GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha") +(void BlendEquation 338 "GLenum mode") +(void DrawRangeElements 405 "GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices") +(void ColorTable 406 "GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * table") +(void ColorTableParameterfv 407 "GLenum target, GLenum pname, const GLfloat * params") +(void ColorTableParameteriv 408 "GLenum target, GLenum pname, const GLint * params") +(void CopyColorTable 409 "GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width") +(void GetColorTable 410 "GLenum target, GLenum format, GLenum type, GLvoid * table") +(void GetColorTableParameterfv 411 "GLenum target, GLenum pname, GLfloat * params") +(void GetColorTableParameteriv 412 "GLenum target, GLenum pname, GLint * params") +(void ColorSubTable 413 "GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data") +(void CopyColorSubTable 414 "GLenum target, GLsizei start, GLint x, GLint y, GLsizei width") +(void ConvolutionFilter1D 415 "GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * image") +(void ConvolutionFilter2D 416 "GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * image") +(void ConvolutionParameterf 417 "GLenum target, GLenum pname, GLfloat params") +(void ConvolutionParameterfv 418 "GLenum target, GLenum pname, const GLfloat * params") +(void ConvolutionParameteri 419 "GLenum target, GLenum pname, GLint params") +(void ConvolutionParameteriv 420 "GLenum target, GLenum pname, const GLint * params") +(void CopyConvolutionFilter1D 421 "GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width") +(void CopyConvolutionFilter2D 422 "GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height") +(void GetConvolutionFilter 423 "GLenum target, GLenum format, GLenum type, GLvoid * image") +(void GetConvolutionParameterfv 424 "GLenum target, GLenum pname, GLfloat * params") +(void GetConvolutionParameteriv 425 "GLenum target, GLenum pname, GLint * params") +(void GetSeparableFilter 426 "GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span") +(void SeparableFilter2D 427 "GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column") +(void GetHistogram 428 "GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values") +(void GetHistogramParameterfv 429 "GLenum target, GLenum pname, GLfloat * params") +(void GetHistogramParameteriv 430 "GLenum target, GLenum pname, GLint * params") +(void GetMinmax 431 "GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values") +(void GetMinmaxParameterfv 432 "GLenum target, GLenum pname, GLfloat * params") +(void GetMinmaxParameteriv 433 "GLenum target, GLenum pname, GLint * params") +(void Histogram 434 "GLenum target, GLsizei width, GLenum internalformat, GLboolean sink") +(void Minmax 435 "GLenum target, GLenum internalformat, GLboolean sink") +(void ResetHistogram 436 "GLenum target") +(void ResetMinmax 437 "GLenum target") +(void TexImage3D 438 "GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels") +(void TexSubImage3D 439 "GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels") +(void CopyTexSubImage3D 440 "GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height") +(void ActiveTextureARB 342 "GLenum texture") +(void ClientActiveTextureARB 341 "GLenum texture") +(void MultiTexCoord1dARB 343 "GLenum target, GLdouble s") +(void MultiTexCoord1dvARB 344 "GLenum target, const GLdouble * v") +(void MultiTexCoord1fARB 345 "GLenum target, GLfloat s") +(void MultiTexCoord1fvARB 346 "GLenum target, const GLfloat * v") +(void MultiTexCoord1iARB 347 "GLenum target, GLint s") +(void MultiTexCoord1ivARB 348 "GLenum target, const GLint * v") +(void MultiTexCoord1sARB 349 "GLenum target, GLshort s") +(void MultiTexCoord1svARB 350 "GLenum target, const GLshort * v") +(void MultiTexCoord2dARB 351 "GLenum target, GLdouble s, GLdouble t") +(void MultiTexCoord2dvARB 352 "GLenum target, const GLdouble * v") +(void MultiTexCoord2fARB 353 "GLenum target, GLfloat s, GLfloat t") +(void MultiTexCoord2fvARB 354 "GLenum target, const GLfloat * v") +(void MultiTexCoord2iARB 355 "GLenum target, GLint s, GLint t") +(void MultiTexCoord2ivARB 356 "GLenum target, const GLint * v") +(void MultiTexCoord2sARB 357 "GLenum target, GLshort s, GLshort t") +(void MultiTexCoord2svARB 358 "GLenum target, const GLshort * v") +(void MultiTexCoord3dARB 359 "GLenum target, GLdouble s, GLdouble t, GLdouble r") +(void MultiTexCoord3dvARB 360 "GLenum target, const GLdouble * v") +(void MultiTexCoord3fARB 361 "GLenum target, GLfloat s, GLfloat t, GLfloat r") +(void MultiTexCoord3fvARB 362 "GLenum target, const GLfloat * v") +(void MultiTexCoord3iARB 363 "GLenum target, GLint s, GLint t, GLint r") +(void MultiTexCoord3ivARB 364 "GLenum target, const GLint * v") +(void MultiTexCoord3sARB 365 "GLenum target, GLshort s, GLshort t, GLshort r") +(void MultiTexCoord3svARB 366 "GLenum target, const GLshort * v") +(void MultiTexCoord4dARB 367 "GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q") +(void MultiTexCoord4dvARB 368 "GLenum target, const GLdouble * v") +(void MultiTexCoord4fARB 369 "GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q") +(void MultiTexCoord4fvARB 370 "GLenum target, const GLfloat * v") +(void MultiTexCoord4iARB 371 "GLenum target, GLint s, GLint t, GLint r, GLint q") +(void MultiTexCoord4ivARB 372 "GLenum target, const GLint * v") +(void MultiTexCoord4sARB 373 "GLenum target, GLshort s, GLshort t, GLshort r, GLshort q") +(void MultiTexCoord4svARB 374 "GLenum target, const GLshort * v") +(void LoadTransposeMatrixfARB 376 "const GLfloat * m") +(void LoadTransposeMatrixdARB 375 "const GLdouble * m") +(void MultTransposeMatrixfARB 378 "const GLfloat * m") +(void MultTransposeMatrixdARB 377 "const GLdouble * m") +(void SampleCoverageARB 459 "GLclampf value, GLboolean invert") +(void __unused413 -1 "void") +(void PolygonOffsetEXT -1 "GLfloat factor, GLfloat bias" PolygonOffset) +(void GetTexFilterFuncSGIS -1 "GLenum target, GLenum filter, GLfloat * weights") +(void TexFilterFuncSGIS -1 "GLenum target, GLenum filter, GLsizei n, const GLfloat * weights") +(void GetHistogramEXT -1 "GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values" GetHistogram) +(void GetHistogramParameterfvEXT -1 "GLenum target, GLenum pname, GLfloat * params" GetHistogramParameterfv) +(void GetHistogramParameterivEXT -1 "GLenum target, GLenum pname, GLint * params" GetHistogramParameteriv) +(void GetMinmaxEXT -1 "GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values" GetMinmax) +(void GetMinmaxParameterfvEXT -1 "GLenum target, GLenum pname, GLfloat * params" GetMinmaxParameterfv) +(void GetMinmaxParameterivEXT -1 "GLenum target, GLenum pname, GLint * params" GetMinmaxParameteriv) +(void GetConvolutionFilterEXT -1 "GLenum target, GLenum format, GLenum type, GLvoid * image" GetConvolutionFilter) +(void GetConvolutionParameterfvEXT -1 "GLenum target, GLenum pname, GLfloat * params" GetConvolutionParameterfv) +(void GetConvolutionParameterivEXT -1 "GLenum target, GLenum pname, GLint * params" GetConvolutionParameteriv) +(void GetSeparableFilterEXT -1 "GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span" GetSeparableFilter) +(void GetColorTableSGI -1 "GLenum target, GLenum format, GLenum type, GLvoid * table" GetColorTable) +(void GetColorTableParameterfvSGI -1 "GLenum target, GLenum pname, GLfloat * params" GetColorTableParameterfv) +(void GetColorTableParameterivSGI -1 "GLenum target, GLenum pname, GLint * params" GetColorTableParameteriv) +(void PixelTexGenSGIX -1 "GLenum mode") +(void PixelTexGenParameteriSGIS -1 "GLenum pname, GLint param") +(void PixelTexGenParameterivSGIS -1 "GLenum pname, const GLint * params") +(void PixelTexGenParameterfSGIS -1 "GLenum pname, GLfloat param") +(void PixelTexGenParameterfvSGIS -1 "GLenum pname, const GLfloat * params") +(void GetPixelTexGenParameterivSGIS -1 "GLenum pname, GLint * params") +(void GetPixelTexGenParameterfvSGIS -1 "GLenum pname, GLfloat * params") +(void TexImage4DSGIS -1 "GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid * pixels") +(void TexSubImage4DSGIS -1 "GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const GLvoid * pixels") +(GLboolean AreTexturesResidentEXT -1 "GLsizei n, const GLenum * textures, GLboolean * residences" AreTexturesResident) +(void GenTexturesEXT -1 "GLsizei n, GLenum * textures" GenTextures) +(GLboolean IsTextureEXT -1 "GLenum texture") +(void DetailTexFuncSGIS -1 "GLenum target, GLsizei n, const GLfloat * points") +(void GetDetailTexFuncSGIS -1 "GLenum target, GLfloat * points") +(void SharpenTexFuncSGIS -1 "GLenum target, GLsizei n, const GLfloat * points") +(void GetSharpenTexFuncSGIS -1 "GLenum target, GLfloat * points") +(void SampleMaskSGIS -1 "GLclampf value, GLboolean invert") +(void SamplePatternSGIS -1 "GLenum pattern") +(void ColorPointerEXT -1 "GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer") +(void EdgeFlagPointerEXT -1 "GLsizei stride, GLsizei count, const GLboolean * pointer") +(void IndexPointerEXT -1 "GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer") +(void NormalPointerEXT -1 "GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer") +(void TexCoordPointerEXT -1 "GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer") +(void VertexPointerEXT -1 "GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer") +(void SpriteParameterfSGIX -1 "GLenum pname, GLfloat param") +(void SpriteParameterfvSGIX -1 "GLenum pname, const GLfloat * params") +(void SpriteParameteriSGIX -1 "GLenum pname, GLint param") +(void SpriteParameterivSGIX -1 "GLenum pname, const GLint * params") +(void PointParameterfEXT 540 "GLenum pname, GLfloat param" PointParameterf) +(void PointParameterfvEXT 541 "GLenum pname, const GLfloat * params" PointParameterfv) +(GLint GetInstrumentsSGIX -1 "void") +(void InstrumentsBufferSGIX -1 "GLsizei size, GLint * buffer") +(GLint PollInstrumentsSGIX -1 "GLint * marker_p") +(void ReadInstrumentsSGIX -1 "GLint marker") +(void StartInstrumentsSGIX -1 "void") +(void StopInstrumentsSGIX -1 "GLint marker") +(void FrameZoomSGIX -1 "GLint factor") +(void TagSampleBufferSGIX -1 "void") +(void ReferencePlaneSGIX -1 "const GLdouble * equation") +(void FlushRasterSGIX -1 "void") +(void GetListParameterfvSGIX -1 "GLuint list, GLenum pname, GLfloat * params") +(void GetListParameterivSGIX -1 "GLuint list, GLenum pname, GLint * params") +(void ListParameterfSGIX -1 "GLuint list, GLenum pname, GLfloat param") +(void ListParameterfvSGIX -1 "GLuint list, GLenum pname, const GLfloat * params") +(void ListParameteriSGIX -1 "GLuint list, GLenum pname, GLint param") +(void ListParameterivSGIX -1 "GLuint list, GLenum pname, const GLint * params") +(void FragmentColorMaterialSGIX -1 "GLenum face, GLenum mode") +(void FragmentLightfSGIX -1 "GLenum light, GLenum pname, GLfloat param") +(void FragmentLightfvSGIX -1 "GLenum light, GLenum pname, const GLfloat * params") +(void FragmentLightiSGIX -1 "GLenum light, GLenum pname, GLint param") +(void FragmentLightivSGIX -1 "GLenum light, GLenum pname, const GLint * params") +(void FragmentLightModelfSGIX -1 "GLenum pname, GLfloat param") +(void FragmentLightModelfvSGIX -1 "GLenum pname, const GLfloat * params") +(void FragmentLightModeliSGIX -1 "GLenum pname, GLint param") +(void FragmentLightModelivSGIX -1 "GLenum pname, const GLint * params") +(void FragmentMaterialfSGIX -1 "GLenum face, GLenum pname, GLfloat param") +(void FragmentMaterialfvSGIX -1 "GLenum face, GLenum pname, const GLfloat * params") +(void FragmentMaterialiSGIX -1 "GLenum face, GLenum pname, GLint param") +(void FragmentMaterialivSGIX -1 "GLenum face, GLenum pname, const GLint * params") +(void GetFragmentLightfvSGIX -1 "GLenum light, GLenum pname, GLfloat * params") +(void GetFragmentLightivSGIX -1 "GLenum light, GLenum pname, GLint * params") +(void GetFragmentMaterialfvSGIX -1 "GLenum face, GLenum pname, GLfloat * params") +(void GetFragmentMaterialivSGIX -1 "GLenum face, GLenum pname, GLint * params") +(void LightEnviSGIX -1 "GLenum pname, GLint param") +(void VertexWeightfEXT -1 "GLfloat weight") +(void VertexWeightfvEXT -1 "const GLfloat * weight") +(void VertexWeightPointerEXT -1 "GLsizei size, GLenum type, GLsizei stride, const GLvoid * pointer") +(void FlushVertexArrayRangeNV -1 "void") +(void VertexArrayRangeNV 403 "GLsizei length, const GLvoid * pointer" VertexArrayRangeAPPLE) +(void CombinerParameterfvNV 441 "GLenum pname, const GLfloat * params") +(void CombinerParameterfNV 442 "GLenum pname, GLfloat param") +(void CombinerParameterivNV 443 "GLenum pname, const GLint * params") +(void CombinerParameteriNV 444 "GLenum pname, GLint param") +(void CombinerInputNV 445 "GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage") +(void CombinerOutputNV 446 "GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum") +(void FinalCombinerInputNV 447 "GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage") +(void GetCombinerInputParameterfvNV 448 "GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat * params") +(void GetCombinerInputParameterivNV 449 "GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint * params") +(void GetCombinerOutputParameterfvNV 450 "GLenum stage, GLenum portion, GLenum pname, GLfloat * params") +(void GetCombinerOutputParameterivNV 451 "GLenum stage, GLenum portion, GLenum pname, GLint * params") +(void GetFinalCombinerInputParameterfvNV 452 "GLenum variable, GLenum pname, GLfloat * params") +(void GetFinalCombinerInputParameterivNV 453 "GLenum variable, GLenum pname, GLint * params") +(void ResizeBuffersMESA -1 "void") +(void WindowPos2dMESA 569 "GLdouble x, GLdouble y" WindowPos2d) +(void WindowPos2dvMESA 570 "const GLdouble * v" WindowPos2dv) +(void WindowPos2fMESA 571 "GLfloat x, GLfloat y" WindowPos2f) +(void WindowPos2fvMESA 572 "const GLfloat * v" WindowPos2fv) +(void WindowPos2iMESA 573 "GLint x, GLint y" WindowPos2i) +(void WindowPos2ivMESA 574 "const GLint * v" WindowPos2iv) +(void WindowPos2sMESA 575 "GLshort x, GLshort y" WindowPos2s) +(void WindowPos2svMESA 576 "const GLshort * v" WindowPos2sv) +(void WindowPos3dMESA 577 "GLdouble x, GLdouble y, GLdouble z" WindowPos3d) +(void WindowPos3dvMESA 578 "const GLdouble * v" WindowPos3dv) +(void WindowPos3fMESA 579 "GLfloat x, GLfloat y, GLfloat z" WindowPos3f) +(void WindowPos3fvMESA 580 "const GLfloat * v" WindowPos3fv) +(void WindowPos3iMESA 581 "GLint x, GLint y, GLint z" WindowPos3i) +(void WindowPos3ivMESA 582 "const GLint * v" WindowPos3iv) +(void WindowPos3sMESA 583 "GLshort x, GLshort y, GLshort z" WindowPos3s) +(void WindowPos3svMESA 584 "const GLshort * v" WindowPos3sv) +(void WindowPos4dMESA -1 "GLdouble x, GLdouble y, GLdouble z, GLdouble w") +(void WindowPos4dvMESA -1 "const GLdouble * v") +(void WindowPos4fMESA -1 "GLfloat x, GLfloat y, GLfloat z, GLfloat w") +(void WindowPos4fvMESA -1 "const GLfloat * v") +(void WindowPos4iMESA -1 "GLint x, GLint y, GLint z, GLint w") +(void WindowPos4ivMESA -1 "const GLint * v") +(void WindowPos4sMESA -1 "GLshort x, GLshort y, GLshort z, GLshort w") +(void WindowPos4svMESA -1 "const GLshort * v") +(void BlendFuncSeparateEXT 336 "GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha") +(void IndexMaterialEXT -1 "GLenum face, GLenum mode") +(void IndexFuncEXT -1 "GLenum func, GLclampf ref") +(void LockArraysEXT 339 "GLint first, GLsizei count") +(void UnlockArraysEXT 340 "void") +(void CullParameterdvEXT -1 "GLenum pname, GLdouble * params") +(void CullParameterfvEXT -1 "GLenum pname, GLfloat * params") +(void HintPGI -1 "GLenum target, GLint mode") +(void FogCoordfEXT 544 "GLfloat coord") +(void FogCoordfvEXT 545 "const GLfloat * coord") +(void FogCoorddEXT 546 "GLdouble coord") +(void FogCoorddvEXT 547 "const GLdouble * coord") +(void FogCoordPointerEXT 548 "GLenum type, GLsizei stride, const GLvoid * pointer") +;; OpenGL.framework defines these, but doesn't have dispatch slots for them +;; (void GetColorTableEXT -1 "GLenum target, GLenum format, GLenum type, GLvoid * data" GetColorTable) +;; (void GetColorTableParameterivEXT -1 "GLenum target, GLenum pname, GLint * params" GetColorTableParameteriv) +;; (void GetColorTableParameterfvEXT -1 "GLenum target, GLenum pname, GLfloat * params" GetColorTableParameterfv) +(void TbufferMask3DFX -1 "GLuint mask") +(void CompressedTexImage3DARB 379 "GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid * data") +(void CompressedTexImage2DARB 380 "GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data") +(void CompressedTexImage1DARB 381 "GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid * data") +(void CompressedTexSubImage3DARB 382 "GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid * data") +(void CompressedTexSubImage2DARB 383 "GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data") +(void CompressedTexSubImage1DARB 384 "GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid * data") +(void GetCompressedTexImageARB 385 "GLenum target, GLint level, void * img") +(void SecondaryColor3bEXT 386 "GLbyte red, GLbyte green, GLbyte blue") +(void SecondaryColor3bvEXT 387 "const GLbyte * v") +(void SecondaryColor3dEXT 388 "GLdouble red, GLdouble green, GLdouble blue") +(void SecondaryColor3dvEXT 389 "const GLdouble * v") +(void SecondaryColor3fEXT 390 "GLfloat red, GLfloat green, GLfloat blue") +(void SecondaryColor3fvEXT 391 "const GLfloat * v") +(void SecondaryColor3iEXT 392 "GLint red, GLint green, GLint blue") +(void SecondaryColor3ivEXT 393 "const GLint * v") +(void SecondaryColor3sEXT 394 "GLshort red, GLshort green, GLshort blue") +(void SecondaryColor3svEXT 395 "const GLshort * v") +(void SecondaryColor3ubEXT 396 "GLubyte red, GLubyte green, GLubyte blue") +(void SecondaryColor3ubvEXT 397 "const GLubyte * v") +(void SecondaryColor3uiEXT 398 "GLuint red, GLuint green, GLuint blue") +(void SecondaryColor3uivEXT 399 "const GLuint * v") +(void SecondaryColor3usEXT 400 "GLushort red, GLushort green, GLushort blue") +(void SecondaryColor3usvEXT 401 "const GLushort * v") +(void SecondaryColorPointerEXT 402 "GLint size, GLenum type, GLsizei stride, const GLvoid * pointer") +(GLboolean AreProgramsResidentNV -1 "GLsizei n, const GLuint * ids, GLboolean * residences") +(void BindProgramNV 471 "GLenum target, GLuint id" BindProgramARB) +(void DeleteProgramsNV 472 "GLsizei n, const GLuint * ids" DeleteProgramsARB) +(void ExecuteProgramNV -1 "GLenum target, GLuint id, const GLfloat * params") +(void GenProgramsNV 473 "GLsizei n, GLuint * ids" GenProgramsARB) +(void GetProgramParameterdvNV -1 "GLenum target, GLuint index, GLenum pname, GLdouble * params") +(void GetProgramParameterfvNV -1 "GLenum target, GLuint index, GLenum pname, GLfloat * params") +(void GetProgramivNV -1 "GLuint id, GLenum pname, GLint * params") +(void GetProgramStringNV -1 "GLuint id, GLenum pname, GLubyte * program") +(void GetTrackMatrixivNV -1 "GLenum target, GLuint address, GLenum pname, GLint * params") +(void GetVertexAttribdvNV 514 "GLuint index, GLenum pname, GLdouble * params" GetVertexAttribdvARB) +(void GetVertexAttribfvNV 515 "GLuint index, GLenum pname, GLfloat * params" GetVertexAttribfvARB) +(void GetVertexAttribivNV 516 "GLuint index, GLenum pname, GLint * params" GetVertexAttribivNV) +(void GetVertexAttribPointervNV 517 "GLuint index, GLenum pname, GLvoid ** pointer" GetVertexAttribPointervARB) +(GLboolean IsProgramNV 474 "GLuint id" IsProgramARB) +(void LoadProgramNV -1 "GLenum target, GLuint id, GLsizei len, const GLubyte * program") +(void ProgramParameter4dNV -1 "GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w") +(void ProgramParameter4dvNV -1 "GLenum target, GLuint index, const GLdouble * params") +(void ProgramParameter4fNV -1 "GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w") +(void ProgramParameter4fvNV -1 "GLenum target, GLuint index, const GLfloat * params") +(void ProgramParameters4dvNV -1 "GLenum target, GLuint index, GLuint num, const GLdouble * params") +(void ProgramParameters4fvNV -1 "GLenum target, GLuint index, GLuint num, const GLfloat * params") +(void RequestResidentProgramsNV -1 "GLsizei n, const GLuint * ids") +(void TrackMatrixNV -1 "GLenum target, GLuint address, GLenum matrix, GLenum transform") +(void VertexAttribPointerNV -1 "GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid * pointer") +(void VertexAttrib1dNV 477 "GLuint index, GLdouble x" VertexAttrib1dARB) +(void VertexAttrib1dvNV 490 "GLuint index, const GLdouble * v" VertexAttrib1dvARB) +(void VertexAttrib1fNV 476 "GLuint index, GLfloat x" VertexAttrib1fARB) +(void VertexAttrib1fvNV 489 "GLuint index, const GLfloat * v" VertexAttrib1fvARB) +(void VertexAttrib1sNV 475 "GLuint index, GLshort x" VertexAttrib1sARB) +(void VertexAttrib1svNV 488 "GLuint index, const GLshort * v" VertexAttrib1svARB) +(void VertexAttrib2dNV 480 "GLuint index, GLdouble x, GLdouble y" VertexAttrib2dARB) +(void VertexAttrib2dvNV 493 "GLuint index, const GLdouble * v" VertexAttrib2dvARB) +(void VertexAttrib2fNV 479 "GLuint index, GLfloat x, GLfloat y" VertexAttrib2fARB) +(void VertexAttrib2fvNV 492 "GLuint index, const GLfloat * v" VertexAttrib2fvARB) +(void VertexAttrib2sNV 478 "GLuint index, GLshort x, GLshort y" VertexAttrib2sARB) +(void VertexAttrib2svNV 491 "GLuint index, const GLshort * v" VertexAttrib2svARB) +(void VertexAttrib3dNV 483 "GLuint index, GLdouble x, GLdouble y, GLdouble z" VertexAttrib3dARB) +(void VertexAttrib3dvNV 496 "GLuint index, const GLdouble * v" VertexAttrib3dvARB) +(void VertexAttrib3fNV 482 "GLuint index, GLfloat x, GLfloat y, GLfloat z" VertexAttrib3fARB) +(void VertexAttrib3fvNV 495 "GLuint index, const GLfloat * v" VertexAttrib3fvARB) +(void VertexAttrib3sNV 481 "GLuint index, GLshort x, GLshort y, GLshort z" VertexAttrib3sARB) +(void VertexAttrib3svNV 494 "GLuint index, const GLshort * v" VertexAttrib3svARB) +(void VertexAttrib4dNV 486 "GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w" VertexAttrib4dARB) +(void VertexAttrib4dvNV 504 "GLuint index, const GLdouble * v" VertexAttrib4dvARB) +(void VertexAttrib4fNV 485 "GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w" VertexAttrib4fARB) +(void VertexAttrib4fvNV 503 "GLuint index, const GLfloat * v" VertexAttrib4fvARB) +(void VertexAttrib4sNV 484 "GLuint index, GLshort x, GLshort y, GLshort z, GLshort w" VertexAttrib4sARB) +(void VertexAttrib4svNV 498 "GLuint index, const GLshort * v" VertexAttrib4svARB) +(void VertexAttrib4ubNV 487 "GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w" VertexAttrib4NubARB) +(void VertexAttrib4ubvNV 500 "GLuint index, const GLubyte * v" VertexAttrib4ubvARB) +(void VertexAttribs1dvNV -1 "GLuint index, GLsizei n, const GLdouble * v") +(void VertexAttribs1fvNV -1 "GLuint index, GLsizei n, const GLfloat * v") +(void VertexAttribs1svNV -1 "GLuint index, GLsizei n, const GLshort * v") +(void VertexAttribs2dvNV -1 "GLuint index, GLsizei n, const GLdouble * v") +(void VertexAttribs2fvNV -1 "GLuint index, GLsizei n, const GLfloat * v") +(void VertexAttribs2svNV -1 "GLuint index, GLsizei n, const GLshort * v") +(void VertexAttribs3dvNV -1 "GLuint index, GLsizei n, const GLdouble * v") +(void VertexAttribs3fvNV -1 "GLuint index, GLsizei n, const GLfloat * v") +(void VertexAttribs3svNV -1 "GLuint index, GLsizei n, const GLshort * v") +(void VertexAttribs4dvNV -1 "GLuint index, GLsizei n, const GLdouble * v") +(void VertexAttribs4fvNV -1 "GLuint index, GLsizei n, const GLfloat * v") +(void VertexAttribs4svNV -1 "GLuint index, GLsizei n, const GLshort * v") +(void VertexAttribs4ubvNV -1 "GLuint index, GLsizei n, const GLubyte * v") +(void PointParameteriNV 542 "GLenum pname, GLint params") +(void PointParameterivNV 543 "GLenum pname, const GLint * params") +(void MultiDrawArraysEXT 567 "GLenum mode, GLint * first, GLsizei * count, GLsizei primcount") +(void MultiDrawElementsEXT 568 "GLenum mode, const GLsizei * count, GLenum type, const GLvoid ** indices, GLsizei primcount") +(void ActiveStencilFaceEXT 585 "GLenum face") +(void DeleteFencesNV -1 "GLsizei n, const GLuint * fences") +(void GenFencesNV -1 "GLsizei n, GLuint * fences") +(GLboolean IsFenceNV -1 "GLuint fence") +(GLboolean TestFenceNV -1 "GLuint fence") +(void GetFenceivNV -1 "GLuint fence, GLenum pname, GLint * params") +(void FinishFenceNV -1 "GLuint fence") +(void SetFenceNV -1 "GLuint fence, GLenum condition") +(void VertexAttrib4bvARB 497 "GLuint index, const GLbyte * v") +(void VertexAttrib4ivARB 499 "GLuint index, const GLint * v") +(void VertexAttrib4ubvARB 500 "GLuint index, const GLubyte * v") +(void VertexAttrib4usvARB 501 "GLuint index, const GLushort * v") +(void VertexAttrib4uivARB 502 "GLuint index, const GLuint * v") +(void VertexAttrib4NbvARB 505 "GLuint index, const GLbyte * v") +(void VertexAttrib4NsvARB 498 "GLuint index, const GLshort * v") +(void VertexAttrib4NivARB 507 "GLuint index, const GLint * v") +(void VertexAttrib4NusvARB 509 "GLuint index, const GLushort * v") +(void VertexAttrib4NuivARB 510 "GLuint index, const GLuint * v") +(void VertexAttribPointerARB 511 "GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * pointer") +(void EnableVertexAttribArrayARB 512 "GLuint index") +(void DisableVertexAttribArrayARB 513 "GLuint index") +(void ProgramStringARB 530 "GLenum target, GLenum format, GLsizei len, const GLvoid * string") +(void ProgramEnvParameter4dARB 518 "GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w") +(void ProgramEnvParameter4dvARB 519 "GLenum target, GLuint index, const GLdouble * params") +(void ProgramEnvParameter4fARB 520 "GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w") +(void ProgramEnvParameter4fvARB 521 "GLenum target, GLuint index, const GLfloat * params") +(void ProgramLocalParameter4dARB 522 "GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w") +(void ProgramLocalParameter4dvARB 523 "GLenum target, GLuint index, const GLdouble * params") +(void ProgramLocalParameter4fARB 524 "GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w") +(void ProgramLocalParameter4fvARB 525 "GLenum target, GLuint index, const GLfloat * params") +(void GetProgramEnvParameterdvARB 526 "GLenum target, GLuint index, GLdouble * params") +(void GetProgramEnvParameterfvARB 527 "GLenum target, GLuint index, GLfloat * params") +(void GetProgramLocalParameterdvARB 528 "GLenum target, GLuint index, GLdouble * params") +(void GetProgramLocalParameterfvARB 529 "GLenum target, GLuint index, GLfloat * params") +(void GetProgramivARB 532 "GLenum target, GLenum pname, GLint * params") +(void GetProgramStringARB 531 "GLenum target, GLenum pname, GLvoid * string") +(void ProgramNamedParameter4fNV -1 "GLuint id, GLsizei len, const GLubyte * name, GLfloat x, GLfloat y, GLfloat z, GLfloat w") +(void ProgramNamedParameter4dNV -1 "GLuint id, GLsizei len, const GLubyte * name, GLdouble x, GLdouble y, GLdouble z, GLdouble w") +(void ProgramNamedParameter4fvNV -1 "GLuint id, GLsizei len, const GLubyte * name, const GLfloat * v") +(void ProgramNamedParameter4dvNV -1 "GLuint id, GLsizei len, const GLubyte * name, const GLdouble * v") +(void GetProgramNamedParameterfvNV -1 "GLuint id, GLsizei len, const GLubyte * name, GLfloat * params") +(void GetProgramNamedParameterdvNV -1 "GLuint id, GLsizei len, const GLubyte * name, GLdouble * params") +;; On newer versions of Mac OS X, OpenGL.framework defines these but +;; doesn't have dispatch slots for them. On earlier versions, they are +;; not defined. +;; if MAC_OS_X_VERSION < 10.3.4 +;; (void BindBufferARB -1 "GLenum target, GLuint buffer") +;; (void BufferDataARB -1 "GLenum target, GLsizeiptrARB size, const GLvoid * data, GLenum usage") +;; (void BufferSubDataARB -1 "GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid * data") +;; (void DeleteBuffersARB -1 "GLsizei n, const GLuint * buffer") +;; (void GenBuffersARB -1 "GLsizei n, GLuint * buffer") +;; (void GetBufferParameterivARB -1 "GLenum target, GLenum pname, GLint * params") +;; (void GetBufferPointervARB -1 "GLenum target, GLenum pname, GLvoid ** params") +;; (void GetBufferSubDataARB -1 "GLenum target, GLintptrARB offset, GLsizeiptrARB size, void * data") +;; (GLboolean IsBufferARB -1 "GLuint buffer") +;; (void* MapBufferARB -1 "GLenum target, GLenum access") +;; (GLboolean UnmapBufferARB -1 "GLenum target") +;; (void DepthBoundsEXT -1 "GLclampd zmin, GLclampd zmax") +;; endif +;; if MAC_OS_X_VERSION < 10.3.0 +;; (void GenQueriesARB -1 "GLsizei n, GLuint * ids") +;; (void DeleteQueriesARB -1 "GLsizei n, const GLuint * ids") +;; (GLboolean IsQueryARB -1 "GLuint id") +;; (void BeginQueryARB -1 "GLenum target, GLuint id") +;; (void EndQueryARB -1 "GLenum target") +;; (void GetQueryivARB -1 "GLenum target, GLenum pname, GLint * params") +;; (void GetQueryObjectivARB -1 "GLuint id, GLenum pname, GLint * params") +;; (void GetQueryObjectuivARB -1 "GLuint id, GLenum pname, GLuint * params") +;; endif +(void MultiModeDrawArraysIBM -1 "const GLenum * mode, const GLint * first, const GLsizei * count, GLsizei primcount, GLint modestride") +(void MultiModeDrawElementsIBM -1 "const GLenum * mode, const GLsizei * count, GLenum type, const GLvoid * const * indices, GLsizei primcount, GLint modestride") +;; if MAC_OS_X_VERSION < 10.3.4 +;; (void BlendEquationSeparateEXT 458 "GLenum modeRGB, GLenum modeA" BlendEquationSeparateATI) +;; else +(void BlendEquationSeparateEXT 458 "GLenum modeRGB, GLenum modeA") +;; endif + +;; Entry points that exist in standard XFree86 libGL, but aren't in the +;; Mesa dispatch table, and aren't in OpenGL.framework + +(void ArrayElementEXT -1 "GLint i" ArrayElement) +(void BindTextureEXT -1 "GLenum target, GLuint texture" BindTexture) +(void BlendFuncSeparateINGR -1 "GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha" BlendFuncSeparateEXT) +(void ColorTableParameterfvSGI -1 "GLenum target, GLenum pname, const GLfloat * params" ColorTableParameterfv) +(void ColorTableParameterivSGI -1 "GLenum target, GLenum pname, const GLint * params" ColorTableParameteriv) +(void ColorTableSGI -1 "GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * table" ColorTable) +(void ConvolutionFilter1DEXT -1 "GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * image" ConvolutionFilter1D) +(void ConvolutionFilter2DEXT -1 "GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * image" ConvolutionFilter2D) +(void ConvolutionParameterfEXT -1 "GLenum target, GLenum pname, GLfloat params" ConvolutionParameterf) +(void ConvolutionParameterfvEXT -1 "GLenum target, GLenum pname, const GLfloat * params" ConvolutionParameterfv) +(void ConvolutionParameteriEXT -1 "GLenum target, GLenum pname, GLint params" ConvolutionParameteri) +(void ConvolutionParameterivEXT -1 "GLenum target, GLenum pname, const GLint * params" ConvolutionParameteriv) +(void CopyColorSubTableEXT -1 "GLenum target, GLsizei start, GLint x, GLint y, GLsizei width" CopyColorSubTable) +(void CopyColorTableSGI -1 "GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width" CopyColorTable) +(void CopyConvolutionFilter1DEXT -1 "GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width" CopyConvolutionFilter1D) +(void CopyConvolutionFilter2DEXT -1 "GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height" CopyConvolutionFilter2D) +(void CopyTexImage1DEXT -1 "GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border" CopyTexImage1D) +(void CopyTexImage2DEXT -1 "GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border" CopyTexImage2D) +(void CopyTexSubImage1DEXT -1 "GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width" CopyTexSubImage1D) +(void CopyTexSubImage2DEXT -1 "GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height" CopyTexSubImage2D) +(void CopyTexSubImage3DEXT -1 "GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height" CopyTexSubImage3D) +(void DeleteTexturesEXT -1 "GLsizei n, const GLuint *textures" DeleteTextures) +(void DrawArraysEXT -1 "GLenum mode, GLint first, GLsizei count" DrawArrays) +(void GetPointervEXT -1 "GLenum pname, GLvoid * * params" GetPointerv) +(void HistogramEXT -1 "GLenum target, GLsizei width, GLenum internalformat, GLboolean sink" Histogram) +(void MinmaxEXT -1 "GLenum target, GLenum internalformat, GLboolean sink" Minmax) +(void PointParameterfSGIS -1 "GLenum pname, GLfloat param" PointParameterf) +(void PointParameterfvSGIS -1 "GLenum pname, const GLfloat * params" PointParameterfv) +(void PointParameteri -1 "GLenum pname, GLint params" PointParameteriNV) +(void PointParameteriv -1 "GLenum pname, const GLint * params" PointParameterivNV) +(void PrioritizeTexturesEXT -1 "GLsizei n, const GLenum * textures, const GLclampf * priorities" PrioritizeTextures) +(void ResetHistogramEXT -1 "GLenum target" ResetHistogram) +(void ResetMinmaxEXT -1 "GLenum target" ResetMinmax) +(void SampleMaskEXT -1 "GLclampf value, GLboolean invert" SampleMaskSGIS) +(void SamplePatternEXT -1 "GLenum pattern" SamplePatternSGIS) +(void SeparableFilter2DEXT -1 "GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column" SeparableFilter2D) +(void TexImage3DEXT -1 "GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels" TexImage3D) +(void TexSubImage1DEXT -1 "GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * pixels" TexSubImage1D) +(void TexSubImage2DEXT -1 "GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels" TexSubImage2D) +(void TexSubImage3DEXT -1 "GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels" TexSubImage3D) +;; if MAC_OS_X_VERSION < 10.3.4 +;; (void BindBuffer -1 "GLenum target, GLuint buffer" BindBufferARB) +;; (void BufferData -1 "GLenum target, GLsizeiptrARB size, const GLvoid * data, GLenum usage" BufferDataARB) +;; (void BufferSubData -1 "GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid * data" BufferSubDataARB) +;; (void DeleteBuffers -1 "GLsizei n, const GLuint * buffer" DeleteBuffersARB) +;; (void GenBuffers -1 "GLsizei n, GLuint * buffer" GenBuffersARB) +;; (void GetBufferParameteriv -1 "GLenum target, GLenum pname, GLint * params" GetBufferParameterivARB) +;; (void GetBufferPointerv -1 "GLenum target, GLenum pname, GLvoid ** params" GetBufferPointervARB) +;; (void GetBufferSubData -1 "GLenum target, GLintptrARB offset, GLsizeiptrARB size, void * data" GetBufferSubDataARB) +;; (GLboolean IsBuffer -1 "GLuint buffer" IsBufferARB) +;; (void* MapBuffer -1 "GLenum target, GLenum access" MapBufferARB) +;; (GLboolean UnmapBuffer -1 "GLenum target" UnmapBufferARB) +;; endif +;; if MAC_OS_X_VERSION < 10.3.0 +;; (void GenQueries -1 "GLsizei n, GLuint * ids" GenQueriesARB) +;; (void DeleteQueries -1 "GLsizei n, const GLuint * ids" DeleteQueriesARB) +;; (GLboolean IsQuery -1 "GLuint id" IsQueryARB) +;; (void BeginQuery -1 "GLenum target, GLuint id" BeginQueryARB) +;; (void EndQuery -1 "GLenum target" EndQueryARB) +;; (void GetQueryiv -1 "GLenum target, GLenum pname, GLint * params" GetQueryivARB) +;; (void GetQueryObjectiv -1 "GLuint id, GLenum pname, GLint * params" GetQueryObjectivARB) +;; (void GetQueryObjectuiv -1 "GLuint id, GLenum pname, GLuint * params" GetQueryObjectuivARB) +;; endif diff --git a/nx-X11/lib/GL/apple/dri_dispatch.h b/nx-X11/lib/GL/apple/dri_dispatch.h new file mode 100644 index 000000000..854bbc302 --- /dev/null +++ b/nx-X11/lib/GL/apple/dri_dispatch.h @@ -0,0 +1,3861 @@ +/* dri_dispatch.h -- built automatically, DO NOT EDIT + $Id: dri_dispatch.h,v 1.6 2005/07/03 07:00:55 daniels Exp $ + $XFree86: $ */ +/* + Actually, this file has been edited to add necessary + dependencies on the version of Mac OS X. Someday the + automatic script should handle this. + */ + +DEFUN_LOCAL_VOID (NewList, + (void *rend, GLuint list, GLenum mode), + (list, mode)) + +DEFUN_LOCAL_VOID (EndList, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (CallList, + (void *rend, GLuint list), + (list)) + +DEFUN_LOCAL_VOID (CallLists, + (void *rend, GLsizei n, GLenum type, const GLvoid * lists), + (n, type, lists)) + +DEFUN_LOCAL_VOID (DeleteLists, + (void *rend, GLuint list, GLsizei range), + (list, range)) + +DEFUN_LOCAL (GLuint, GenLists, + (void *rend, GLsizei range), + (range)) + +DEFUN_LOCAL_VOID (ListBase, + (void *rend, GLuint base), + (base)) + +DEFUN_LOCAL_VOID (Begin, + (void *rend, GLenum mode), + (mode)) + +DEFUN_LOCAL_VOID (Bitmap, + (void *rend, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap), + (width, height, xorig, yorig, xmove, ymove, bitmap)) + +DEFUN_LOCAL_VOID (Color3b, + (void *rend, GLbyte red, GLbyte green, GLbyte blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (Color3bv, + (void *rend, const GLbyte * v), + (v)) + +DEFUN_LOCAL_VOID (Color3d, + (void *rend, GLdouble red, GLdouble green, GLdouble blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (Color3dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (Color3f, + (void *rend, GLfloat red, GLfloat green, GLfloat blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (Color3fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (Color3i, + (void *rend, GLint red, GLint green, GLint blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (Color3iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (Color3s, + (void *rend, GLshort red, GLshort green, GLshort blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (Color3sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (Color3ub, + (void *rend, GLubyte red, GLubyte green, GLubyte blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (Color3ubv, + (void *rend, const GLubyte * v), + (v)) + +DEFUN_LOCAL_VOID (Color3ui, + (void *rend, GLuint red, GLuint green, GLuint blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (Color3uiv, + (void *rend, const GLuint * v), + (v)) + +DEFUN_LOCAL_VOID (Color3us, + (void *rend, GLushort red, GLushort green, GLushort blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (Color3usv, + (void *rend, const GLushort * v), + (v)) + +DEFUN_LOCAL_VOID (Color4b, + (void *rend, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (Color4bv, + (void *rend, const GLbyte * v), + (v)) + +DEFUN_LOCAL_VOID (Color4d, + (void *rend, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (Color4dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (Color4f, + (void *rend, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (Color4fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (Color4i, + (void *rend, GLint red, GLint green, GLint blue, GLint alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (Color4iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (Color4s, + (void *rend, GLshort red, GLshort green, GLshort blue, GLshort alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (Color4sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (Color4ub, + (void *rend, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (Color4ubv, + (void *rend, const GLubyte * v), + (v)) + +DEFUN_LOCAL_VOID (Color4ui, + (void *rend, GLuint red, GLuint green, GLuint blue, GLuint alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (Color4uiv, + (void *rend, const GLuint * v), + (v)) + +DEFUN_LOCAL_VOID (Color4us, + (void *rend, GLushort red, GLushort green, GLushort blue, GLushort alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (Color4usv, + (void *rend, const GLushort * v), + (v)) + +DEFUN_LOCAL_VOID (EdgeFlag, + (void *rend, GLboolean flag), + (flag)) + +DEFUN_LOCAL_VOID (EdgeFlagv, + (void *rend, const GLboolean * flag), + (flag)) + +DEFUN_LOCAL_VOID (End, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (Indexd, + (void *rend, GLdouble c), + (c)) + +DEFUN_LOCAL_VOID (Indexdv, + (void *rend, const GLdouble * c), + (c)) + +DEFUN_LOCAL_VOID (Indexf, + (void *rend, GLfloat c), + (c)) + +DEFUN_LOCAL_VOID (Indexfv, + (void *rend, const GLfloat * c), + (c)) + +DEFUN_LOCAL_VOID (Indexi, + (void *rend, GLint c), + (c)) + +DEFUN_LOCAL_VOID (Indexiv, + (void *rend, const GLint * c), + (c)) + +DEFUN_LOCAL_VOID (Indexs, + (void *rend, GLshort c), + (c)) + +DEFUN_LOCAL_VOID (Indexsv, + (void *rend, const GLshort * c), + (c)) + +DEFUN_LOCAL_VOID (Normal3b, + (void *rend, GLbyte nx, GLbyte ny, GLbyte nz), + (nx, ny, nz)) + +DEFUN_LOCAL_VOID (Normal3bv, + (void *rend, const GLbyte * v), + (v)) + +DEFUN_LOCAL_VOID (Normal3d, + (void *rend, GLdouble nx, GLdouble ny, GLdouble nz), + (nx, ny, nz)) + +DEFUN_LOCAL_VOID (Normal3dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (Normal3f, + (void *rend, GLfloat nx, GLfloat ny, GLfloat nz), + (nx, ny, nz)) + +DEFUN_LOCAL_VOID (Normal3fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (Normal3i, + (void *rend, GLint nx, GLint ny, GLint nz), + (nx, ny, nz)) + +DEFUN_LOCAL_VOID (Normal3iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (Normal3s, + (void *rend, GLshort nx, GLshort ny, GLshort nz), + (nx, ny, nz)) + +DEFUN_LOCAL_VOID (Normal3sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos2d, + (void *rend, GLdouble x, GLdouble y), + (x, y)) + +DEFUN_LOCAL_VOID (RasterPos2dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos2f, + (void *rend, GLfloat x, GLfloat y), + (x, y)) + +DEFUN_LOCAL_VOID (RasterPos2fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos2i, + (void *rend, GLint x, GLint y), + (x, y)) + +DEFUN_LOCAL_VOID (RasterPos2iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos2s, + (void *rend, GLshort x, GLshort y), + (x, y)) + +DEFUN_LOCAL_VOID (RasterPos2sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos3d, + (void *rend, GLdouble x, GLdouble y, GLdouble z), + (x, y, z)) + +DEFUN_LOCAL_VOID (RasterPos3dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos3f, + (void *rend, GLfloat x, GLfloat y, GLfloat z), + (x, y, z)) + +DEFUN_LOCAL_VOID (RasterPos3fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos3i, + (void *rend, GLint x, GLint y, GLint z), + (x, y, z)) + +DEFUN_LOCAL_VOID (RasterPos3iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos3s, + (void *rend, GLshort x, GLshort y, GLshort z), + (x, y, z)) + +DEFUN_LOCAL_VOID (RasterPos3sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos4d, + (void *rend, GLdouble x, GLdouble y, GLdouble z, GLdouble w), + (x, y, z, w)) + +DEFUN_LOCAL_VOID (RasterPos4dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos4f, + (void *rend, GLfloat x, GLfloat y, GLfloat z, GLfloat w), + (x, y, z, w)) + +DEFUN_LOCAL_VOID (RasterPos4fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos4i, + (void *rend, GLint x, GLint y, GLint z, GLint w), + (x, y, z, w)) + +DEFUN_LOCAL_VOID (RasterPos4iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (RasterPos4s, + (void *rend, GLshort x, GLshort y, GLshort z, GLshort w), + (x, y, z, w)) + +DEFUN_LOCAL_VOID (RasterPos4sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (Rectd, + (void *rend, GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2), + (x1, y1, x2, y2)) + +DEFUN_LOCAL_VOID (Rectdv, + (void *rend, const GLdouble * v1, const GLdouble * v2), + (v1, v2)) + +DEFUN_LOCAL_VOID (Rectf, + (void *rend, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2), + (x1, y1, x2, y2)) + +DEFUN_LOCAL_VOID (Rectfv, + (void *rend, const GLfloat * v1, const GLfloat * v2), + (v1, v2)) + +DEFUN_LOCAL_VOID (Recti, + (void *rend, GLint x1, GLint y1, GLint x2, GLint y2), + (x1, y1, x2, y2)) + +DEFUN_LOCAL_VOID (Rectiv, + (void *rend, const GLint * v1, const GLint * v2), + (v1, v2)) + +DEFUN_LOCAL_VOID (Rects, + (void *rend, GLshort x1, GLshort y1, GLshort x2, GLshort y2), + (x1, y1, x2, y2)) + +DEFUN_LOCAL_VOID (Rectsv, + (void *rend, const GLshort * v1, const GLshort * v2), + (v1, v2)) + +DEFUN_LOCAL_VOID (TexCoord1d, + (void *rend, GLdouble s), + (s)) + +DEFUN_LOCAL_VOID (TexCoord1dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord1f, + (void *rend, GLfloat s), + (s)) + +DEFUN_LOCAL_VOID (TexCoord1fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord1i, + (void *rend, GLint s), + (s)) + +DEFUN_LOCAL_VOID (TexCoord1iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord1s, + (void *rend, GLshort s), + (s)) + +DEFUN_LOCAL_VOID (TexCoord1sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord2d, + (void *rend, GLdouble s, GLdouble t), + (s, t)) + +DEFUN_LOCAL_VOID (TexCoord2dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord2f, + (void *rend, GLfloat s, GLfloat t), + (s, t)) + +DEFUN_LOCAL_VOID (TexCoord2fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord2i, + (void *rend, GLint s, GLint t), + (s, t)) + +DEFUN_LOCAL_VOID (TexCoord2iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord2s, + (void *rend, GLshort s, GLshort t), + (s, t)) + +DEFUN_LOCAL_VOID (TexCoord2sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord3d, + (void *rend, GLdouble s, GLdouble t, GLdouble r), + (s, t, r)) + +DEFUN_LOCAL_VOID (TexCoord3dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord3f, + (void *rend, GLfloat s, GLfloat t, GLfloat r), + (s, t, r)) + +DEFUN_LOCAL_VOID (TexCoord3fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord3i, + (void *rend, GLint s, GLint t, GLint r), + (s, t, r)) + +DEFUN_LOCAL_VOID (TexCoord3iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord3s, + (void *rend, GLshort s, GLshort t, GLshort r), + (s, t, r)) + +DEFUN_LOCAL_VOID (TexCoord3sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord4d, + (void *rend, GLdouble s, GLdouble t, GLdouble r, GLdouble q), + (s, t, r, q)) + +DEFUN_LOCAL_VOID (TexCoord4dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord4f, + (void *rend, GLfloat s, GLfloat t, GLfloat r, GLfloat q), + (s, t, r, q)) + +DEFUN_LOCAL_VOID (TexCoord4fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord4i, + (void *rend, GLint s, GLint t, GLint r, GLint q), + (s, t, r, q)) + +DEFUN_LOCAL_VOID (TexCoord4iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (TexCoord4s, + (void *rend, GLshort s, GLshort t, GLshort r, GLshort q), + (s, t, r, q)) + +DEFUN_LOCAL_VOID (TexCoord4sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex2d, + (void *rend, GLdouble x, GLdouble y), + (x, y)) + +DEFUN_LOCAL_VOID (Vertex2dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex2f, + (void *rend, GLfloat x, GLfloat y), + (x, y)) + +DEFUN_LOCAL_VOID (Vertex2fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex2i, + (void *rend, GLint x, GLint y), + (x, y)) + +DEFUN_LOCAL_VOID (Vertex2iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex2s, + (void *rend, GLshort x, GLshort y), + (x, y)) + +DEFUN_LOCAL_VOID (Vertex2sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex3d, + (void *rend, GLdouble x, GLdouble y, GLdouble z), + (x, y, z)) + +DEFUN_LOCAL_VOID (Vertex3dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex3f, + (void *rend, GLfloat x, GLfloat y, GLfloat z), + (x, y, z)) + +DEFUN_LOCAL_VOID (Vertex3fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex3i, + (void *rend, GLint x, GLint y, GLint z), + (x, y, z)) + +DEFUN_LOCAL_VOID (Vertex3iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex3s, + (void *rend, GLshort x, GLshort y, GLshort z), + (x, y, z)) + +DEFUN_LOCAL_VOID (Vertex3sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex4d, + (void *rend, GLdouble x, GLdouble y, GLdouble z, GLdouble w), + (x, y, z, w)) + +DEFUN_LOCAL_VOID (Vertex4dv, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex4f, + (void *rend, GLfloat x, GLfloat y, GLfloat z, GLfloat w), + (x, y, z, w)) + +DEFUN_LOCAL_VOID (Vertex4fv, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex4i, + (void *rend, GLint x, GLint y, GLint z, GLint w), + (x, y, z, w)) + +DEFUN_LOCAL_VOID (Vertex4iv, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (Vertex4s, + (void *rend, GLshort x, GLshort y, GLshort z, GLshort w), + (x, y, z, w)) + +DEFUN_LOCAL_VOID (Vertex4sv, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (ClipPlane, + (void *rend, GLenum plane, const GLdouble * equation), + (plane, equation)) + +DEFUN_LOCAL_VOID (ColorMaterial, + (void *rend, GLenum face, GLenum mode), + (face, mode)) + +DEFUN_LOCAL_VOID (CullFace, + (void *rend, GLenum mode), + (mode)) + +DEFUN_LOCAL_VOID (Fogf, + (void *rend, GLenum pname, GLfloat param), + (pname, param)) + +DEFUN_LOCAL_VOID (Fogfv, + (void *rend, GLenum pname, const GLfloat * params), + (pname, params)) + +DEFUN_LOCAL_VOID (Fogi, + (void *rend, GLenum pname, GLint param), + (pname, param)) + +DEFUN_LOCAL_VOID (Fogiv, + (void *rend, GLenum pname, const GLint * params), + (pname, params)) + +DEFUN_LOCAL_VOID (FrontFace, + (void *rend, GLenum mode), + (mode)) + +DEFUN_LOCAL_VOID (Hint, + (void *rend, GLenum target, GLenum mode), + (target, mode)) + +DEFUN_LOCAL_VOID (Lightf, + (void *rend, GLenum light, GLenum pname, GLfloat param), + (light, pname, param)) + +DEFUN_LOCAL_VOID (Lightfv, + (void *rend, GLenum light, GLenum pname, const GLfloat * params), + (light, pname, params)) + +DEFUN_LOCAL_VOID (Lighti, + (void *rend, GLenum light, GLenum pname, GLint param), + (light, pname, param)) + +DEFUN_LOCAL_VOID (Lightiv, + (void *rend, GLenum light, GLenum pname, const GLint * params), + (light, pname, params)) + +DEFUN_LOCAL_VOID (LightModelf, + (void *rend, GLenum pname, GLfloat param), + (pname, param)) + +DEFUN_LOCAL_VOID (LightModelfv, + (void *rend, GLenum pname, const GLfloat * params), + (pname, params)) + +DEFUN_LOCAL_VOID (LightModeli, + (void *rend, GLenum pname, GLint param), + (pname, param)) + +DEFUN_LOCAL_VOID (LightModeliv, + (void *rend, GLenum pname, const GLint * params), + (pname, params)) + +DEFUN_LOCAL_VOID (LineStipple, + (void *rend, GLint factor, GLushort pattern), + (factor, pattern)) + +DEFUN_LOCAL_VOID (LineWidth, + (void *rend, GLfloat width), + (width)) + +DEFUN_LOCAL_VOID (Materialf, + (void *rend, GLenum face, GLenum pname, GLfloat param), + (face, pname, param)) + +DEFUN_LOCAL_VOID (Materialfv, + (void *rend, GLenum face, GLenum pname, const GLfloat * params), + (face, pname, params)) + +DEFUN_LOCAL_VOID (Materiali, + (void *rend, GLenum face, GLenum pname, GLint param), + (face, pname, param)) + +DEFUN_LOCAL_VOID (Materialiv, + (void *rend, GLenum face, GLenum pname, const GLint * params), + (face, pname, params)) + +DEFUN_LOCAL_VOID (PointSize, + (void *rend, GLfloat size), + (size)) + +DEFUN_LOCAL_VOID (PolygonMode, + (void *rend, GLenum face, GLenum mode), + (face, mode)) + +DEFUN_LOCAL_VOID (PolygonStipple, + (void *rend, const GLubyte * mask), + (mask)) + +DEFUN_LOCAL_VOID (Scissor, + (void *rend, GLint x, GLint y, GLsizei width, GLsizei height), + (x, y, width, height)) + +DEFUN_LOCAL_VOID (ShadeModel, + (void *rend, GLenum mode), + (mode)) + +DEFUN_LOCAL_VOID (TexParameterf, + (void *rend, GLenum target, GLenum pname, GLfloat param), + (target, pname, param)) + +DEFUN_LOCAL_VOID (TexParameterfv, + (void *rend, GLenum target, GLenum pname, const GLfloat * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (TexParameteri, + (void *rend, GLenum target, GLenum pname, GLint param), + (target, pname, param)) + +DEFUN_LOCAL_VOID (TexParameteriv, + (void *rend, GLenum target, GLenum pname, const GLint * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (TexImage1D, + (void *rend, GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, internalformat, width, border, format, type, pixels)) + +DEFUN_LOCAL_VOID (TexImage2D, + (void *rend, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, internalformat, width, height, border, format, type, pixels)) + +DEFUN_LOCAL_VOID (TexEnvf, + (void *rend, GLenum target, GLenum pname, GLfloat param), + (target, pname, param)) + +DEFUN_LOCAL_VOID (TexEnvfv, + (void *rend, GLenum target, GLenum pname, const GLfloat * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (TexEnvi, + (void *rend, GLenum target, GLenum pname, GLint param), + (target, pname, param)) + +DEFUN_LOCAL_VOID (TexEnviv, + (void *rend, GLenum target, GLenum pname, const GLint * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (TexGend, + (void *rend, GLenum coord, GLenum pname, GLdouble param), + (coord, pname, param)) + +DEFUN_LOCAL_VOID (TexGendv, + (void *rend, GLenum coord, GLenum pname, const GLdouble * params), + (coord, pname, params)) + +DEFUN_LOCAL_VOID (TexGenf, + (void *rend, GLenum coord, GLenum pname, GLfloat param), + (coord, pname, param)) + +DEFUN_LOCAL_VOID (TexGenfv, + (void *rend, GLenum coord, GLenum pname, const GLfloat * params), + (coord, pname, params)) + +DEFUN_LOCAL_VOID (TexGeni, + (void *rend, GLenum coord, GLenum pname, GLint param), + (coord, pname, param)) + +DEFUN_LOCAL_VOID (TexGeniv, + (void *rend, GLenum coord, GLenum pname, const GLint * params), + (coord, pname, params)) + +DEFUN_LOCAL_VOID (FeedbackBuffer, + (void *rend, GLsizei size, GLenum type, GLfloat * buffer), + (size, type, buffer)) + +DEFUN_LOCAL_VOID (SelectBuffer, + (void *rend, GLsizei size, GLuint * buffer), + (size, buffer)) + +DEFUN_LOCAL (GLint, RenderMode, + (void *rend, GLenum mode), + (mode)) + +DEFUN_LOCAL_VOID (InitNames, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (LoadName, + (void *rend, GLuint name), + (name)) + +DEFUN_LOCAL_VOID (PassThrough, + (void *rend, GLfloat token), + (token)) + +DEFUN_LOCAL_VOID (PopName, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (PushName, + (void *rend, GLuint name), + (name)) + +DEFUN_LOCAL_VOID (DrawBuffer, + (void *rend, GLenum mode), + (mode)) + +DEFUN_LOCAL_VOID (Clear, + (void *rend, GLbitfield mask), + (mask)) + +DEFUN_LOCAL_VOID (ClearAccum, + (void *rend, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (ClearIndex, + (void *rend, GLfloat c), + (c)) + +DEFUN_LOCAL_VOID (ClearColor, + (void *rend, GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (ClearStencil, + (void *rend, GLint s), + (s)) + +DEFUN_LOCAL_VOID (ClearDepth, + (void *rend, GLclampd depth), + (depth)) + +DEFUN_LOCAL_VOID (StencilMask, + (void *rend, GLuint mask), + (mask)) + +DEFUN_LOCAL_VOID (ColorMask, + (void *rend, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (DepthMask, + (void *rend, GLboolean flag), + (flag)) + +DEFUN_LOCAL_VOID (IndexMask, + (void *rend, GLuint mask), + (mask)) + +DEFUN_LOCAL_VOID (Accum, + (void *rend, GLenum op, GLfloat value), + (op, value)) + +DEFUN_LOCAL_VOID (Disable, + (void *rend, GLenum cap), + (cap)) + +DEFUN_LOCAL_VOID (Enable, + (void *rend, GLenum cap), + (cap)) + +DEFUN_LOCAL_VOID (Finish, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (Flush, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (PopAttrib, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (PushAttrib, + (void *rend, GLbitfield mask), + (mask)) + +DEFUN_LOCAL_VOID (Map1d, + (void *rend, GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points), + (target, u1, u2, stride, order, points)) + +DEFUN_LOCAL_VOID (Map1f, + (void *rend, GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points), + (target, u1, u2, stride, order, points)) + +DEFUN_LOCAL_VOID (Map2d, + (void *rend, GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points), + (target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points)) + +DEFUN_LOCAL_VOID (Map2f, + (void *rend, GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points), + (target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points)) + +DEFUN_LOCAL_VOID (MapGrid1d, + (void *rend, GLint un, GLdouble u1, GLdouble u2), + (un, u1, u2)) + +DEFUN_LOCAL_VOID (MapGrid1f, + (void *rend, GLint un, GLfloat u1, GLfloat u2), + (un, u1, u2)) + +DEFUN_LOCAL_VOID (MapGrid2d, + (void *rend, GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2), + (un, u1, u2, vn, v1, v2)) + +DEFUN_LOCAL_VOID (MapGrid2f, + (void *rend, GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2), + (un, u1, u2, vn, v1, v2)) + +DEFUN_LOCAL_VOID (EvalCoord1d, + (void *rend, GLdouble u), + (u)) + +DEFUN_LOCAL_VOID (EvalCoord1dv, + (void *rend, const GLdouble * u), + (u)) + +DEFUN_LOCAL_VOID (EvalCoord1f, + (void *rend, GLfloat u), + (u)) + +DEFUN_LOCAL_VOID (EvalCoord1fv, + (void *rend, const GLfloat * u), + (u)) + +DEFUN_LOCAL_VOID (EvalCoord2d, + (void *rend, GLdouble u, GLdouble v), + (u, v)) + +DEFUN_LOCAL_VOID (EvalCoord2dv, + (void *rend, const GLdouble * u), + (u)) + +DEFUN_LOCAL_VOID (EvalCoord2f, + (void *rend, GLfloat u, GLfloat v), + (u, v)) + +DEFUN_LOCAL_VOID (EvalCoord2fv, + (void *rend, const GLfloat * u), + (u)) + +DEFUN_LOCAL_VOID (EvalMesh1, + (void *rend, GLenum mode, GLint i1, GLint i2), + (mode, i1, i2)) + +DEFUN_LOCAL_VOID (EvalPoint1, + (void *rend, GLint i), + (i)) + +DEFUN_LOCAL_VOID (EvalMesh2, + (void *rend, GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2), + (mode, i1, i2, j1, j2)) + +DEFUN_LOCAL_VOID (EvalPoint2, + (void *rend, GLint i, GLint j), + (i, j)) + +DEFUN_LOCAL_VOID (AlphaFunc, + (void *rend, GLenum func, GLclampf ref), + (func, ref)) + +DEFUN_LOCAL_VOID (BlendFunc, + (void *rend, GLenum sfactor, GLenum dfactor), + (sfactor, dfactor)) + +DEFUN_LOCAL_VOID (LogicOp, + (void *rend, GLenum opcode), + (opcode)) + +DEFUN_LOCAL_VOID (StencilFunc, + (void *rend, GLenum func, GLint ref, GLuint mask), + (func, ref, mask)) + +DEFUN_LOCAL_VOID (StencilOp, + (void *rend, GLenum fail, GLenum zfail, GLenum zpass), + (fail, zfail, zpass)) + +DEFUN_LOCAL_VOID (DepthFunc, + (void *rend, GLenum func), + (func)) + +DEFUN_LOCAL_VOID (PixelZoom, + (void *rend, GLfloat xfactor, GLfloat yfactor), + (xfactor, yfactor)) + +DEFUN_LOCAL_VOID (PixelTransferf, + (void *rend, GLenum pname, GLfloat param), + (pname, param)) + +DEFUN_LOCAL_VOID (PixelTransferi, + (void *rend, GLenum pname, GLint param), + (pname, param)) + +DEFUN_LOCAL_VOID (PixelStoref, + (void *rend, GLenum pname, GLfloat param), + (pname, param)) + +DEFUN_LOCAL_VOID (PixelStorei, + (void *rend, GLenum pname, GLint param), + (pname, param)) + +DEFUN_LOCAL_VOID (PixelMapfv, + (void *rend, GLenum map, GLint mapsize, const GLfloat * values), + (map, mapsize, values)) + +DEFUN_LOCAL_VOID (PixelMapuiv, + (void *rend, GLenum map, GLint mapsize, const GLuint * values), + (map, mapsize, values)) + +DEFUN_LOCAL_VOID (PixelMapusv, + (void *rend, GLenum map, GLint mapsize, const GLushort * values), + (map, mapsize, values)) + +DEFUN_LOCAL_VOID (ReadBuffer, + (void *rend, GLenum mode), + (mode)) + +DEFUN_LOCAL_VOID (CopyPixels, + (void *rend, GLint x, GLint y, GLsizei width, GLsizei height, GLenum type), + (x, y, width, height, type)) + +DEFUN_LOCAL_VOID (ReadPixels, + (void *rend, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels), + (x, y, width, height, format, type, pixels)) + +DEFUN_LOCAL_VOID (DrawPixels, + (void *rend, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels), + (width, height, format, type, pixels)) + +DEFUN_LOCAL_VOID (GetBooleanv, + (void *rend, GLenum pname, GLboolean * params), + (pname, params)) + +DEFUN_LOCAL_VOID (GetClipPlane, + (void *rend, GLenum plane, GLdouble * equation), + (plane, equation)) + +DEFUN_LOCAL_VOID (GetDoublev, + (void *rend, GLenum pname, GLdouble * params), + (pname, params)) + +DEFUN_LOCAL (GLenum, GetError, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (GetFloatv, + (void *rend, GLenum pname, GLfloat * params), + (pname, params)) + +DEFUN_LOCAL_VOID (GetIntegerv, + (void *rend, GLenum pname, GLint * params), + (pname, params)) + +DEFUN_LOCAL_VOID (GetLightfv, + (void *rend, GLenum light, GLenum pname, GLfloat * params), + (light, pname, params)) + +DEFUN_LOCAL_VOID (GetLightiv, + (void *rend, GLenum light, GLenum pname, GLint * params), + (light, pname, params)) + +DEFUN_LOCAL_VOID (GetMapdv, + (void *rend, GLenum target, GLenum query, GLdouble * v), + (target, query, v)) + +DEFUN_LOCAL_VOID (GetMapfv, + (void *rend, GLenum target, GLenum query, GLfloat * v), + (target, query, v)) + +DEFUN_LOCAL_VOID (GetMapiv, + (void *rend, GLenum target, GLenum query, GLint * v), + (target, query, v)) + +DEFUN_LOCAL_VOID (GetMaterialfv, + (void *rend, GLenum face, GLenum pname, GLfloat * params), + (face, pname, params)) + +DEFUN_LOCAL_VOID (GetMaterialiv, + (void *rend, GLenum face, GLenum pname, GLint * params), + (face, pname, params)) + +DEFUN_LOCAL_VOID (GetPixelMapfv, + (void *rend, GLenum map, GLfloat * values), + (map, values)) + +DEFUN_LOCAL_VOID (GetPixelMapuiv, + (void *rend, GLenum map, GLuint * values), + (map, values)) + +DEFUN_LOCAL_VOID (GetPixelMapusv, + (void *rend, GLenum map, GLushort * values), + (map, values)) + +DEFUN_LOCAL_VOID (GetPolygonStipple, + (void *rend, GLubyte * mask), + (mask)) + +DEFUN_LOCAL (const GLubyte *, GetString, + (void *rend, GLenum name), + (name)) + +DEFUN_LOCAL_VOID (GetTexEnvfv, + (void *rend, GLenum target, GLenum pname, GLfloat * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (GetTexEnviv, + (void *rend, GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (GetTexGendv, + (void *rend, GLenum coord, GLenum pname, GLdouble * params), + (coord, pname, params)) + +DEFUN_LOCAL_VOID (GetTexGenfv, + (void *rend, GLenum coord, GLenum pname, GLfloat * params), + (coord, pname, params)) + +DEFUN_LOCAL_VOID (GetTexGeniv, + (void *rend, GLenum coord, GLenum pname, GLint * params), + (coord, pname, params)) + +DEFUN_LOCAL_VOID (GetTexImage, + (void *rend, GLenum target, GLint level, GLenum format, GLenum type, GLvoid * pixels), + (target, level, format, type, pixels)) + +DEFUN_LOCAL_VOID (GetTexParameterfv, + (void *rend, GLenum target, GLenum pname, GLfloat * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (GetTexParameteriv, + (void *rend, GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (GetTexLevelParameterfv, + (void *rend, GLenum target, GLint level, GLenum pname, GLfloat * params), + (target, level, pname, params)) + +DEFUN_LOCAL_VOID (GetTexLevelParameteriv, + (void *rend, GLenum target, GLint level, GLenum pname, GLint * params), + (target, level, pname, params)) + +DEFUN_LOCAL (GLboolean, IsEnabled, + (void *rend, GLenum cap), + (cap)) + +DEFUN_LOCAL (GLboolean, IsList, + (void *rend, GLuint list), + (list)) + +DEFUN_LOCAL_VOID (DepthRange, + (void *rend, GLclampd zNear, GLclampd zFar), + (zNear, zFar)) + +DEFUN_LOCAL_VOID (Frustum, + (void *rend, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar), + (left, right, bottom, top, zNear, zFar)) + +DEFUN_LOCAL_VOID (LoadIdentity, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (LoadMatrixf, + (void *rend, const GLfloat * m), + (m)) + +DEFUN_LOCAL_VOID (LoadMatrixd, + (void *rend, const GLdouble * m), + (m)) + +DEFUN_LOCAL_VOID (MatrixMode, + (void *rend, GLenum mode), + (mode)) + +DEFUN_LOCAL_VOID (MultMatrixf, + (void *rend, const GLfloat * m), + (m)) + +DEFUN_LOCAL_VOID (MultMatrixd, + (void *rend, const GLdouble * m), + (m)) + +DEFUN_LOCAL_VOID (Ortho, + (void *rend, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar), + (left, right, bottom, top, zNear, zFar)) + +DEFUN_LOCAL_VOID (PopMatrix, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (PushMatrix, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (Rotated, + (void *rend, GLdouble angle, GLdouble x, GLdouble y, GLdouble z), + (angle, x, y, z)) + +DEFUN_LOCAL_VOID (Rotatef, + (void *rend, GLfloat angle, GLfloat x, GLfloat y, GLfloat z), + (angle, x, y, z)) + +DEFUN_LOCAL_VOID (Scaled, + (void *rend, GLdouble x, GLdouble y, GLdouble z), + (x, y, z)) + +DEFUN_LOCAL_VOID (Scalef, + (void *rend, GLfloat x, GLfloat y, GLfloat z), + (x, y, z)) + +DEFUN_LOCAL_VOID (Translated, + (void *rend, GLdouble x, GLdouble y, GLdouble z), + (x, y, z)) + +DEFUN_LOCAL_VOID (Translatef, + (void *rend, GLfloat x, GLfloat y, GLfloat z), + (x, y, z)) + +DEFUN_LOCAL_VOID (Viewport, + (void *rend, GLint x, GLint y, GLsizei width, GLsizei height), + (x, y, width, height)) + +DEFUN_LOCAL_VOID (ArrayElement, + (void *rend, GLint i), + (i)) + +DEFUN_LOCAL_VOID (BindTexture, + (void *rend, GLenum target, GLenum texture), + (target, texture)) + +DEFUN_LOCAL_VOID (ColorPointer, + (void *rend, GLint size, GLenum type, GLsizei stride, const GLvoid * pointer), + (size, type, stride, pointer)) + +DEFUN_LOCAL_VOID (DisableClientState, + (void *rend, GLenum array), + (array)) + +DEFUN_LOCAL_VOID (DrawArrays, + (void *rend, GLenum mode, GLint first, GLsizei count), + (mode, first, count)) + +DEFUN_LOCAL_VOID (DrawElements, + (void *rend, GLenum mode, GLsizei count, GLenum type, const GLvoid * indices), + (mode, count, type, indices)) + +DEFUN_LOCAL_VOID (EdgeFlagPointer, + (void *rend, GLsizei stride, const GLvoid * pointer), + (stride, pointer)) + +DEFUN_LOCAL_VOID (EnableClientState, + (void *rend, GLenum array), + (array)) + +DEFUN_LOCAL_VOID (IndexPointer, + (void *rend, GLenum type, GLsizei stride, const GLvoid * pointer), + (type, stride, pointer)) + +DEFUN_LOCAL_VOID (Indexub, + (void *rend, GLubyte c), + (c)) + +DEFUN_LOCAL_VOID (Indexubv, + (void *rend, const GLubyte * c), + (c)) + +DEFUN_LOCAL_VOID (InterleavedArrays, + (void *rend, GLenum format, GLsizei stride, const GLvoid * pointer), + (format, stride, pointer)) + +DEFUN_LOCAL_VOID (NormalPointer, + (void *rend, GLenum type, GLsizei stride, const GLvoid * pointer), + (type, stride, pointer)) + +DEFUN_LOCAL_VOID (PolygonOffset, + (void *rend, GLfloat factor, GLfloat units), + (factor, units)) + +DEFUN_LOCAL_VOID (TexCoordPointer, + (void *rend, GLint size, GLenum type, GLsizei stride, const GLvoid * pointer), + (size, type, stride, pointer)) + +DEFUN_LOCAL_VOID (VertexPointer, + (void *rend, GLint size, GLenum type, GLsizei stride, const GLvoid * pointer), + (size, type, stride, pointer)) + +DEFUN_LOCAL (GLboolean, AreTexturesResident, + (void *rend, GLsizei n, const GLenum * textures, GLboolean * residences), + (n, textures, residences)) + +DEFUN_LOCAL_VOID (CopyTexImage1D, + (void *rend, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border), + (target, level, internalformat, x, y, width, border)) + +DEFUN_LOCAL_VOID (CopyTexImage2D, + (void *rend, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border), + (target, level, internalformat, x, y, width, height, border)) + +DEFUN_LOCAL_VOID (CopyTexSubImage1D, + (void *rend, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width), + (target, level, xoffset, x, y, width)) + +DEFUN_LOCAL_VOID (CopyTexSubImage2D, + (void *rend, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height), + (target, level, xoffset, yoffset, x, y, width, height)) + +DEFUN_LOCAL_VOID (DeleteTextures, + (void *rend, GLsizei n, const GLenum * textures), + (n, textures)) + +DEFUN_LOCAL_VOID (GenTextures, + (void *rend, GLsizei n, GLenum * textures), + (n, textures)) + +DEFUN_LOCAL_VOID (GetPointerv, + (void *rend, GLenum pname, GLvoid * * params), + (pname, params)) + +DEFUN_LOCAL (GLboolean, IsTexture, + (void *rend, GLenum texture), + (texture)) + +DEFUN_LOCAL_VOID (PrioritizeTextures, + (void *rend, GLsizei n, const GLenum * textures, const GLclampf * priorities), + (n, textures, priorities)) + +DEFUN_LOCAL_VOID (TexSubImage1D, + (void *rend, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, xoffset, width, format, type, pixels)) + +DEFUN_LOCAL_VOID (TexSubImage2D, + (void *rend, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, xoffset, yoffset, width, height, format, type, pixels)) + +DEFUN_LOCAL_VOID (PopClientAttrib, + (void *rend), + ()) + +DEFUN_LOCAL_VOID (PushClientAttrib, + (void *rend, GLbitfield mask), + (mask)) + +DEFUN_LOCAL_VOID (BlendColor, + (void *rend, GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha), + (red, green, blue, alpha)) + +DEFUN_LOCAL_VOID (BlendEquation, + (void *rend, GLenum mode), + (mode)) + +DEFUN_LOCAL_VOID (DrawRangeElements, + (void *rend, GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid * indices), + (mode, start, end, count, type, indices)) + +DEFUN_LOCAL_VOID (ColorTable, + (void *rend, GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * table), + (target, internalformat, width, format, type, table)) + +DEFUN_LOCAL_VOID (ColorTableParameterfv, + (void *rend, GLenum target, GLenum pname, const GLfloat * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (ColorTableParameteriv, + (void *rend, GLenum target, GLenum pname, const GLint * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (CopyColorTable, + (void *rend, GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width), + (target, internalformat, x, y, width)) + +DEFUN_LOCAL_VOID (GetColorTable, + (void *rend, GLenum target, GLenum format, GLenum type, GLvoid * table), + (target, format, type, table)) + +DEFUN_LOCAL_VOID (GetColorTableParameterfv, + (void *rend, GLenum target, GLenum pname, GLfloat * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (GetColorTableParameteriv, + (void *rend, GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (ColorSubTable, + (void *rend, GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid * data), + (target, start, count, format, type, data)) + +DEFUN_LOCAL_VOID (CopyColorSubTable, + (void *rend, GLenum target, GLsizei start, GLint x, GLint y, GLsizei width), + (target, start, x, y, width)) + +DEFUN_LOCAL_VOID (ConvolutionFilter1D, + (void *rend, GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * image), + (target, internalformat, width, format, type, image)) + +DEFUN_LOCAL_VOID (ConvolutionFilter2D, + (void *rend, GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * image), + (target, internalformat, width, height, format, type, image)) + +DEFUN_LOCAL_VOID (ConvolutionParameterf, + (void *rend, GLenum target, GLenum pname, GLfloat params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (ConvolutionParameterfv, + (void *rend, GLenum target, GLenum pname, const GLfloat * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (ConvolutionParameteri, + (void *rend, GLenum target, GLenum pname, GLint params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (ConvolutionParameteriv, + (void *rend, GLenum target, GLenum pname, const GLint * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (CopyConvolutionFilter1D, + (void *rend, GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width), + (target, internalformat, x, y, width)) + +DEFUN_LOCAL_VOID (CopyConvolutionFilter2D, + (void *rend, GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height), + (target, internalformat, x, y, width, height)) + +DEFUN_LOCAL_VOID (GetConvolutionFilter, + (void *rend, GLenum target, GLenum format, GLenum type, GLvoid * image), + (target, format, type, image)) + +DEFUN_LOCAL_VOID (GetConvolutionParameterfv, + (void *rend, GLenum target, GLenum pname, GLfloat * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (GetConvolutionParameteriv, + (void *rend, GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (GetSeparableFilter, + (void *rend, GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span), + (target, format, type, row, column, span)) + +DEFUN_LOCAL_VOID (SeparableFilter2D, + (void *rend, GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column), + (target, internalformat, width, height, format, type, row, column)) + +DEFUN_LOCAL_VOID (GetHistogram, + (void *rend, GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values), + (target, reset, format, type, values)) + +DEFUN_LOCAL_VOID (GetHistogramParameterfv, + (void *rend, GLenum target, GLenum pname, GLfloat * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (GetHistogramParameteriv, + (void *rend, GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (GetMinmax, + (void *rend, GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values), + (target, reset, format, type, values)) + +DEFUN_LOCAL_VOID (GetMinmaxParameterfv, + (void *rend, GLenum target, GLenum pname, GLfloat * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (GetMinmaxParameteriv, + (void *rend, GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (Histogram, + (void *rend, GLenum target, GLsizei width, GLenum internalformat, GLboolean sink), + (target, width, internalformat, sink)) + +DEFUN_LOCAL_VOID (Minmax, + (void *rend, GLenum target, GLenum internalformat, GLboolean sink), + (target, internalformat, sink)) + +DEFUN_LOCAL_VOID (ResetHistogram, + (void *rend, GLenum target), + (target)) + +DEFUN_LOCAL_VOID (ResetMinmax, + (void *rend, GLenum target), + (target)) + +DEFUN_LOCAL_VOID (TexImage3D, + (void *rend, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, internalformat, width, height, depth, border, format, type, pixels)) + +DEFUN_LOCAL_VOID (TexSubImage3D, + (void *rend, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels)) + +DEFUN_LOCAL_VOID (CopyTexSubImage3D, + (void *rend, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height), + (target, level, xoffset, yoffset, zoffset, x, y, width, height)) + +DEFUN_LOCAL_VOID (ActiveTextureARB, + (void *rend, GLenum texture), + (texture)) + +DEFUN_LOCAL_VOID (ClientActiveTextureARB, + (void *rend, GLenum texture), + (texture)) + +DEFUN_LOCAL_VOID (MultiTexCoord1dARB, + (void *rend, GLenum target, GLdouble s), + (target, s)) + +DEFUN_LOCAL_VOID (MultiTexCoord1dvARB, + (void *rend, GLenum target, const GLdouble * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord1fARB, + (void *rend, GLenum target, GLfloat s), + (target, s)) + +DEFUN_LOCAL_VOID (MultiTexCoord1fvARB, + (void *rend, GLenum target, const GLfloat * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord1iARB, + (void *rend, GLenum target, GLint s), + (target, s)) + +DEFUN_LOCAL_VOID (MultiTexCoord1ivARB, + (void *rend, GLenum target, const GLint * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord1sARB, + (void *rend, GLenum target, GLshort s), + (target, s)) + +DEFUN_LOCAL_VOID (MultiTexCoord1svARB, + (void *rend, GLenum target, const GLshort * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord2dARB, + (void *rend, GLenum target, GLdouble s, GLdouble t), + (target, s, t)) + +DEFUN_LOCAL_VOID (MultiTexCoord2dvARB, + (void *rend, GLenum target, const GLdouble * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord2fARB, + (void *rend, GLenum target, GLfloat s, GLfloat t), + (target, s, t)) + +DEFUN_LOCAL_VOID (MultiTexCoord2fvARB, + (void *rend, GLenum target, const GLfloat * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord2iARB, + (void *rend, GLenum target, GLint s, GLint t), + (target, s, t)) + +DEFUN_LOCAL_VOID (MultiTexCoord2ivARB, + (void *rend, GLenum target, const GLint * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord2sARB, + (void *rend, GLenum target, GLshort s, GLshort t), + (target, s, t)) + +DEFUN_LOCAL_VOID (MultiTexCoord2svARB, + (void *rend, GLenum target, const GLshort * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord3dARB, + (void *rend, GLenum target, GLdouble s, GLdouble t, GLdouble r), + (target, s, t, r)) + +DEFUN_LOCAL_VOID (MultiTexCoord3dvARB, + (void *rend, GLenum target, const GLdouble * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord3fARB, + (void *rend, GLenum target, GLfloat s, GLfloat t, GLfloat r), + (target, s, t, r)) + +DEFUN_LOCAL_VOID (MultiTexCoord3fvARB, + (void *rend, GLenum target, const GLfloat * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord3iARB, + (void *rend, GLenum target, GLint s, GLint t, GLint r), + (target, s, t, r)) + +DEFUN_LOCAL_VOID (MultiTexCoord3ivARB, + (void *rend, GLenum target, const GLint * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord3sARB, + (void *rend, GLenum target, GLshort s, GLshort t, GLshort r), + (target, s, t, r)) + +DEFUN_LOCAL_VOID (MultiTexCoord3svARB, + (void *rend, GLenum target, const GLshort * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord4dARB, + (void *rend, GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q), + (target, s, t, r, q)) + +DEFUN_LOCAL_VOID (MultiTexCoord4dvARB, + (void *rend, GLenum target, const GLdouble * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord4fARB, + (void *rend, GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q), + (target, s, t, r, q)) + +DEFUN_LOCAL_VOID (MultiTexCoord4fvARB, + (void *rend, GLenum target, const GLfloat * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord4iARB, + (void *rend, GLenum target, GLint s, GLint t, GLint r, GLint q), + (target, s, t, r, q)) + +DEFUN_LOCAL_VOID (MultiTexCoord4ivARB, + (void *rend, GLenum target, const GLint * v), + (target, v)) + +DEFUN_LOCAL_VOID (MultiTexCoord4sARB, + (void *rend, GLenum target, GLshort s, GLshort t, GLshort r, GLshort q), + (target, s, t, r, q)) + +DEFUN_LOCAL_VOID (MultiTexCoord4svARB, + (void *rend, GLenum target, const GLshort * v), + (target, v)) + +DEFUN_LOCAL_VOID (LoadTransposeMatrixfARB, + (void *rend, const GLfloat * m), + (m)) + +DEFUN_LOCAL_VOID (LoadTransposeMatrixdARB, + (void *rend, const GLdouble * m), + (m)) + +DEFUN_LOCAL_VOID (MultTransposeMatrixfARB, + (void *rend, const GLfloat * m), + (m)) + +DEFUN_LOCAL_VOID (MultTransposeMatrixdARB, + (void *rend, const GLdouble * m), + (m)) + +DEFUN_LOCAL_VOID (SampleCoverageARB, + (void *rend, GLclampf value, GLboolean invert), + (value, invert)) + +DEFUN_EXTERN_VOID (__unused413, + (), + ()) + +DEFUN_ALIAS_VOID (PolygonOffsetEXT, PolygonOffset, + (GLfloat factor, GLfloat bias), + (factor, bias)) + +DEFUN_EXTERN_VOID (GetTexFilterFuncSGIS, + (GLenum target, GLenum filter, GLfloat * weights), + (target, filter, weights)) + +DEFUN_EXTERN_VOID (TexFilterFuncSGIS, + (GLenum target, GLenum filter, GLsizei n, const GLfloat * weights), + (target, filter, n, weights)) + +DEFUN_ALIAS_VOID (GetHistogramEXT, GetHistogram, + (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values), + (target, reset, format, type, values)) + +DEFUN_ALIAS_VOID (GetHistogramParameterfvEXT, GetHistogramParameterfv, + (GLenum target, GLenum pname, GLfloat * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (GetHistogramParameterivEXT, GetHistogramParameteriv, + (GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (GetMinmaxEXT, GetMinmax, + (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid * values), + (target, reset, format, type, values)) + +DEFUN_ALIAS_VOID (GetMinmaxParameterfvEXT, GetMinmaxParameterfv, + (GLenum target, GLenum pname, GLfloat * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (GetMinmaxParameterivEXT, GetMinmaxParameteriv, + (GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (GetConvolutionFilterEXT, GetConvolutionFilter, + (GLenum target, GLenum format, GLenum type, GLvoid * image), + (target, format, type, image)) + +DEFUN_ALIAS_VOID (GetConvolutionParameterfvEXT, GetConvolutionParameterfv, + (GLenum target, GLenum pname, GLfloat * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (GetConvolutionParameterivEXT, GetConvolutionParameteriv, + (GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (GetSeparableFilterEXT, GetSeparableFilter, + (GLenum target, GLenum format, GLenum type, GLvoid * row, GLvoid * column, GLvoid * span), + (target, format, type, row, column, span)) + +DEFUN_ALIAS_VOID (GetColorTableSGI, GetColorTable, + (GLenum target, GLenum format, GLenum type, GLvoid * table), + (target, format, type, table)) + +DEFUN_ALIAS_VOID (GetColorTableParameterfvSGI, GetColorTableParameterfv, + (GLenum target, GLenum pname, GLfloat * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (GetColorTableParameterivSGI, GetColorTableParameteriv, + (GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_EXTERN_VOID (PixelTexGenSGIX, + (GLenum mode), + (mode)) + +DEFUN_EXTERN_VOID (PixelTexGenParameteriSGIS, + (GLenum pname, GLint param), + (pname, param)) + +DEFUN_EXTERN_VOID (PixelTexGenParameterivSGIS, + (GLenum pname, const GLint * params), + (pname, params)) + +DEFUN_EXTERN_VOID (PixelTexGenParameterfSGIS, + (GLenum pname, GLfloat param), + (pname, param)) + +DEFUN_EXTERN_VOID (PixelTexGenParameterfvSGIS, + (GLenum pname, const GLfloat * params), + (pname, params)) + +DEFUN_EXTERN_VOID (GetPixelTexGenParameterivSGIS, + (GLenum pname, GLint * params), + (pname, params)) + +DEFUN_EXTERN_VOID (GetPixelTexGenParameterfvSGIS, + (GLenum pname, GLfloat * params), + (pname, params)) + +DEFUN_EXTERN_VOID (TexImage4DSGIS, + (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, internalformat, width, height, depth, size4d, border, format, type, pixels)) + +DEFUN_EXTERN_VOID (TexSubImage4DSGIS, + (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, xoffset, yoffset, zoffset, woffset, width, height, depth, size4d, format, type, pixels)) + +DEFUN_ALIAS (GLboolean, AreTexturesResidentEXT, AreTexturesResident, + (GLsizei n, const GLenum * textures, GLboolean * residences), + (n, textures, residences)) + +DEFUN_ALIAS_VOID (GenTexturesEXT, GenTextures, + (GLsizei n, GLenum * textures), + (n, textures)) + +DEFUN_EXTERN (GLboolean, IsTextureEXT, + (GLenum texture), + (texture)) + +DEFUN_EXTERN_VOID (DetailTexFuncSGIS, + (GLenum target, GLsizei n, const GLfloat * points), + (target, n, points)) + +DEFUN_EXTERN_VOID (GetDetailTexFuncSGIS, + (GLenum target, GLfloat * points), + (target, points)) + +DEFUN_EXTERN_VOID (SharpenTexFuncSGIS, + (GLenum target, GLsizei n, const GLfloat * points), + (target, n, points)) + +DEFUN_EXTERN_VOID (GetSharpenTexFuncSGIS, + (GLenum target, GLfloat * points), + (target, points)) + +DEFUN_EXTERN_VOID (SampleMaskSGIS, + (GLclampf value, GLboolean invert), + (value, invert)) + +DEFUN_EXTERN_VOID (SamplePatternSGIS, + (GLenum pattern), + (pattern)) + +DEFUN_EXTERN_VOID (ColorPointerEXT, + (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer), + (size, type, stride, count, pointer)) + +DEFUN_EXTERN_VOID (EdgeFlagPointerEXT, + (GLsizei stride, GLsizei count, const GLboolean * pointer), + (stride, count, pointer)) + +DEFUN_EXTERN_VOID (IndexPointerEXT, + (GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer), + (type, stride, count, pointer)) + +DEFUN_EXTERN_VOID (NormalPointerEXT, + (GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer), + (type, stride, count, pointer)) + +DEFUN_EXTERN_VOID (TexCoordPointerEXT, + (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer), + (size, type, stride, count, pointer)) + +DEFUN_EXTERN_VOID (VertexPointerEXT, + (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid * pointer), + (size, type, stride, count, pointer)) + +DEFUN_EXTERN_VOID (SpriteParameterfSGIX, + (GLenum pname, GLfloat param), + (pname, param)) + +DEFUN_EXTERN_VOID (SpriteParameterfvSGIX, + (GLenum pname, const GLfloat * params), + (pname, params)) + +DEFUN_EXTERN_VOID (SpriteParameteriSGIX, + (GLenum pname, GLint param), + (pname, param)) + +DEFUN_EXTERN_VOID (SpriteParameterivSGIX, + (GLenum pname, const GLint * params), + (pname, params)) + +DEFUN_LOCAL_VOID (PointParameterfEXT, + (void *rend, GLenum pname, GLfloat param), + (pname, param)) + +DEFUN_ALIAS_VOID (PointParameterfEXT, PointParameterf, + (GLenum pname, GLfloat param), + (pname, param)) + +DEFUN_LOCAL_VOID (PointParameterfvEXT, + (void *rend, GLenum pname, const GLfloat * params), + (pname, params)) + +DEFUN_ALIAS_VOID (PointParameterfvEXT, PointParameterfv, + (GLenum pname, const GLfloat * params), + (pname, params)) + +DEFUN_EXTERN (GLint, GetInstrumentsSGIX, + (), + ()) + +DEFUN_EXTERN_VOID (InstrumentsBufferSGIX, + (GLsizei size, GLint * buffer), + (size, buffer)) + +DEFUN_EXTERN (GLint, PollInstrumentsSGIX, + (GLint * marker_p), + (marker_p)) + +DEFUN_EXTERN_VOID (ReadInstrumentsSGIX, + (GLint marker), + (marker)) + +DEFUN_EXTERN_VOID (StartInstrumentsSGIX, + (), + ()) + +DEFUN_EXTERN_VOID (StopInstrumentsSGIX, + (GLint marker), + (marker)) + +DEFUN_EXTERN_VOID (FrameZoomSGIX, + (GLint factor), + (factor)) + +DEFUN_EXTERN_VOID (TagSampleBufferSGIX, + (), + ()) + +DEFUN_EXTERN_VOID (ReferencePlaneSGIX, + (const GLdouble * equation), + (equation)) + +DEFUN_EXTERN_VOID (FlushRasterSGIX, + (), + ()) + +DEFUN_EXTERN_VOID (GetListParameterfvSGIX, + (GLuint list, GLenum pname, GLfloat * params), + (list, pname, params)) + +DEFUN_EXTERN_VOID (GetListParameterivSGIX, + (GLuint list, GLenum pname, GLint * params), + (list, pname, params)) + +DEFUN_EXTERN_VOID (ListParameterfSGIX, + (GLuint list, GLenum pname, GLfloat param), + (list, pname, param)) + +DEFUN_EXTERN_VOID (ListParameterfvSGIX, + (GLuint list, GLenum pname, const GLfloat * params), + (list, pname, params)) + +DEFUN_EXTERN_VOID (ListParameteriSGIX, + (GLuint list, GLenum pname, GLint param), + (list, pname, param)) + +DEFUN_EXTERN_VOID (ListParameterivSGIX, + (GLuint list, GLenum pname, const GLint * params), + (list, pname, params)) + +DEFUN_EXTERN_VOID (FragmentColorMaterialSGIX, + (GLenum face, GLenum mode), + (face, mode)) + +DEFUN_EXTERN_VOID (FragmentLightfSGIX, + (GLenum light, GLenum pname, GLfloat param), + (light, pname, param)) + +DEFUN_EXTERN_VOID (FragmentLightfvSGIX, + (GLenum light, GLenum pname, const GLfloat * params), + (light, pname, params)) + +DEFUN_EXTERN_VOID (FragmentLightiSGIX, + (GLenum light, GLenum pname, GLint param), + (light, pname, param)) + +DEFUN_EXTERN_VOID (FragmentLightivSGIX, + (GLenum light, GLenum pname, const GLint * params), + (light, pname, params)) + +DEFUN_EXTERN_VOID (FragmentLightModelfSGIX, + (GLenum pname, GLfloat param), + (pname, param)) + +DEFUN_EXTERN_VOID (FragmentLightModelfvSGIX, + (GLenum pname, const GLfloat * params), + (pname, params)) + +DEFUN_EXTERN_VOID (FragmentLightModeliSGIX, + (GLenum pname, GLint param), + (pname, param)) + +DEFUN_EXTERN_VOID (FragmentLightModelivSGIX, + (GLenum pname, const GLint * params), + (pname, params)) + +DEFUN_EXTERN_VOID (FragmentMaterialfSGIX, + (GLenum face, GLenum pname, GLfloat param), + (face, pname, param)) + +DEFUN_EXTERN_VOID (FragmentMaterialfvSGIX, + (GLenum face, GLenum pname, const GLfloat * params), + (face, pname, params)) + +DEFUN_EXTERN_VOID (FragmentMaterialiSGIX, + (GLenum face, GLenum pname, GLint param), + (face, pname, param)) + +DEFUN_EXTERN_VOID (FragmentMaterialivSGIX, + (GLenum face, GLenum pname, const GLint * params), + (face, pname, params)) + +DEFUN_EXTERN_VOID (GetFragmentLightfvSGIX, + (GLenum light, GLenum pname, GLfloat * params), + (light, pname, params)) + +DEFUN_EXTERN_VOID (GetFragmentLightivSGIX, + (GLenum light, GLenum pname, GLint * params), + (light, pname, params)) + +DEFUN_EXTERN_VOID (GetFragmentMaterialfvSGIX, + (GLenum face, GLenum pname, GLfloat * params), + (face, pname, params)) + +DEFUN_EXTERN_VOID (GetFragmentMaterialivSGIX, + (GLenum face, GLenum pname, GLint * params), + (face, pname, params)) + +DEFUN_EXTERN_VOID (LightEnviSGIX, + (GLenum pname, GLint param), + (pname, param)) + +DEFUN_EXTERN_VOID (VertexWeightfEXT, + (GLfloat weight), + (weight)) + +DEFUN_EXTERN_VOID (VertexWeightfvEXT, + (const GLfloat * weight), + (weight)) + +DEFUN_EXTERN_VOID (VertexWeightPointerEXT, + (GLsizei size, GLenum type, GLsizei stride, const GLvoid * pointer), + (size, type, stride, pointer)) + +DEFUN_EXTERN_VOID (FlushVertexArrayRangeNV, + (), + ()) + +DEFUN_LOCAL_VOID (VertexArrayRangeNV, + (void *rend, GLsizei length, const GLvoid * pointer), + (length, pointer)) + +DEFUN_ALIAS_VOID (VertexArrayRangeNV, VertexArrayRangeAPPLE, + (GLsizei length, const GLvoid * pointer), + (length, pointer)) + +DEFUN_LOCAL_VOID (CombinerParameterfvNV, + (void *rend, GLenum pname, const GLfloat * params), + (pname, params)) + +DEFUN_LOCAL_VOID (CombinerParameterfNV, + (void *rend, GLenum pname, GLfloat param), + (pname, param)) + +DEFUN_LOCAL_VOID (CombinerParameterivNV, + (void *rend, GLenum pname, const GLint * params), + (pname, params)) + +DEFUN_LOCAL_VOID (CombinerParameteriNV, + (void *rend, GLenum pname, GLint param), + (pname, param)) + +DEFUN_LOCAL_VOID (CombinerInputNV, + (void *rend, GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage), + (stage, portion, variable, input, mapping, componentUsage)) + +DEFUN_LOCAL_VOID (CombinerOutputNV, + (void *rend, GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum), + (stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum)) + +DEFUN_LOCAL_VOID (FinalCombinerInputNV, + (void *rend, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage), + (variable, input, mapping, componentUsage)) + +DEFUN_LOCAL_VOID (GetCombinerInputParameterfvNV, + (void *rend, GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat * params), + (stage, portion, variable, pname, params)) + +DEFUN_LOCAL_VOID (GetCombinerInputParameterivNV, + (void *rend, GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint * params), + (stage, portion, variable, pname, params)) + +DEFUN_LOCAL_VOID (GetCombinerOutputParameterfvNV, + (void *rend, GLenum stage, GLenum portion, GLenum pname, GLfloat * params), + (stage, portion, pname, params)) + +DEFUN_LOCAL_VOID (GetCombinerOutputParameterivNV, + (void *rend, GLenum stage, GLenum portion, GLenum pname, GLint * params), + (stage, portion, pname, params)) + +DEFUN_LOCAL_VOID (GetFinalCombinerInputParameterfvNV, + (void *rend, GLenum variable, GLenum pname, GLfloat * params), + (variable, pname, params)) + +DEFUN_LOCAL_VOID (GetFinalCombinerInputParameterivNV, + (void *rend, GLenum variable, GLenum pname, GLint * params), + (variable, pname, params)) + +DEFUN_EXTERN_VOID (ResizeBuffersMESA, + (), + ()) + +DEFUN_LOCAL_VOID (WindowPos2dMESA, + (void *rend, GLdouble x, GLdouble y), + (x, y)) + +DEFUN_ALIAS_VOID (WindowPos2dMESA, WindowPos2d, + (GLdouble x, GLdouble y), + (x, y)) + +DEFUN_LOCAL_VOID (WindowPos2dvMESA, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_ALIAS_VOID (WindowPos2dvMESA, WindowPos2dv, + (const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (WindowPos2fMESA, + (void *rend, GLfloat x, GLfloat y), + (x, y)) + +DEFUN_ALIAS_VOID (WindowPos2fMESA, WindowPos2f, + (GLfloat x, GLfloat y), + (x, y)) + +DEFUN_LOCAL_VOID (WindowPos2fvMESA, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_ALIAS_VOID (WindowPos2fvMESA, WindowPos2fv, + (const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (WindowPos2iMESA, + (void *rend, GLint x, GLint y), + (x, y)) + +DEFUN_ALIAS_VOID (WindowPos2iMESA, WindowPos2i, + (GLint x, GLint y), + (x, y)) + +DEFUN_LOCAL_VOID (WindowPos2ivMESA, + (void *rend, const GLint * v), + (v)) + +DEFUN_ALIAS_VOID (WindowPos2ivMESA, WindowPos2iv, + (const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (WindowPos2sMESA, + (void *rend, GLshort x, GLshort y), + (x, y)) + +DEFUN_ALIAS_VOID (WindowPos2sMESA, WindowPos2s, + (GLshort x, GLshort y), + (x, y)) + +DEFUN_LOCAL_VOID (WindowPos2svMESA, + (void *rend, const GLshort * v), + (v)) + +DEFUN_ALIAS_VOID (WindowPos2svMESA, WindowPos2sv, + (const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (WindowPos3dMESA, + (void *rend, GLdouble x, GLdouble y, GLdouble z), + (x, y, z)) + +DEFUN_ALIAS_VOID (WindowPos3dMESA, WindowPos3d, + (GLdouble x, GLdouble y, GLdouble z), + (x, y, z)) + +DEFUN_LOCAL_VOID (WindowPos3dvMESA, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_ALIAS_VOID (WindowPos3dvMESA, WindowPos3dv, + (const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (WindowPos3fMESA, + (void *rend, GLfloat x, GLfloat y, GLfloat z), + (x, y, z)) + +DEFUN_ALIAS_VOID (WindowPos3fMESA, WindowPos3f, + (GLfloat x, GLfloat y, GLfloat z), + (x, y, z)) + +DEFUN_LOCAL_VOID (WindowPos3fvMESA, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_ALIAS_VOID (WindowPos3fvMESA, WindowPos3fv, + (const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (WindowPos3iMESA, + (void *rend, GLint x, GLint y, GLint z), + (x, y, z)) + +DEFUN_ALIAS_VOID (WindowPos3iMESA, WindowPos3i, + (GLint x, GLint y, GLint z), + (x, y, z)) + +DEFUN_LOCAL_VOID (WindowPos3ivMESA, + (void *rend, const GLint * v), + (v)) + +DEFUN_ALIAS_VOID (WindowPos3ivMESA, WindowPos3iv, + (const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (WindowPos3sMESA, + (void *rend, GLshort x, GLshort y, GLshort z), + (x, y, z)) + +DEFUN_ALIAS_VOID (WindowPos3sMESA, WindowPos3s, + (GLshort x, GLshort y, GLshort z), + (x, y, z)) + +DEFUN_LOCAL_VOID (WindowPos3svMESA, + (void *rend, const GLshort * v), + (v)) + +DEFUN_ALIAS_VOID (WindowPos3svMESA, WindowPos3sv, + (const GLshort * v), + (v)) + +DEFUN_EXTERN_VOID (WindowPos4dMESA, + (GLdouble x, GLdouble y, GLdouble z, GLdouble w), + (x, y, z, w)) + +DEFUN_EXTERN_VOID (WindowPos4dvMESA, + (const GLdouble * v), + (v)) + +DEFUN_EXTERN_VOID (WindowPos4fMESA, + (GLfloat x, GLfloat y, GLfloat z, GLfloat w), + (x, y, z, w)) + +DEFUN_EXTERN_VOID (WindowPos4fvMESA, + (const GLfloat * v), + (v)) + +DEFUN_EXTERN_VOID (WindowPos4iMESA, + (GLint x, GLint y, GLint z, GLint w), + (x, y, z, w)) + +DEFUN_EXTERN_VOID (WindowPos4ivMESA, + (const GLint * v), + (v)) + +DEFUN_EXTERN_VOID (WindowPos4sMESA, + (GLshort x, GLshort y, GLshort z, GLshort w), + (x, y, z, w)) + +DEFUN_EXTERN_VOID (WindowPos4svMESA, + (const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (BlendFuncSeparateEXT, + (void *rend, GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha), + (sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha)) + +DEFUN_EXTERN_VOID (IndexMaterialEXT, + (GLenum face, GLenum mode), + (face, mode)) + +DEFUN_EXTERN_VOID (IndexFuncEXT, + (GLenum func, GLclampf ref), + (func, ref)) + +DEFUN_LOCAL_VOID (LockArraysEXT, + (void *rend, GLint first, GLsizei count), + (first, count)) + +DEFUN_LOCAL_VOID (UnlockArraysEXT, + (void *rend), + ()) + +DEFUN_EXTERN_VOID (CullParameterdvEXT, + (GLenum pname, GLdouble * params), + (pname, params)) + +DEFUN_EXTERN_VOID (CullParameterfvEXT, + (GLenum pname, GLfloat * params), + (pname, params)) + +DEFUN_EXTERN_VOID (HintPGI, + (GLenum target, GLint mode), + (target, mode)) + +DEFUN_LOCAL_VOID (FogCoordfEXT, + (void *rend, GLfloat coord), + (coord)) + +DEFUN_LOCAL_VOID (FogCoordfvEXT, + (void *rend, const GLfloat * coord), + (coord)) + +DEFUN_LOCAL_VOID (FogCoorddEXT, + (void *rend, GLdouble coord), + (coord)) + +DEFUN_LOCAL_VOID (FogCoorddvEXT, + (void *rend, const GLdouble * coord), + (coord)) + +DEFUN_LOCAL_VOID (FogCoordPointerEXT, + (void *rend, GLenum type, GLsizei stride, const GLvoid * pointer), + (type, stride, pointer)) + +DEFUN_EXTERN_VOID (TbufferMask3DFX, + (GLuint mask), + (mask)) + +DEFUN_LOCAL_VOID (CompressedTexImage3DARB, + (void *rend, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid * data), + (target, level, internalformat, width, height, depth, border, imageSize, data)) + +DEFUN_LOCAL_VOID (CompressedTexImage2DARB, + (void *rend, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data), + (target, level, internalformat, width, height, border, imageSize, data)) + +DEFUN_LOCAL_VOID (CompressedTexImage1DARB, + (void *rend, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid * data), + (target, level, internalformat, width, border, imageSize, data)) + +DEFUN_LOCAL_VOID (CompressedTexSubImage3DARB, + (void *rend, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid * data), + (target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data)) + +DEFUN_LOCAL_VOID (CompressedTexSubImage2DARB, + (void *rend, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data), + (target, level, xoffset, yoffset, width, height, format, imageSize, data)) + +DEFUN_LOCAL_VOID (CompressedTexSubImage1DARB, + (void *rend, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid * data), + (target, level, xoffset, width, format, imageSize, data)) + +DEFUN_LOCAL_VOID (GetCompressedTexImageARB, + (void *rend, GLenum target, GLint level, void * img), + (target, level, img)) + +DEFUN_LOCAL_VOID (SecondaryColor3bEXT, + (void *rend, GLbyte red, GLbyte green, GLbyte blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (SecondaryColor3bvEXT, + (void *rend, const GLbyte * v), + (v)) + +DEFUN_LOCAL_VOID (SecondaryColor3dEXT, + (void *rend, GLdouble red, GLdouble green, GLdouble blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (SecondaryColor3dvEXT, + (void *rend, const GLdouble * v), + (v)) + +DEFUN_LOCAL_VOID (SecondaryColor3fEXT, + (void *rend, GLfloat red, GLfloat green, GLfloat blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (SecondaryColor3fvEXT, + (void *rend, const GLfloat * v), + (v)) + +DEFUN_LOCAL_VOID (SecondaryColor3iEXT, + (void *rend, GLint red, GLint green, GLint blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (SecondaryColor3ivEXT, + (void *rend, const GLint * v), + (v)) + +DEFUN_LOCAL_VOID (SecondaryColor3sEXT, + (void *rend, GLshort red, GLshort green, GLshort blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (SecondaryColor3svEXT, + (void *rend, const GLshort * v), + (v)) + +DEFUN_LOCAL_VOID (SecondaryColor3ubEXT, + (void *rend, GLubyte red, GLubyte green, GLubyte blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (SecondaryColor3ubvEXT, + (void *rend, const GLubyte * v), + (v)) + +DEFUN_LOCAL_VOID (SecondaryColor3uiEXT, + (void *rend, GLuint red, GLuint green, GLuint blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (SecondaryColor3uivEXT, + (void *rend, const GLuint * v), + (v)) + +DEFUN_LOCAL_VOID (SecondaryColor3usEXT, + (void *rend, GLushort red, GLushort green, GLushort blue), + (red, green, blue)) + +DEFUN_LOCAL_VOID (SecondaryColor3usvEXT, + (void *rend, const GLushort * v), + (v)) + +DEFUN_LOCAL_VOID (SecondaryColorPointerEXT, + (void *rend, GLint size, GLenum type, GLsizei stride, const GLvoid * pointer), + (size, type, stride, pointer)) + +DEFUN_EXTERN (GLboolean, AreProgramsResidentNV, + (GLsizei n, const GLuint * ids, GLboolean * residences), + (n, ids, residences)) + +DEFUN_LOCAL_VOID (BindProgramNV, + (void *rend, GLenum target, GLuint id), + (target, id)) + +DEFUN_ALIAS_VOID (BindProgramNV, BindProgramARB, + (GLenum target, GLuint id), + (target, id)) + +DEFUN_LOCAL_VOID (DeleteProgramsNV, + (void *rend, GLsizei n, const GLuint * ids), + (n, ids)) + +DEFUN_ALIAS_VOID (DeleteProgramsNV, DeleteProgramsARB, + (GLsizei n, const GLuint * ids), + (n, ids)) + +DEFUN_EXTERN_VOID (ExecuteProgramNV, + (GLenum target, GLuint id, const GLfloat * params), + (target, id, params)) + +DEFUN_LOCAL_VOID (GenProgramsNV, + (void *rend, GLsizei n, GLuint * ids), + (n, ids)) + +DEFUN_ALIAS_VOID (GenProgramsNV, GenProgramsARB, + (GLsizei n, GLuint * ids), + (n, ids)) + +DEFUN_EXTERN_VOID (GetProgramParameterdvNV, + (GLenum target, GLuint index, GLenum pname, GLdouble * params), + (target, index, pname, params)) + +DEFUN_EXTERN_VOID (GetProgramParameterfvNV, + (GLenum target, GLuint index, GLenum pname, GLfloat * params), + (target, index, pname, params)) + +DEFUN_EXTERN_VOID (GetProgramivNV, + (GLuint id, GLenum pname, GLint * params), + (id, pname, params)) + +DEFUN_EXTERN_VOID (GetProgramStringNV, + (GLuint id, GLenum pname, GLubyte * program), + (id, pname, program)) + +DEFUN_EXTERN_VOID (GetTrackMatrixivNV, + (GLenum target, GLuint address, GLenum pname, GLint * params), + (target, address, pname, params)) + +DEFUN_LOCAL_VOID (GetVertexAttribdvNV, + (void *rend, GLuint index, GLenum pname, GLdouble * params), + (index, pname, params)) + +DEFUN_ALIAS_VOID (GetVertexAttribdvNV, GetVertexAttribdvARB, + (GLuint index, GLenum pname, GLdouble * params), + (index, pname, params)) + +DEFUN_LOCAL_VOID (GetVertexAttribfvNV, + (void *rend, GLuint index, GLenum pname, GLfloat * params), + (index, pname, params)) + +DEFUN_ALIAS_VOID (GetVertexAttribfvNV, GetVertexAttribfvARB, + (GLuint index, GLenum pname, GLfloat * params), + (index, pname, params)) + +DEFUN_LOCAL_VOID (GetVertexAttribivNV, + (void *rend, GLuint index, GLenum pname, GLint * params), + (index, pname, params)) + +DEFUN_ALIAS_VOID (GetVertexAttribivNV, GetVertexAttribivNV, + (GLuint index, GLenum pname, GLint * params), + (index, pname, params)) + +DEFUN_LOCAL_VOID (GetVertexAttribPointervNV, + (void *rend, GLuint index, GLenum pname, GLvoid ** pointer), + (index, pname, pointer)) + +DEFUN_ALIAS_VOID (GetVertexAttribPointervNV, GetVertexAttribPointervARB, + (GLuint index, GLenum pname, GLvoid ** pointer), + (index, pname, pointer)) + +DEFUN_LOCAL (GLboolean, IsProgramNV, + (void *rend, GLuint id), + (id)) + +DEFUN_ALIAS (GLboolean, IsProgramNV, IsProgramARB, + (GLuint id), + (id)) + +DEFUN_EXTERN_VOID (LoadProgramNV, + (GLenum target, GLuint id, GLsizei len, const GLubyte * program), + (target, id, len, program)) + +DEFUN_EXTERN_VOID (ProgramParameter4dNV, + (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w), + (target, index, x, y, z, w)) + +DEFUN_EXTERN_VOID (ProgramParameter4dvNV, + (GLenum target, GLuint index, const GLdouble * params), + (target, index, params)) + +DEFUN_EXTERN_VOID (ProgramParameter4fNV, + (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w), + (target, index, x, y, z, w)) + +DEFUN_EXTERN_VOID (ProgramParameter4fvNV, + (GLenum target, GLuint index, const GLfloat * params), + (target, index, params)) + +DEFUN_EXTERN_VOID (ProgramParameters4dvNV, + (GLenum target, GLuint index, GLuint num, const GLdouble * params), + (target, index, num, params)) + +DEFUN_EXTERN_VOID (ProgramParameters4fvNV, + (GLenum target, GLuint index, GLuint num, const GLfloat * params), + (target, index, num, params)) + +DEFUN_EXTERN_VOID (RequestResidentProgramsNV, + (GLsizei n, const GLuint * ids), + (n, ids)) + +DEFUN_EXTERN_VOID (TrackMatrixNV, + (GLenum target, GLuint address, GLenum matrix, GLenum transform), + (target, address, matrix, transform)) + +DEFUN_EXTERN_VOID (VertexAttribPointerNV, + (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid * pointer), + (index, size, type, stride, pointer)) + +DEFUN_LOCAL_VOID (VertexAttrib1dNV, + (void *rend, GLuint index, GLdouble x), + (index, x)) + +DEFUN_ALIAS_VOID (VertexAttrib1dNV, VertexAttrib1dARB, + (GLuint index, GLdouble x), + (index, x)) + +DEFUN_LOCAL_VOID (VertexAttrib1dvNV, + (void *rend, GLuint index, const GLdouble * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib1dvNV, VertexAttrib1dvARB, + (GLuint index, const GLdouble * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib1fNV, + (void *rend, GLuint index, GLfloat x), + (index, x)) + +DEFUN_ALIAS_VOID (VertexAttrib1fNV, VertexAttrib1fARB, + (GLuint index, GLfloat x), + (index, x)) + +DEFUN_LOCAL_VOID (VertexAttrib1fvNV, + (void *rend, GLuint index, const GLfloat * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib1fvNV, VertexAttrib1fvARB, + (GLuint index, const GLfloat * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib1sNV, + (void *rend, GLuint index, GLshort x), + (index, x)) + +DEFUN_ALIAS_VOID (VertexAttrib1sNV, VertexAttrib1sARB, + (GLuint index, GLshort x), + (index, x)) + +DEFUN_LOCAL_VOID (VertexAttrib1svNV, + (void *rend, GLuint index, const GLshort * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib1svNV, VertexAttrib1svARB, + (GLuint index, const GLshort * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib2dNV, + (void *rend, GLuint index, GLdouble x, GLdouble y), + (index, x, y)) + +DEFUN_ALIAS_VOID (VertexAttrib2dNV, VertexAttrib2dARB, + (GLuint index, GLdouble x, GLdouble y), + (index, x, y)) + +DEFUN_LOCAL_VOID (VertexAttrib2dvNV, + (void *rend, GLuint index, const GLdouble * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib2dvNV, VertexAttrib2dvARB, + (GLuint index, const GLdouble * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib2fNV, + (void *rend, GLuint index, GLfloat x, GLfloat y), + (index, x, y)) + +DEFUN_ALIAS_VOID (VertexAttrib2fNV, VertexAttrib2fARB, + (GLuint index, GLfloat x, GLfloat y), + (index, x, y)) + +DEFUN_LOCAL_VOID (VertexAttrib2fvNV, + (void *rend, GLuint index, const GLfloat * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib2fvNV, VertexAttrib2fvARB, + (GLuint index, const GLfloat * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib2sNV, + (void *rend, GLuint index, GLshort x, GLshort y), + (index, x, y)) + +DEFUN_ALIAS_VOID (VertexAttrib2sNV, VertexAttrib2sARB, + (GLuint index, GLshort x, GLshort y), + (index, x, y)) + +DEFUN_LOCAL_VOID (VertexAttrib2svNV, + (void *rend, GLuint index, const GLshort * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib2svNV, VertexAttrib2svARB, + (GLuint index, const GLshort * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib3dNV, + (void *rend, GLuint index, GLdouble x, GLdouble y, GLdouble z), + (index, x, y, z)) + +DEFUN_ALIAS_VOID (VertexAttrib3dNV, VertexAttrib3dARB, + (GLuint index, GLdouble x, GLdouble y, GLdouble z), + (index, x, y, z)) + +DEFUN_LOCAL_VOID (VertexAttrib3dvNV, + (void *rend, GLuint index, const GLdouble * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib3dvNV, VertexAttrib3dvARB, + (GLuint index, const GLdouble * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib3fNV, + (void *rend, GLuint index, GLfloat x, GLfloat y, GLfloat z), + (index, x, y, z)) + +DEFUN_ALIAS_VOID (VertexAttrib3fNV, VertexAttrib3fARB, + (GLuint index, GLfloat x, GLfloat y, GLfloat z), + (index, x, y, z)) + +DEFUN_LOCAL_VOID (VertexAttrib3fvNV, + (void *rend, GLuint index, const GLfloat * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib3fvNV, VertexAttrib3fvARB, + (GLuint index, const GLfloat * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib3sNV, + (void *rend, GLuint index, GLshort x, GLshort y, GLshort z), + (index, x, y, z)) + +DEFUN_ALIAS_VOID (VertexAttrib3sNV, VertexAttrib3sARB, + (GLuint index, GLshort x, GLshort y, GLshort z), + (index, x, y, z)) + +DEFUN_LOCAL_VOID (VertexAttrib3svNV, + (void *rend, GLuint index, const GLshort * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib3svNV, VertexAttrib3svARB, + (GLuint index, const GLshort * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4dNV, + (void *rend, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w), + (index, x, y, z, w)) + +DEFUN_ALIAS_VOID (VertexAttrib4dNV, VertexAttrib4dARB, + (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w), + (index, x, y, z, w)) + +DEFUN_LOCAL_VOID (VertexAttrib4dvNV, + (void *rend, GLuint index, const GLdouble * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib4dvNV, VertexAttrib4dvARB, + (GLuint index, const GLdouble * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4fNV, + (void *rend, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w), + (index, x, y, z, w)) + +DEFUN_ALIAS_VOID (VertexAttrib4fNV, VertexAttrib4fARB, + (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w), + (index, x, y, z, w)) + +DEFUN_LOCAL_VOID (VertexAttrib4fvNV, + (void *rend, GLuint index, const GLfloat * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib4fvNV, VertexAttrib4fvARB, + (GLuint index, const GLfloat * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4sNV, + (void *rend, GLuint index, GLshort x, GLshort y, GLshort z, GLshort w), + (index, x, y, z, w)) + +DEFUN_ALIAS_VOID (VertexAttrib4sNV, VertexAttrib4sARB, + (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w), + (index, x, y, z, w)) + +DEFUN_LOCAL_VOID (VertexAttrib4svNV, + (void *rend, GLuint index, const GLshort * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib4svNV, VertexAttrib4svARB, + (GLuint index, const GLshort * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4ubNV, + (void *rend, GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w), + (index, x, y, z, w)) + +DEFUN_ALIAS_VOID (VertexAttrib4ubNV, VertexAttrib4NubARB, + (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w), + (index, x, y, z, w)) + +DEFUN_LOCAL_VOID (VertexAttrib4ubvNV, + (void *rend, GLuint index, const GLubyte * v), + (index, v)) + +DEFUN_ALIAS_VOID (VertexAttrib4ubvNV, VertexAttrib4ubvARB, + (GLuint index, const GLubyte * v), + (index, v)) + +DEFUN_EXTERN_VOID (VertexAttribs1dvNV, + (GLuint index, GLsizei n, const GLdouble * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs1fvNV, + (GLuint index, GLsizei n, const GLfloat * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs1svNV, + (GLuint index, GLsizei n, const GLshort * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs2dvNV, + (GLuint index, GLsizei n, const GLdouble * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs2fvNV, + (GLuint index, GLsizei n, const GLfloat * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs2svNV, + (GLuint index, GLsizei n, const GLshort * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs3dvNV, + (GLuint index, GLsizei n, const GLdouble * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs3fvNV, + (GLuint index, GLsizei n, const GLfloat * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs3svNV, + (GLuint index, GLsizei n, const GLshort * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs4dvNV, + (GLuint index, GLsizei n, const GLdouble * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs4fvNV, + (GLuint index, GLsizei n, const GLfloat * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs4svNV, + (GLuint index, GLsizei n, const GLshort * v), + (index, n, v)) + +DEFUN_EXTERN_VOID (VertexAttribs4ubvNV, + (GLuint index, GLsizei n, const GLubyte * v), + (index, n, v)) + +DEFUN_LOCAL_VOID (PointParameteriNV, + (void *rend, GLenum pname, GLint params), + (pname, params)) + +DEFUN_LOCAL_VOID (PointParameterivNV, + (void *rend, GLenum pname, const GLint * params), + (pname, params)) + +DEFUN_LOCAL_VOID (MultiDrawArraysEXT, + (void *rend, GLenum mode, GLint * first, GLsizei * count, GLsizei primcount), + (mode, first, count, primcount)) + +DEFUN_LOCAL_VOID (MultiDrawElementsEXT, + (void *rend, GLenum mode, const GLsizei * count, GLenum type, const GLvoid ** indices, GLsizei primcount), + (mode, count, type, indices, primcount)) + +DEFUN_LOCAL_VOID (ActiveStencilFaceEXT, + (void *rend, GLenum face), + (face)) + +DEFUN_EXTERN_VOID (DeleteFencesNV, + (GLsizei n, const GLuint * fences), + (n, fences)) + +DEFUN_EXTERN_VOID (GenFencesNV, + (GLsizei n, GLuint * fences), + (n, fences)) + +DEFUN_EXTERN (GLboolean, IsFenceNV, + (GLuint fence), + (fence)) + +DEFUN_EXTERN (GLboolean, TestFenceNV, + (GLuint fence), + (fence)) + +DEFUN_EXTERN_VOID (GetFenceivNV, + (GLuint fence, GLenum pname, GLint * params), + (fence, pname, params)) + +DEFUN_EXTERN_VOID (FinishFenceNV, + (GLuint fence), + (fence)) + +DEFUN_EXTERN_VOID (SetFenceNV, + (GLuint fence, GLenum condition), + (fence, condition)) + +DEFUN_LOCAL_VOID (VertexAttrib4bvARB, + (void *rend, GLuint index, const GLbyte * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4ivARB, + (void *rend, GLuint index, const GLint * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4ubvARB, + (void *rend, GLuint index, const GLubyte * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4usvARB, + (void *rend, GLuint index, const GLushort * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4uivARB, + (void *rend, GLuint index, const GLuint * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4NbvARB, + (void *rend, GLuint index, const GLbyte * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4NsvARB, + (void *rend, GLuint index, const GLshort * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4NivARB, + (void *rend, GLuint index, const GLint * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4NusvARB, + (void *rend, GLuint index, const GLushort * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttrib4NuivARB, + (void *rend, GLuint index, const GLuint * v), + (index, v)) + +DEFUN_LOCAL_VOID (VertexAttribPointerARB, + (void *rend, GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * pointer), + (index, size, type, normalized, stride, pointer)) + +DEFUN_LOCAL_VOID (EnableVertexAttribArrayARB, + (void *rend, GLuint index), + (index)) + +DEFUN_LOCAL_VOID (DisableVertexAttribArrayARB, + (void *rend, GLuint index), + (index)) + +DEFUN_LOCAL_VOID (ProgramStringARB, + (void *rend, GLenum target, GLenum format, GLsizei len, const GLvoid * string), + (target, format, len, string)) + +DEFUN_LOCAL_VOID (ProgramEnvParameter4dARB, + (void *rend, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w), + (target, index, x, y, z, w)) + +DEFUN_LOCAL_VOID (ProgramEnvParameter4dvARB, + (void *rend, GLenum target, GLuint index, const GLdouble * params), + (target, index, params)) + +DEFUN_LOCAL_VOID (ProgramEnvParameter4fARB, + (void *rend, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w), + (target, index, x, y, z, w)) + +DEFUN_LOCAL_VOID (ProgramEnvParameter4fvARB, + (void *rend, GLenum target, GLuint index, const GLfloat * params), + (target, index, params)) + +DEFUN_LOCAL_VOID (ProgramLocalParameter4dARB, + (void *rend, GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w), + (target, index, x, y, z, w)) + +DEFUN_LOCAL_VOID (ProgramLocalParameter4dvARB, + (void *rend, GLenum target, GLuint index, const GLdouble * params), + (target, index, params)) + +DEFUN_LOCAL_VOID (ProgramLocalParameter4fARB, + (void *rend, GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w), + (target, index, x, y, z, w)) + +DEFUN_LOCAL_VOID (ProgramLocalParameter4fvARB, + (void *rend, GLenum target, GLuint index, const GLfloat * params), + (target, index, params)) + +DEFUN_LOCAL_VOID (GetProgramEnvParameterdvARB, + (void *rend, GLenum target, GLuint index, GLdouble * params), + (target, index, params)) + +DEFUN_LOCAL_VOID (GetProgramEnvParameterfvARB, + (void *rend, GLenum target, GLuint index, GLfloat * params), + (target, index, params)) + +DEFUN_LOCAL_VOID (GetProgramLocalParameterdvARB, + (void *rend, GLenum target, GLuint index, GLdouble * params), + (target, index, params)) + +DEFUN_LOCAL_VOID (GetProgramLocalParameterfvARB, + (void *rend, GLenum target, GLuint index, GLfloat * params), + (target, index, params)) + +DEFUN_LOCAL_VOID (GetProgramivARB, + (void *rend, GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_LOCAL_VOID (GetProgramStringARB, + (void *rend, GLenum target, GLenum pname, GLvoid * string), + (target, pname, string)) + +DEFUN_EXTERN_VOID (ProgramNamedParameter4fNV, + (GLuint id, GLsizei len, const GLubyte * name, GLfloat x, GLfloat y, GLfloat z, GLfloat w), + (id, len, name, x, y, z, w)) + +DEFUN_EXTERN_VOID (ProgramNamedParameter4dNV, + (GLuint id, GLsizei len, const GLubyte * name, GLdouble x, GLdouble y, GLdouble z, GLdouble w), + (id, len, name, x, y, z, w)) + +DEFUN_EXTERN_VOID (ProgramNamedParameter4fvNV, + (GLuint id, GLsizei len, const GLubyte * name, const GLfloat * v), + (id, len, name, v)) + +DEFUN_EXTERN_VOID (ProgramNamedParameter4dvNV, + (GLuint id, GLsizei len, const GLubyte * name, const GLdouble * v), + (id, len, name, v)) + +DEFUN_EXTERN_VOID (GetProgramNamedParameterfvNV, + (GLuint id, GLsizei len, const GLubyte * name, GLfloat * params), + (id, len, name, params)) + +DEFUN_EXTERN_VOID (GetProgramNamedParameterdvNV, + (GLuint id, GLsizei len, const GLubyte * name, GLdouble * params), + (id, len, name, params)) + +#if OSVERSION < 704 /* Mac OS X 10.3.4 */ + +DEFUN_EXTERN_VOID (BindBufferARB, + (GLenum target, GLuint buffer), + (target, buffer)) + +DEFUN_EXTERN_VOID (BufferDataARB, + (GLenum target, GLsizeiptrARB size, const GLvoid * data, GLenum usage), + (target, size, data, usage)) + +DEFUN_EXTERN_VOID (BufferSubDataARB, + (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid * data), + (target, offset, size, data)) + +DEFUN_EXTERN_VOID (DeleteBuffersARB, + (GLsizei n, const GLuint * buffer), + (n, buffer)) + +DEFUN_EXTERN_VOID (GenBuffersARB, + (GLsizei n, GLuint * buffer), + (n, buffer)) + +DEFUN_EXTERN_VOID (GetBufferParameterivARB, + (GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_EXTERN_VOID (GetBufferPointervARB, + (GLenum target, GLenum pname, GLvoid ** params), + (target, pname, params)) + +DEFUN_EXTERN_VOID (GetBufferSubDataARB, + (GLenum target, GLintptrARB offset, GLsizeiptrARB size, void * data), + (target, offset, size, data)) + +DEFUN_EXTERN (GLboolean, IsBufferARB, + (GLuint buffer), + (buffer)) + +DEFUN_EXTERN (void*, MapBufferARB, + (GLenum target, GLenum access), + (target, access)) + +DEFUN_EXTERN (GLboolean, UnmapBufferARB, + (GLenum target), + (target)) + +DEFUN_EXTERN_VOID (DepthBoundsEXT, + (GLclampd zmin, GLclampd zmax), + (zmin, zmax)) + +#endif /* OSVERSION < 704 */ + +#if OSVERSION < 700 /* Mac OS X 10.3.0 */ + +DEFUN_EXTERN_VOID (GenQueriesARB, + (GLsizei n, GLuint * ids), + (n, ids)) + +DEFUN_EXTERN_VOID (DeleteQueriesARB, + (GLsizei n, const GLuint * ids), + (n, ids)) + +DEFUN_EXTERN (GLboolean, IsQueryARB, + (GLuint id), + (id)) + +DEFUN_EXTERN_VOID (BeginQueryARB, + (GLenum target, GLuint id), + (target, id)) + +DEFUN_EXTERN_VOID (EndQueryARB, + (GLenum target), + (target)) + +DEFUN_EXTERN_VOID (GetQueryivARB, + (GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_EXTERN_VOID (GetQueryObjectivARB, + (GLuint id, GLenum pname, GLint * params), + (id, pname, params)) + +DEFUN_EXTERN_VOID (GetQueryObjectuivARB, + (GLuint id, GLenum pname, GLuint * params), + (id, pname, params)) + +#endif /* OSVERSION < 700 */ + +DEFUN_EXTERN_VOID (MultiModeDrawArraysIBM, + (const GLenum * mode, const GLint * first, const GLsizei * count, GLsizei primcount, GLint modestride), + (mode, first, count, primcount, modestride)) + +DEFUN_EXTERN_VOID (MultiModeDrawElementsIBM, + (const GLenum * mode, const GLsizei * count, GLenum type, const GLvoid * const * indices, GLsizei primcount, GLint modestride), + (mode, count, type, indices, primcount, modestride)) + +DEFUN_LOCAL_VOID (BlendEquationSeparateEXT, + (void *rend, GLenum modeRGB, GLenum modeA), + (modeRGB, modeA)) + +#if OSVERSION < 704 + +DEFUN_ALIAS_VOID (BlendEquationSeparateEXT, BlendEquationSeparateATI, + (GLenum modeRGB, GLenum modeA), + (modeRGB, modeA)) + +#endif /* OSVERSION < 704 */ + +DEFUN_ALIAS_VOID (ArrayElementEXT, ArrayElement, + (GLint i), + (i)) + +DEFUN_ALIAS_VOID (BindTextureEXT, BindTexture, + (GLenum target, GLuint texture), + (target, texture)) + +DEFUN_ALIAS_VOID (BlendFuncSeparateINGR, BlendFuncSeparateEXT, + (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha), + (sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha)) + +DEFUN_ALIAS_VOID (ColorTableParameterfvSGI, ColorTableParameterfv, + (GLenum target, GLenum pname, const GLfloat * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (ColorTableParameterivSGI, ColorTableParameteriv, + (GLenum target, GLenum pname, const GLint * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (ColorTableSGI, ColorTable, + (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * table), + (target, internalformat, width, format, type, table)) + +DEFUN_ALIAS_VOID (ConvolutionFilter1DEXT, ConvolutionFilter1D, + (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid * image), + (target, internalformat, width, format, type, image)) + +DEFUN_ALIAS_VOID (ConvolutionFilter2DEXT, ConvolutionFilter2D, + (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * image), + (target, internalformat, width, height, format, type, image)) + +DEFUN_ALIAS_VOID (ConvolutionParameterfEXT, ConvolutionParameterf, + (GLenum target, GLenum pname, GLfloat params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (ConvolutionParameterfvEXT, ConvolutionParameterfv, + (GLenum target, GLenum pname, const GLfloat * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (ConvolutionParameteriEXT, ConvolutionParameteri, + (GLenum target, GLenum pname, GLint params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (ConvolutionParameterivEXT, ConvolutionParameteriv, + (GLenum target, GLenum pname, const GLint * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (CopyColorSubTableEXT, CopyColorSubTable, + (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width), + (target, start, x, y, width)) + +DEFUN_ALIAS_VOID (CopyColorTableSGI, CopyColorTable, + (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width), + (target, internalformat, x, y, width)) + +DEFUN_ALIAS_VOID (CopyConvolutionFilter1DEXT, CopyConvolutionFilter1D, + (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width), + (target, internalformat, x, y, width)) + +DEFUN_ALIAS_VOID (CopyConvolutionFilter2DEXT, CopyConvolutionFilter2D, + (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height), + (target, internalformat, x, y, width, height)) + +DEFUN_ALIAS_VOID (CopyTexImage1DEXT, CopyTexImage1D, + (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border), + (target, level, internalformat, x, y, width, border)) + +DEFUN_ALIAS_VOID (CopyTexImage2DEXT, CopyTexImage2D, + (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border), + (target, level, internalformat, x, y, width, height, border)) + +DEFUN_ALIAS_VOID (CopyTexSubImage1DEXT, CopyTexSubImage1D, + (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width), + (target, level, xoffset, x, y, width)) + +DEFUN_ALIAS_VOID (CopyTexSubImage2DEXT, CopyTexSubImage2D, + (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height), + (target, level, xoffset, yoffset, x, y, width, height)) + +DEFUN_ALIAS_VOID (CopyTexSubImage3DEXT, CopyTexSubImage3D, + (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height), + (target, level, xoffset, yoffset, zoffset, x, y, width, height)) + +DEFUN_ALIAS_VOID (DeleteTexturesEXT, DeleteTextures, + (GLsizei n, const GLuint *textures), + (n, textures)) + +DEFUN_ALIAS_VOID (DrawArraysEXT, DrawArrays, + (GLenum mode, GLint first, GLsizei count), + (mode, first, count)) + +DEFUN_ALIAS_VOID (GetPointervEXT, GetPointerv, + (GLenum pname, GLvoid * * params), + (pname, params)) + +DEFUN_ALIAS_VOID (HistogramEXT, Histogram, + (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink), + (target, width, internalformat, sink)) + +DEFUN_ALIAS_VOID (MinmaxEXT, Minmax, + (GLenum target, GLenum internalformat, GLboolean sink), + (target, internalformat, sink)) + +DEFUN_ALIAS_VOID (PointParameterfSGIS, PointParameterf, + (GLenum pname, GLfloat param), + (pname, param)) + +DEFUN_ALIAS_VOID (PointParameterfvSGIS, PointParameterfv, + (GLenum pname, const GLfloat * params), + (pname, params)) + +DEFUN_ALIAS_VOID (PointParameteri, PointParameteriNV, + (GLenum pname, GLint params), + (pname, params)) + +DEFUN_ALIAS_VOID (PointParameteriv, PointParameterivNV, + (GLenum pname, const GLint * params), + (pname, params)) + +DEFUN_ALIAS_VOID (PrioritizeTexturesEXT, PrioritizeTextures, + (GLsizei n, const GLenum * textures, const GLclampf * priorities), + (n, textures, priorities)) + +DEFUN_ALIAS_VOID (ResetHistogramEXT, ResetHistogram, + (GLenum target), + (target)) + +DEFUN_ALIAS_VOID (ResetMinmaxEXT, ResetMinmax, + (GLenum target), + (target)) + +DEFUN_ALIAS_VOID (SampleMaskEXT, SampleMaskSGIS, + (GLclampf value, GLboolean invert), + (value, invert)) + +DEFUN_ALIAS_VOID (SamplePatternEXT, SamplePatternSGIS, + (GLenum pattern), + (pattern)) + +DEFUN_ALIAS_VOID (SeparableFilter2DEXT, SeparableFilter2D, + (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * row, const GLvoid * column), + (target, internalformat, width, height, format, type, row, column)) + +DEFUN_ALIAS_VOID (TexImage3DEXT, TexImage3D, + (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, internalformat, width, height, depth, border, format, type, pixels)) + +DEFUN_ALIAS_VOID (TexSubImage1DEXT, TexSubImage1D, + (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, xoffset, width, format, type, pixels)) + +DEFUN_ALIAS_VOID (TexSubImage2DEXT, TexSubImage2D, + (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, xoffset, yoffset, width, height, format, type, pixels)) + +DEFUN_ALIAS_VOID (TexSubImage3DEXT, TexSubImage3D, + (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid * pixels), + (target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels)) + +#if OSVERSION < 704 + +DEFUN_ALIAS_VOID (BindBuffer, BindBufferARB, + (GLenum target, GLuint buffer), + (target, buffer)) + +DEFUN_ALIAS_VOID (BufferData, BufferDataARB, + (GLenum target, GLsizeiptrARB size, const GLvoid * data, GLenum usage), + (target, size, data, usage)) + +DEFUN_ALIAS_VOID (BufferSubData, BufferSubDataARB, + (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid * data), + (target, offset, size, data)) + +DEFUN_ALIAS_VOID (DeleteBuffers, DeleteBuffersARB, + (GLsizei n, const GLuint * buffer), + (n, buffer)) + +DEFUN_ALIAS_VOID (GenBuffers, GenBuffersARB, + (GLsizei n, GLuint * buffer), + (n, buffer)) + +DEFUN_ALIAS_VOID (GetBufferParameteriv, GetBufferParameterivARB, + (GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (GetBufferPointerv, GetBufferPointervARB, + (GLenum target, GLenum pname, GLvoid ** params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (GetBufferSubData, GetBufferSubDataARB, + (GLenum target, GLintptrARB offset, GLsizeiptrARB size, void * data), + (target, offset, size, data)) + +DEFUN_ALIAS (GLboolean, IsBuffer, IsBufferARB, + (GLuint buffer), + (buffer)) + +DEFUN_ALIAS (void*, MapBuffer, MapBufferARB, + (GLenum target, GLenum access), + (target, access)) + +DEFUN_ALIAS (GLboolean, UnmapBuffer, UnmapBufferARB, + (GLenum target), + (target)) + +#endif /* OSVERSION < 704 */ + +#if OSVERSION < 700 /* Mac OS X 10.3.0 */ + +DEFUN_ALIAS_VOID (GenQueries, GenQueriesARB, + (GLsizei n, GLuint * ids), + (n, ids)) + +DEFUN_ALIAS_VOID (DeleteQueries, DeleteQueriesARB, + (GLsizei n, const GLuint * ids), + (n, ids)) + +DEFUN_ALIAS (GLboolean, IsQuery, IsQueryARB, + (GLuint id), + (id)) + +DEFUN_ALIAS_VOID (BeginQuery, BeginQueryARB, + (GLenum target, GLuint id), + (target, id)) + +DEFUN_ALIAS_VOID (EndQuery, EndQueryARB, + (GLenum target), + (target)) + +DEFUN_ALIAS_VOID (GetQueryiv, GetQueryivARB, + (GLenum target, GLenum pname, GLint * params), + (target, pname, params)) + +DEFUN_ALIAS_VOID (GetQueryObjectiv, GetQueryObjectivARB, + (GLuint id, GLenum pname, GLint * params), + (id, pname, params)) + +DEFUN_ALIAS_VOID (GetQueryObjectuiv, GetQueryObjectuivARB, + (GLuint id, GLenum pname, GLuint * params), + (id, pname, params)) + +#endif /* OSVERSION < 700 */ + +#define INDIRECT_DISPATCH_INIT(d,p) \ +do { \ + (d)[0] = (void *) &p ## Accum; \ + (d)[1] = (void *) &p ## AlphaFunc; \ + (d)[2] = (void *) &p ## AreTexturesResident; \ + (d)[3] = (void *) &p ## ArrayElement; \ + (d)[4] = (void *) &p ## Begin; \ + (d)[5] = (void *) &p ## BindTexture; \ + (d)[6] = (void *) &p ## Bitmap; \ + (d)[7] = (void *) &p ## BlendFunc; \ + (d)[8] = (void *) &p ## CallList; \ + (d)[9] = (void *) &p ## CallLists; \ + (d)[10] = (void *) &p ## Clear; \ + (d)[11] = (void *) &p ## ClearAccum; \ + (d)[12] = (void *) &p ## ClearColor; \ + (d)[13] = (void *) &p ## ClearDepth; \ + (d)[14] = (void *) &p ## ClearIndex; \ + (d)[15] = (void *) &p ## ClearStencil; \ + (d)[16] = (void *) &p ## ClipPlane; \ + (d)[17] = (void *) &p ## Color3b; \ + (d)[18] = (void *) &p ## Color3bv; \ + (d)[19] = (void *) &p ## Color3d; \ + (d)[20] = (void *) &p ## Color3dv; \ + (d)[21] = (void *) &p ## Color3f; \ + (d)[22] = (void *) &p ## Color3fv; \ + (d)[23] = (void *) &p ## Color3i; \ + (d)[24] = (void *) &p ## Color3iv; \ + (d)[25] = (void *) &p ## Color3s; \ + (d)[26] = (void *) &p ## Color3sv; \ + (d)[27] = (void *) &p ## Color3ub; \ + (d)[28] = (void *) &p ## Color3ubv; \ + (d)[29] = (void *) &p ## Color3ui; \ + (d)[30] = (void *) &p ## Color3uiv; \ + (d)[31] = (void *) &p ## Color3us; \ + (d)[32] = (void *) &p ## Color3usv; \ + (d)[33] = (void *) &p ## Color4b; \ + (d)[34] = (void *) &p ## Color4bv; \ + (d)[35] = (void *) &p ## Color4d; \ + (d)[36] = (void *) &p ## Color4dv; \ + (d)[37] = (void *) &p ## Color4f; \ + (d)[38] = (void *) &p ## Color4fv; \ + (d)[39] = (void *) &p ## Color4i; \ + (d)[40] = (void *) &p ## Color4iv; \ + (d)[41] = (void *) &p ## Color4s; \ + (d)[42] = (void *) &p ## Color4sv; \ + (d)[43] = (void *) &p ## Color4ub; \ + (d)[44] = (void *) &p ## Color4ubv; \ + (d)[45] = (void *) &p ## Color4ui; \ + (d)[46] = (void *) &p ## Color4uiv; \ + (d)[47] = (void *) &p ## Color4us; \ + (d)[48] = (void *) &p ## Color4usv; \ + (d)[49] = (void *) &p ## ColorMask; \ + (d)[50] = (void *) &p ## ColorMaterial; \ + (d)[51] = (void *) &p ## ColorPointer; \ + (d)[52] = (void *) &p ## CopyPixels; \ + (d)[53] = (void *) &p ## CopyTexImage1D; \ + (d)[54] = (void *) &p ## CopyTexImage2D; \ + (d)[55] = (void *) &p ## CopyTexSubImage1D; \ + (d)[56] = (void *) &p ## CopyTexSubImage2D; \ + (d)[57] = (void *) &p ## CullFace; \ + (d)[58] = (void *) &p ## DeleteLists; \ + (d)[59] = (void *) &p ## DeleteTextures; \ + (d)[60] = (void *) &p ## DepthFunc; \ + (d)[61] = (void *) &p ## DepthMask; \ + (d)[62] = (void *) &p ## DepthRange; \ + (d)[63] = (void *) &p ## Disable; \ + (d)[64] = (void *) &p ## DisableClientState; \ + (d)[65] = (void *) &p ## DrawArrays; \ + (d)[66] = (void *) &p ## DrawBuffer; \ + (d)[67] = (void *) &p ## DrawElements; \ + (d)[68] = (void *) &p ## DrawPixels; \ + (d)[69] = (void *) &p ## EdgeFlag; \ + (d)[70] = (void *) &p ## EdgeFlagPointer; \ + (d)[71] = (void *) &p ## EdgeFlagv; \ + (d)[72] = (void *) &p ## Enable; \ + (d)[73] = (void *) &p ## EnableClientState; \ + (d)[74] = (void *) &p ## End; \ + (d)[75] = (void *) &p ## EndList; \ + (d)[76] = (void *) &p ## EvalCoord1d; \ + (d)[77] = (void *) &p ## EvalCoord1dv; \ + (d)[78] = (void *) &p ## EvalCoord1f; \ + (d)[79] = (void *) &p ## EvalCoord1fv; \ + (d)[80] = (void *) &p ## EvalCoord2d; \ + (d)[81] = (void *) &p ## EvalCoord2dv; \ + (d)[82] = (void *) &p ## EvalCoord2f; \ + (d)[83] = (void *) &p ## EvalCoord2fv; \ + (d)[84] = (void *) &p ## EvalMesh1; \ + (d)[85] = (void *) &p ## EvalMesh2; \ + (d)[86] = (void *) &p ## EvalPoint1; \ + (d)[87] = (void *) &p ## EvalPoint2; \ + (d)[88] = (void *) &p ## FeedbackBuffer; \ + (d)[89] = (void *) &p ## Finish; \ + (d)[90] = (void *) &p ## Flush; \ + (d)[91] = (void *) &p ## Fogf; \ + (d)[92] = (void *) &p ## Fogfv; \ + (d)[93] = (void *) &p ## Fogi; \ + (d)[94] = (void *) &p ## Fogiv; \ + (d)[95] = (void *) &p ## FrontFace; \ + (d)[96] = (void *) &p ## Frustum; \ + (d)[97] = (void *) &p ## GenLists; \ + (d)[98] = (void *) &p ## GenTextures; \ + (d)[99] = (void *) &p ## GetBooleanv; \ + (d)[100] = (void *) &p ## GetClipPlane; \ + (d)[101] = (void *) &p ## GetDoublev; \ + (d)[102] = (void *) &p ## GetError; \ + (d)[103] = (void *) &p ## GetFloatv; \ + (d)[104] = (void *) &p ## GetIntegerv; \ + (d)[105] = (void *) &p ## GetLightfv; \ + (d)[106] = (void *) &p ## GetLightiv; \ + (d)[107] = (void *) &p ## GetMapdv; \ + (d)[108] = (void *) &p ## GetMapfv; \ + (d)[109] = (void *) &p ## GetMapiv; \ + (d)[110] = (void *) &p ## GetMaterialfv; \ + (d)[111] = (void *) &p ## GetMaterialiv; \ + (d)[112] = (void *) &p ## GetPixelMapfv; \ + (d)[113] = (void *) &p ## GetPixelMapuiv; \ + (d)[114] = (void *) &p ## GetPixelMapusv; \ + (d)[115] = (void *) &p ## GetPointerv; \ + (d)[116] = (void *) &p ## GetPolygonStipple; \ + (d)[117] = (void *) &p ## GetString; \ + (d)[118] = (void *) &p ## GetTexEnvfv; \ + (d)[119] = (void *) &p ## GetTexEnviv; \ + (d)[120] = (void *) &p ## GetTexGendv; \ + (d)[121] = (void *) &p ## GetTexGenfv; \ + (d)[122] = (void *) &p ## GetTexGeniv; \ + (d)[123] = (void *) &p ## GetTexImage; \ + (d)[124] = (void *) &p ## GetTexLevelParameterfv; \ + (d)[125] = (void *) &p ## GetTexLevelParameteriv; \ + (d)[126] = (void *) &p ## GetTexParameterfv; \ + (d)[127] = (void *) &p ## GetTexParameteriv; \ + (d)[128] = (void *) &p ## Hint; \ + (d)[129] = (void *) &p ## IndexMask; \ + (d)[130] = (void *) &p ## IndexPointer; \ + (d)[131] = (void *) &p ## Indexd; \ + (d)[132] = (void *) &p ## Indexdv; \ + (d)[133] = (void *) &p ## Indexf; \ + (d)[134] = (void *) &p ## Indexfv; \ + (d)[135] = (void *) &p ## Indexi; \ + (d)[136] = (void *) &p ## Indexiv; \ + (d)[137] = (void *) &p ## Indexs; \ + (d)[138] = (void *) &p ## Indexsv; \ + (d)[139] = (void *) &p ## Indexub; \ + (d)[140] = (void *) &p ## Indexubv; \ + (d)[141] = (void *) &p ## InitNames; \ + (d)[142] = (void *) &p ## InterleavedArrays; \ + (d)[143] = (void *) &p ## IsEnabled; \ + (d)[144] = (void *) &p ## IsList; \ + (d)[145] = (void *) &p ## IsTexture; \ + (d)[146] = (void *) &p ## LightModelf; \ + (d)[147] = (void *) &p ## LightModelfv; \ + (d)[148] = (void *) &p ## LightModeli; \ + (d)[149] = (void *) &p ## LightModeliv; \ + (d)[150] = (void *) &p ## Lightf; \ + (d)[151] = (void *) &p ## Lightfv; \ + (d)[152] = (void *) &p ## Lighti; \ + (d)[153] = (void *) &p ## Lightiv; \ + (d)[154] = (void *) &p ## LineStipple; \ + (d)[155] = (void *) &p ## LineWidth; \ + (d)[156] = (void *) &p ## ListBase; \ + (d)[157] = (void *) &p ## LoadIdentity; \ + (d)[158] = (void *) &p ## LoadMatrixd; \ + (d)[159] = (void *) &p ## LoadMatrixf; \ + (d)[160] = (void *) &p ## LoadName; \ + (d)[161] = (void *) &p ## LogicOp; \ + (d)[162] = (void *) &p ## Map1d; \ + (d)[163] = (void *) &p ## Map1f; \ + (d)[164] = (void *) &p ## Map2d; \ + (d)[165] = (void *) &p ## Map2f; \ + (d)[166] = (void *) &p ## MapGrid1d; \ + (d)[167] = (void *) &p ## MapGrid1f; \ + (d)[168] = (void *) &p ## MapGrid2d; \ + (d)[169] = (void *) &p ## MapGrid2f; \ + (d)[170] = (void *) &p ## Materialf; \ + (d)[171] = (void *) &p ## Materialfv; \ + (d)[172] = (void *) &p ## Materiali; \ + (d)[173] = (void *) &p ## Materialiv; \ + (d)[174] = (void *) &p ## MatrixMode; \ + (d)[175] = (void *) &p ## MultMatrixd; \ + (d)[176] = (void *) &p ## MultMatrixf; \ + (d)[177] = (void *) &p ## NewList; \ + (d)[178] = (void *) &p ## Normal3b; \ + (d)[179] = (void *) &p ## Normal3bv; \ + (d)[180] = (void *) &p ## Normal3d; \ + (d)[181] = (void *) &p ## Normal3dv; \ + (d)[182] = (void *) &p ## Normal3f; \ + (d)[183] = (void *) &p ## Normal3fv; \ + (d)[184] = (void *) &p ## Normal3i; \ + (d)[185] = (void *) &p ## Normal3iv; \ + (d)[186] = (void *) &p ## Normal3s; \ + (d)[187] = (void *) &p ## Normal3sv; \ + (d)[188] = (void *) &p ## NormalPointer; \ + (d)[189] = (void *) &p ## Ortho; \ + (d)[190] = (void *) &p ## PassThrough; \ + (d)[191] = (void *) &p ## PixelMapfv; \ + (d)[192] = (void *) &p ## PixelMapuiv; \ + (d)[193] = (void *) &p ## PixelMapusv; \ + (d)[194] = (void *) &p ## PixelStoref; \ + (d)[195] = (void *) &p ## PixelStorei; \ + (d)[196] = (void *) &p ## PixelTransferf; \ + (d)[197] = (void *) &p ## PixelTransferi; \ + (d)[198] = (void *) &p ## PixelZoom; \ + (d)[199] = (void *) &p ## PointSize; \ + (d)[200] = (void *) &p ## PolygonMode; \ + (d)[201] = (void *) &p ## PolygonOffset; \ + (d)[202] = (void *) &p ## PolygonStipple; \ + (d)[203] = (void *) &p ## PopAttrib; \ + (d)[204] = (void *) &p ## PopClientAttrib; \ + (d)[205] = (void *) &p ## PopMatrix; \ + (d)[206] = (void *) &p ## PopName; \ + (d)[207] = (void *) &p ## PrioritizeTextures; \ + (d)[208] = (void *) &p ## PushAttrib; \ + (d)[209] = (void *) &p ## PushClientAttrib; \ + (d)[210] = (void *) &p ## PushMatrix; \ + (d)[211] = (void *) &p ## PushName; \ + (d)[212] = (void *) &p ## RasterPos2d; \ + (d)[213] = (void *) &p ## RasterPos2dv; \ + (d)[214] = (void *) &p ## RasterPos2f; \ + (d)[215] = (void *) &p ## RasterPos2fv; \ + (d)[216] = (void *) &p ## RasterPos2i; \ + (d)[217] = (void *) &p ## RasterPos2iv; \ + (d)[218] = (void *) &p ## RasterPos2s; \ + (d)[219] = (void *) &p ## RasterPos2sv; \ + (d)[220] = (void *) &p ## RasterPos3d; \ + (d)[221] = (void *) &p ## RasterPos3dv; \ + (d)[222] = (void *) &p ## RasterPos3f; \ + (d)[223] = (void *) &p ## RasterPos3fv; \ + (d)[224] = (void *) &p ## RasterPos3i; \ + (d)[225] = (void *) &p ## RasterPos3iv; \ + (d)[226] = (void *) &p ## RasterPos3s; \ + (d)[227] = (void *) &p ## RasterPos3sv; \ + (d)[228] = (void *) &p ## RasterPos4d; \ + (d)[229] = (void *) &p ## RasterPos4dv; \ + (d)[230] = (void *) &p ## RasterPos4f; \ + (d)[231] = (void *) &p ## RasterPos4fv; \ + (d)[232] = (void *) &p ## RasterPos4i; \ + (d)[233] = (void *) &p ## RasterPos4iv; \ + (d)[234] = (void *) &p ## RasterPos4s; \ + (d)[235] = (void *) &p ## RasterPos4sv; \ + (d)[236] = (void *) &p ## ReadBuffer; \ + (d)[237] = (void *) &p ## ReadPixels; \ + (d)[238] = (void *) &p ## Rectd; \ + (d)[239] = (void *) &p ## Rectdv; \ + (d)[240] = (void *) &p ## Rectf; \ + (d)[241] = (void *) &p ## Rectfv; \ + (d)[242] = (void *) &p ## Recti; \ + (d)[243] = (void *) &p ## Rectiv; \ + (d)[244] = (void *) &p ## Rects; \ + (d)[245] = (void *) &p ## Rectsv; \ + (d)[246] = (void *) &p ## RenderMode; \ + (d)[247] = (void *) &p ## Rotated; \ + (d)[248] = (void *) &p ## Rotatef; \ + (d)[249] = (void *) &p ## Scaled; \ + (d)[250] = (void *) &p ## Scalef; \ + (d)[251] = (void *) &p ## Scissor; \ + (d)[252] = (void *) &p ## SelectBuffer; \ + (d)[253] = (void *) &p ## ShadeModel; \ + (d)[254] = (void *) &p ## StencilFunc; \ + (d)[255] = (void *) &p ## StencilMask; \ + (d)[256] = (void *) &p ## StencilOp; \ + (d)[257] = (void *) &p ## TexCoord1d; \ + (d)[258] = (void *) &p ## TexCoord1dv; \ + (d)[259] = (void *) &p ## TexCoord1f; \ + (d)[260] = (void *) &p ## TexCoord1fv; \ + (d)[261] = (void *) &p ## TexCoord1i; \ + (d)[262] = (void *) &p ## TexCoord1iv; \ + (d)[263] = (void *) &p ## TexCoord1s; \ + (d)[264] = (void *) &p ## TexCoord1sv; \ + (d)[265] = (void *) &p ## TexCoord2d; \ + (d)[266] = (void *) &p ## TexCoord2dv; \ + (d)[267] = (void *) &p ## TexCoord2f; \ + (d)[268] = (void *) &p ## TexCoord2fv; \ + (d)[269] = (void *) &p ## TexCoord2i; \ + (d)[270] = (void *) &p ## TexCoord2iv; \ + (d)[271] = (void *) &p ## TexCoord2s; \ + (d)[272] = (void *) &p ## TexCoord2sv; \ + (d)[273] = (void *) &p ## TexCoord3d; \ + (d)[274] = (void *) &p ## TexCoord3dv; \ + (d)[275] = (void *) &p ## TexCoord3f; \ + (d)[276] = (void *) &p ## TexCoord3fv; \ + (d)[277] = (void *) &p ## TexCoord3i; \ + (d)[278] = (void *) &p ## TexCoord3iv; \ + (d)[279] = (void *) &p ## TexCoord3s; \ + (d)[280] = (void *) &p ## TexCoord3sv; \ + (d)[281] = (void *) &p ## TexCoord4d; \ + (d)[282] = (void *) &p ## TexCoord4dv; \ + (d)[283] = (void *) &p ## TexCoord4f; \ + (d)[284] = (void *) &p ## TexCoord4fv; \ + (d)[285] = (void *) &p ## TexCoord4i; \ + (d)[286] = (void *) &p ## TexCoord4iv; \ + (d)[287] = (void *) &p ## TexCoord4s; \ + (d)[288] = (void *) &p ## TexCoord4sv; \ + (d)[289] = (void *) &p ## TexCoordPointer; \ + (d)[290] = (void *) &p ## TexEnvf; \ + (d)[291] = (void *) &p ## TexEnvfv; \ + (d)[292] = (void *) &p ## TexEnvi; \ + (d)[293] = (void *) &p ## TexEnviv; \ + (d)[294] = (void *) &p ## TexGend; \ + (d)[295] = (void *) &p ## TexGendv; \ + (d)[296] = (void *) &p ## TexGenf; \ + (d)[297] = (void *) &p ## TexGenfv; \ + (d)[298] = (void *) &p ## TexGeni; \ + (d)[299] = (void *) &p ## TexGeniv; \ + (d)[300] = (void *) &p ## TexImage1D; \ + (d)[301] = (void *) &p ## TexImage2D; \ + (d)[302] = (void *) &p ## TexParameterf; \ + (d)[303] = (void *) &p ## TexParameterfv; \ + (d)[304] = (void *) &p ## TexParameteri; \ + (d)[305] = (void *) &p ## TexParameteriv; \ + (d)[306] = (void *) &p ## TexSubImage1D; \ + (d)[307] = (void *) &p ## TexSubImage2D; \ + (d)[308] = (void *) &p ## Translated; \ + (d)[309] = (void *) &p ## Translatef; \ + (d)[310] = (void *) &p ## Vertex2d; \ + (d)[311] = (void *) &p ## Vertex2dv; \ + (d)[312] = (void *) &p ## Vertex2f; \ + (d)[313] = (void *) &p ## Vertex2fv; \ + (d)[314] = (void *) &p ## Vertex2i; \ + (d)[315] = (void *) &p ## Vertex2iv; \ + (d)[316] = (void *) &p ## Vertex2s; \ + (d)[317] = (void *) &p ## Vertex2sv; \ + (d)[318] = (void *) &p ## Vertex3d; \ + (d)[319] = (void *) &p ## Vertex3dv; \ + (d)[320] = (void *) &p ## Vertex3f; \ + (d)[321] = (void *) &p ## Vertex3fv; \ + (d)[322] = (void *) &p ## Vertex3i; \ + (d)[323] = (void *) &p ## Vertex3iv; \ + (d)[324] = (void *) &p ## Vertex3s; \ + (d)[325] = (void *) &p ## Vertex3sv; \ + (d)[326] = (void *) &p ## Vertex4d; \ + (d)[327] = (void *) &p ## Vertex4dv; \ + (d)[328] = (void *) &p ## Vertex4f; \ + (d)[329] = (void *) &p ## Vertex4fv; \ + (d)[330] = (void *) &p ## Vertex4i; \ + (d)[331] = (void *) &p ## Vertex4iv; \ + (d)[332] = (void *) &p ## Vertex4s; \ + (d)[333] = (void *) &p ## Vertex4sv; \ + (d)[334] = (void *) &p ## VertexPointer; \ + (d)[335] = (void *) &p ## Viewport; \ + (d)[336] = (void *) &p ## BlendFuncSeparateEXT; \ + (d)[337] = (void *) &p ## BlendColor; \ + (d)[338] = (void *) &p ## BlendEquation; \ + (d)[339] = (void *) &p ## LockArraysEXT; \ + (d)[340] = (void *) &p ## UnlockArraysEXT; \ + (d)[341] = (void *) &p ## ClientActiveTextureARB; \ + (d)[342] = (void *) &p ## ActiveTextureARB; \ + (d)[343] = (void *) &p ## MultiTexCoord1dARB; \ + (d)[344] = (void *) &p ## MultiTexCoord1dvARB; \ + (d)[345] = (void *) &p ## MultiTexCoord1fARB; \ + (d)[346] = (void *) &p ## MultiTexCoord1fvARB; \ + (d)[347] = (void *) &p ## MultiTexCoord1iARB; \ + (d)[348] = (void *) &p ## MultiTexCoord1ivARB; \ + (d)[349] = (void *) &p ## MultiTexCoord1sARB; \ + (d)[350] = (void *) &p ## MultiTexCoord1svARB; \ + (d)[351] = (void *) &p ## MultiTexCoord2dARB; \ + (d)[352] = (void *) &p ## MultiTexCoord2dvARB; \ + (d)[353] = (void *) &p ## MultiTexCoord2fARB; \ + (d)[354] = (void *) &p ## MultiTexCoord2fvARB; \ + (d)[355] = (void *) &p ## MultiTexCoord2iARB; \ + (d)[356] = (void *) &p ## MultiTexCoord2ivARB; \ + (d)[357] = (void *) &p ## MultiTexCoord2sARB; \ + (d)[358] = (void *) &p ## MultiTexCoord2svARB; \ + (d)[359] = (void *) &p ## MultiTexCoord3dARB; \ + (d)[360] = (void *) &p ## MultiTexCoord3dvARB; \ + (d)[361] = (void *) &p ## MultiTexCoord3fARB; \ + (d)[362] = (void *) &p ## MultiTexCoord3fvARB; \ + (d)[363] = (void *) &p ## MultiTexCoord3iARB; \ + (d)[364] = (void *) &p ## MultiTexCoord3ivARB; \ + (d)[365] = (void *) &p ## MultiTexCoord3sARB; \ + (d)[366] = (void *) &p ## MultiTexCoord3svARB; \ + (d)[367] = (void *) &p ## MultiTexCoord4dARB; \ + (d)[368] = (void *) &p ## MultiTexCoord4dvARB; \ + (d)[369] = (void *) &p ## MultiTexCoord4fARB; \ + (d)[370] = (void *) &p ## MultiTexCoord4fvARB; \ + (d)[371] = (void *) &p ## MultiTexCoord4iARB; \ + (d)[372] = (void *) &p ## MultiTexCoord4ivARB; \ + (d)[373] = (void *) &p ## MultiTexCoord4sARB; \ + (d)[374] = (void *) &p ## MultiTexCoord4svARB; \ + (d)[375] = (void *) &p ## LoadTransposeMatrixdARB; \ + (d)[376] = (void *) &p ## LoadTransposeMatrixfARB; \ + (d)[377] = (void *) &p ## MultTransposeMatrixdARB; \ + (d)[378] = (void *) &p ## MultTransposeMatrixfARB; \ + (d)[379] = (void *) &p ## CompressedTexImage3DARB; \ + (d)[380] = (void *) &p ## CompressedTexImage2DARB; \ + (d)[381] = (void *) &p ## CompressedTexImage1DARB; \ + (d)[382] = (void *) &p ## CompressedTexSubImage3DARB; \ + (d)[383] = (void *) &p ## CompressedTexSubImage2DARB; \ + (d)[384] = (void *) &p ## CompressedTexSubImage1DARB; \ + (d)[385] = (void *) &p ## GetCompressedTexImageARB; \ + (d)[386] = (void *) &p ## SecondaryColor3bEXT; \ + (d)[387] = (void *) &p ## SecondaryColor3bvEXT; \ + (d)[388] = (void *) &p ## SecondaryColor3dEXT; \ + (d)[389] = (void *) &p ## SecondaryColor3dvEXT; \ + (d)[390] = (void *) &p ## SecondaryColor3fEXT; \ + (d)[391] = (void *) &p ## SecondaryColor3fvEXT; \ + (d)[392] = (void *) &p ## SecondaryColor3iEXT; \ + (d)[393] = (void *) &p ## SecondaryColor3ivEXT; \ + (d)[394] = (void *) &p ## SecondaryColor3sEXT; \ + (d)[395] = (void *) &p ## SecondaryColor3svEXT; \ + (d)[396] = (void *) &p ## SecondaryColor3ubEXT; \ + (d)[397] = (void *) &p ## SecondaryColor3ubvEXT; \ + (d)[398] = (void *) &p ## SecondaryColor3uiEXT; \ + (d)[399] = (void *) &p ## SecondaryColor3uivEXT; \ + (d)[400] = (void *) &p ## SecondaryColor3usEXT; \ + (d)[401] = (void *) &p ## SecondaryColor3usvEXT; \ + (d)[402] = (void *) &p ## SecondaryColorPointerEXT; \ + (d)[403] = (void *) &p ## VertexArrayRangeNV; \ + (d)[405] = (void *) &p ## DrawRangeElements; \ + (d)[406] = (void *) &p ## ColorTable; \ + (d)[407] = (void *) &p ## ColorTableParameterfv; \ + (d)[408] = (void *) &p ## ColorTableParameteriv; \ + (d)[409] = (void *) &p ## CopyColorTable; \ + (d)[410] = (void *) &p ## GetColorTable; \ + (d)[411] = (void *) &p ## GetColorTableParameterfv; \ + (d)[412] = (void *) &p ## GetColorTableParameteriv; \ + (d)[413] = (void *) &p ## ColorSubTable; \ + (d)[414] = (void *) &p ## CopyColorSubTable; \ + (d)[415] = (void *) &p ## ConvolutionFilter1D; \ + (d)[416] = (void *) &p ## ConvolutionFilter2D; \ + (d)[417] = (void *) &p ## ConvolutionParameterf; \ + (d)[418] = (void *) &p ## ConvolutionParameterfv; \ + (d)[419] = (void *) &p ## ConvolutionParameteri; \ + (d)[420] = (void *) &p ## ConvolutionParameteriv; \ + (d)[421] = (void *) &p ## CopyConvolutionFilter1D; \ + (d)[422] = (void *) &p ## CopyConvolutionFilter2D; \ + (d)[423] = (void *) &p ## GetConvolutionFilter; \ + (d)[424] = (void *) &p ## GetConvolutionParameterfv; \ + (d)[425] = (void *) &p ## GetConvolutionParameteriv; \ + (d)[426] = (void *) &p ## GetSeparableFilter; \ + (d)[427] = (void *) &p ## SeparableFilter2D; \ + (d)[428] = (void *) &p ## GetHistogram; \ + (d)[429] = (void *) &p ## GetHistogramParameterfv; \ + (d)[430] = (void *) &p ## GetHistogramParameteriv; \ + (d)[431] = (void *) &p ## GetMinmax; \ + (d)[432] = (void *) &p ## GetMinmaxParameterfv; \ + (d)[433] = (void *) &p ## GetMinmaxParameteriv; \ + (d)[434] = (void *) &p ## Histogram; \ + (d)[435] = (void *) &p ## Minmax; \ + (d)[436] = (void *) &p ## ResetHistogram; \ + (d)[437] = (void *) &p ## ResetMinmax; \ + (d)[438] = (void *) &p ## TexImage3D; \ + (d)[439] = (void *) &p ## TexSubImage3D; \ + (d)[440] = (void *) &p ## CopyTexSubImage3D; \ + (d)[441] = (void *) &p ## CombinerParameterfvNV; \ + (d)[442] = (void *) &p ## CombinerParameterfNV; \ + (d)[443] = (void *) &p ## CombinerParameterivNV; \ + (d)[444] = (void *) &p ## CombinerParameteriNV; \ + (d)[445] = (void *) &p ## CombinerInputNV; \ + (d)[446] = (void *) &p ## CombinerOutputNV; \ + (d)[447] = (void *) &p ## FinalCombinerInputNV; \ + (d)[448] = (void *) &p ## GetCombinerInputParameterfvNV; \ + (d)[449] = (void *) &p ## GetCombinerInputParameterivNV; \ + (d)[450] = (void *) &p ## GetCombinerOutputParameterfvNV; \ + (d)[451] = (void *) &p ## GetCombinerOutputParameterivNV; \ + (d)[452] = (void *) &p ## GetFinalCombinerInputParameterfvNV; \ + (d)[453] = (void *) &p ## GetFinalCombinerInputParameterivNV; \ + (d)[458] = (void *) &p ## BlendEquationSeparateEXT; \ + (d)[459] = (void *) &p ## SampleCoverageARB; \ + (d)[471] = (void *) &p ## BindProgramNV; \ + (d)[472] = (void *) &p ## DeleteProgramsNV; \ + (d)[473] = (void *) &p ## GenProgramsNV; \ + (d)[474] = (void *) &p ## IsProgramNV; \ + (d)[475] = (void *) &p ## VertexAttrib1sNV; \ + (d)[476] = (void *) &p ## VertexAttrib1fNV; \ + (d)[477] = (void *) &p ## VertexAttrib1dNV; \ + (d)[478] = (void *) &p ## VertexAttrib2sNV; \ + (d)[479] = (void *) &p ## VertexAttrib2fNV; \ + (d)[480] = (void *) &p ## VertexAttrib2dNV; \ + (d)[481] = (void *) &p ## VertexAttrib3sNV; \ + (d)[482] = (void *) &p ## VertexAttrib3fNV; \ + (d)[483] = (void *) &p ## VertexAttrib3dNV; \ + (d)[484] = (void *) &p ## VertexAttrib4sNV; \ + (d)[485] = (void *) &p ## VertexAttrib4fNV; \ + (d)[486] = (void *) &p ## VertexAttrib4dNV; \ + (d)[487] = (void *) &p ## VertexAttrib4ubNV; \ + (d)[488] = (void *) &p ## VertexAttrib1svNV; \ + (d)[489] = (void *) &p ## VertexAttrib1fvNV; \ + (d)[490] = (void *) &p ## VertexAttrib1dvNV; \ + (d)[491] = (void *) &p ## VertexAttrib2svNV; \ + (d)[492] = (void *) &p ## VertexAttrib2fvNV; \ + (d)[493] = (void *) &p ## VertexAttrib2dvNV; \ + (d)[494] = (void *) &p ## VertexAttrib3svNV; \ + (d)[495] = (void *) &p ## VertexAttrib3fvNV; \ + (d)[496] = (void *) &p ## VertexAttrib3dvNV; \ + (d)[497] = (void *) &p ## VertexAttrib4bvARB; \ + (d)[498] = (void *) &p ## VertexAttrib4svNV; \ + (d)[498] = (void *) &p ## VertexAttrib4NsvARB; \ + (d)[499] = (void *) &p ## VertexAttrib4ivARB; \ + (d)[500] = (void *) &p ## VertexAttrib4ubvNV; \ + (d)[500] = (void *) &p ## VertexAttrib4ubvARB; \ + (d)[501] = (void *) &p ## VertexAttrib4usvARB; \ + (d)[502] = (void *) &p ## VertexAttrib4uivARB; \ + (d)[503] = (void *) &p ## VertexAttrib4fvNV; \ + (d)[504] = (void *) &p ## VertexAttrib4dvNV; \ + (d)[505] = (void *) &p ## VertexAttrib4NbvARB; \ + (d)[507] = (void *) &p ## VertexAttrib4NivARB; \ + (d)[509] = (void *) &p ## VertexAttrib4NusvARB; \ + (d)[510] = (void *) &p ## VertexAttrib4NuivARB; \ + (d)[511] = (void *) &p ## VertexAttribPointerARB; \ + (d)[512] = (void *) &p ## EnableVertexAttribArrayARB; \ + (d)[513] = (void *) &p ## DisableVertexAttribArrayARB; \ + (d)[514] = (void *) &p ## GetVertexAttribdvNV; \ + (d)[515] = (void *) &p ## GetVertexAttribfvNV; \ + (d)[516] = (void *) &p ## GetVertexAttribivNV; \ + (d)[517] = (void *) &p ## GetVertexAttribPointervNV; \ + (d)[518] = (void *) &p ## ProgramEnvParameter4dARB; \ + (d)[519] = (void *) &p ## ProgramEnvParameter4dvARB; \ + (d)[520] = (void *) &p ## ProgramEnvParameter4fARB; \ + (d)[521] = (void *) &p ## ProgramEnvParameter4fvARB; \ + (d)[522] = (void *) &p ## ProgramLocalParameter4dARB; \ + (d)[523] = (void *) &p ## ProgramLocalParameter4dvARB; \ + (d)[524] = (void *) &p ## ProgramLocalParameter4fARB; \ + (d)[525] = (void *) &p ## ProgramLocalParameter4fvARB; \ + (d)[526] = (void *) &p ## GetProgramEnvParameterdvARB; \ + (d)[527] = (void *) &p ## GetProgramEnvParameterfvARB; \ + (d)[528] = (void *) &p ## GetProgramLocalParameterdvARB; \ + (d)[529] = (void *) &p ## GetProgramLocalParameterfvARB; \ + (d)[530] = (void *) &p ## ProgramStringARB; \ + (d)[531] = (void *) &p ## GetProgramStringARB; \ + (d)[532] = (void *) &p ## GetProgramivARB; \ + (d)[540] = (void *) &p ## PointParameterfEXT; \ + (d)[541] = (void *) &p ## PointParameterfvEXT; \ + (d)[542] = (void *) &p ## PointParameteriNV; \ + (d)[543] = (void *) &p ## PointParameterivNV; \ + (d)[544] = (void *) &p ## FogCoordfEXT; \ + (d)[545] = (void *) &p ## FogCoordfvEXT; \ + (d)[546] = (void *) &p ## FogCoorddEXT; \ + (d)[547] = (void *) &p ## FogCoorddvEXT; \ + (d)[548] = (void *) &p ## FogCoordPointerEXT; \ + (d)[567] = (void *) &p ## MultiDrawArraysEXT; \ + (d)[568] = (void *) &p ## MultiDrawElementsEXT; \ + (d)[569] = (void *) &p ## WindowPos2dMESA; \ + (d)[570] = (void *) &p ## WindowPos2dvMESA; \ + (d)[571] = (void *) &p ## WindowPos2fMESA; \ + (d)[572] = (void *) &p ## WindowPos2fvMESA; \ + (d)[573] = (void *) &p ## WindowPos2iMESA; \ + (d)[574] = (void *) &p ## WindowPos2ivMESA; \ + (d)[575] = (void *) &p ## WindowPos2sMESA; \ + (d)[576] = (void *) &p ## WindowPos2svMESA; \ + (d)[577] = (void *) &p ## WindowPos3dMESA; \ + (d)[578] = (void *) &p ## WindowPos3dvMESA; \ + (d)[579] = (void *) &p ## WindowPos3fMESA; \ + (d)[580] = (void *) &p ## WindowPos3fvMESA; \ + (d)[581] = (void *) &p ## WindowPos3iMESA; \ + (d)[582] = (void *) &p ## WindowPos3ivMESA; \ + (d)[583] = (void *) &p ## WindowPos3sMESA; \ + (d)[584] = (void *) &p ## WindowPos3svMESA; \ + (d)[585] = (void *) &p ## ActiveStencilFaceEXT; \ +} while (0) diff --git a/nx-X11/lib/GL/apple/dri_driver.c b/nx-X11/lib/GL/apple/dri_driver.c new file mode 100644 index 000000000..ce8b0736a --- /dev/null +++ b/nx-X11/lib/GL/apple/dri_driver.c @@ -0,0 +1,1141 @@ +/* $XFree86: xc/lib/GL/apple/dri_driver.c,v 1.2 2003/10/31 02:22:12 torrey Exp $ */ +/************************************************************************** + +Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. +Copyright (c) 2002 Apple Computer, Inc. +Copyright (c) 2004 Torrey T. Lyons +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, +distribute, sub license, 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 NON-INFRINGEMENT. +IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. + +**************************************************************************/ + +/* + * Original Authors: + * Kevin E. Martin <kevin@precisioninsight.com> + * Brian E. Paul <brian@precisioninsight.com> + */ + +/* + * This file follows Mesa's dri_util.c closely. The code in dri_util.c + * gets compiled into each of the DRI 3D drivers. A typical DRI driver, + * is loaded dynamically by libGL, so libGL knows nothing about the + * internal functions here. On Mac OS X the AppleDRI driver code is + * statically linked into libGL, but otherwise it tries to behave like + * a standard DRI driver. + * + * The functions defined here are called from the GL library via function + * pointers in the __DRIdisplayRec, __DRIscreenRec, __DRIcontextRec, + * __DRIdrawableRec structures defined in glxclient.h. Those function + * pointers are initialized by code in this file. The process starts when + * libGL calls the __driCreateScreen() function at the end of this file. + * + * The above-mentioned DRI structures have no dependencies on Mesa. + * Each structure instead has a generic (void *) private pointer that + * points to a private structure. For Mesa drivers, these private + * structures are the __DRIdrawablePrivateRec, __DRIcontextPrivateRec, + * __DRIscreenPrivateRec, and __DRIvisualPrivateRec structures defined + * in dri_mesaint.h. We allocate and attach those structs here in + * this file. + */ + + +#ifdef GLX_DIRECT_RENDERING + +/* These are first to ensure that Apple's GL headers are used. */ +#include <OpenGL/OpenGL.h> +#include <OpenGL/CGLContext.h> + +#include <unistd.h> +#include <X11/Xlibint.h> +#include <X11/extensions/Xext.h> + +#define GLAPIENTRYP * +#include "extutil.h" +#include "glxclient.h" +#include "appledri.h" +#include "dri_driver.h" +#include "x-list.h" +#include "x-hash.h" + +/** + * This is used in a couple of places that call \c driMesaCreateNewDrawable. + */ +static const int empty_attribute_list[1] = { None }; + +/* Context binding */ +static Bool driMesaBindContext(Display *dpy, int scrn, + GLXDrawable draw, GLXContext gc); +static Bool driMesaUnbindContext(Display *dpy, int scrn, + GLXDrawable draw, GLXContext gc, + int will_rebind); + +/* Drawable methods */ +static void *driMesaCreateNewDrawable(__DRInativeDisplay *dpy, + const __GLcontextModes *modes, + __DRIid draw, __DRIdrawable *pdraw, + int renderType, const int *attrs); +static __DRIdrawable *driMesaGetDrawable(__DRInativeDisplay *dpy, + GLXDrawable draw, + void *screenPrivate); +static void driMesaSwapBuffers(__DRInativeDisplay *dpy, void *drawPrivate); +static void driMesaDestroyDrawable(__DRInativeDisplay *dpy, void *drawPrivate); + +/* Context methods */ +static void *driMesaCreateContext(Display *dpy, XVisualInfo *vis, void *shared, + __DRIcontext *pctx); +static void driMesaDestroyContext(__DRInativeDisplay *dpy, int scrn, + void *screenPrivate); + +/* Screen methods */ +static void *driMesaCreateScreen(__DRInativeDisplay *dpy, int scrn, + __DRIscreen *psc, int numConfigs, + __GLXvisualConfig *config); +static void driMesaDestroyScreen(__DRInativeDisplay *dpy, int scrn, + void *screenPrivate); + +static void driMesaCreateSurface(Display *dpy, int scrn, + __DRIdrawablePrivate *pdp); + +static void unwrap_context(__DRIcontextPrivate *pcp); +static void wrap_context(__DRIcontextPrivate *pcp); + +extern const CGLContextObj XAppleDRIGetIndirectContext(void); + +/*****************************************************************/ + +/* Maintain a list of drawables */ + +static inline Bool +__driMesaAddDrawable(x_hash_table *drawHash, __DRIdrawable *pdraw) +{ + __DRIdrawablePrivate *pdp = (__DRIdrawablePrivate *)pdraw->private; + + assert(drawHash != NULL); + + x_hash_table_insert(drawHash, (void *) pdp->draw, pdraw); + + return GL_TRUE; +} + +static inline __DRIdrawable * +__driMesaFindDrawable(x_hash_table *drawHash, GLXDrawable draw) +{ + if (drawHash == NULL) + return NULL; + + return x_hash_table_lookup(drawHash, (void *) draw, NULL); +} + +struct find_by_uid_closure { + unsigned int uid; + __DRIdrawable *ret; +}; + +static void +find_by_uid_cb(void *k, void *v, void *data) +{ + __DRIdrawable *pdraw = v; + __DRIdrawablePrivate *pdp = (__DRIdrawablePrivate *)pdraw->private; + struct find_by_uid_closure *c = data; + + if (pdp->uid == c->uid) + c->ret = pdraw; +} + +static __DRIdrawable * +__driMesaFindDrawableByUID(x_hash_table *drawHash, unsigned int uid) +{ + struct find_by_uid_closure c; + + c.uid = uid; + c.ret = NULL; + x_hash_table_foreach(drawHash, find_by_uid_cb, &c); + + return c.ret; +} + +static inline void +__driMesaRemoveDrawable(x_hash_table *drawHash, __DRIdrawable *pdraw) +{ + __DRIdrawablePrivate *pdp = (__DRIdrawablePrivate *)pdraw->private; + + if (drawHash == NULL) + return; + + x_hash_table_remove(drawHash, (void *) pdp->draw); +} + +static Bool __driMesaWindowExistsFlag; + +static int __driMesaWindowExistsErrorHandler(Display *dpy, XErrorEvent *xerr) +{ + if (xerr->error_code == BadWindow) { + __driMesaWindowExistsFlag = GL_FALSE; + } + return 0; +} + +static Bool __driMesaWindowExists(Display *dpy, GLXDrawable draw) +{ + XWindowAttributes xwa; + int (*oldXErrorHandler)(Display *, XErrorEvent *); + + __driMesaWindowExistsFlag = GL_TRUE; + oldXErrorHandler = XSetErrorHandler(__driMesaWindowExistsErrorHandler); + XGetWindowAttributes(dpy, draw, &xwa); /* dummy request */ + XSetErrorHandler(oldXErrorHandler); + return __driMesaWindowExistsFlag; +} + +static void __driMesaCollectCallback(void *k, void *v, void *data) +{ + GLXDrawable draw = (GLXDrawable) k; + __DRIdrawable *pdraw = v; + x_list **todelete = data; + + __DRIdrawablePrivate *pdp = (__DRIdrawablePrivate *)pdraw->private; + Display *dpy; + + dpy = pdp->driScreenPriv->display; + XSync(dpy, GL_FALSE); + if (!pdp->destroyed && !__driMesaWindowExists(dpy, draw)) { + /* Destroy the local drawable data in the hash table, if the + drawable no longer exists in the Xserver */ + pdp->destroyed = TRUE; + *todelete = x_list_prepend(*todelete, pdraw); + } +} + +/* pdp->mutex is held. */ +static void __driMesaGarbageCollectDrawables(void *drawHash) +{ + __DRIdrawable *pdraw; + __DRIdrawablePrivate *pdp; + Display *dpy; + x_list *todelete = NULL, *node; + + x_hash_table_foreach(drawHash, __driMesaCollectCallback, &todelete); + + for (node = todelete; node != NULL; node = node->next) + { + pdraw = node->data; + pdp = (__DRIdrawablePrivate *)pdraw->private; + dpy = pdp->driScreenPriv->display; + + /* Destroy the local drawable data in the hash table, if the + drawable no longer exists in the Xserver */ + + __driMesaRemoveDrawable(drawHash, pdraw); + (*pdraw->destroyDrawable)(dpy, pdraw->private); + Xfree(pdraw); + } + + x_list_free(todelete); +} + +/*****************************************************************/ + +/* returns with psp->mutex locked if successful. */ +static Bool +driMesaFindDrawableByUID(Display *dpy,unsigned int uid, + __DRIscreenPrivate **psp_ret, + __DRIdrawablePrivate **pdp_ret) +{ + __DRIscreen *pDRIScreen; + __DRIscreenPrivate *psp; + __DRIdrawable *pdraw; + int scrn; + + for (scrn = 0; scrn < ScreenCount(dpy); scrn++) + { + if (!(pDRIScreen = __glXFindDRIScreen(dpy, scrn))) { + /* ERROR!!! */ + return FALSE; + } else if (!(psp = (__DRIscreenPrivate *)pDRIScreen->private)) { + /* ERROR!!! */ + return FALSE; + } + + xmutex_lock(psp->mutex); + + pdraw = __driMesaFindDrawableByUID(psp->drawHash, uid); + if (pdraw != NULL) { + *psp_ret = psp; + *pdp_ret = pdraw->private; + return TRUE; + }; + + xmutex_unlock(psp->mutex); + } + + return FALSE; +} + +static void +unbind_context(__DRIcontextPrivate *pcp) +{ + /* Unbind the context from its old drawable. */ + + if (pcp->driDrawablePriv != NULL) + { + if (pcp->next != NULL) + pcp->next->prev = pcp->prev; + if (pcp->prev != NULL) + pcp->prev->next = pcp->next; + + if (pcp->driDrawablePriv->driContextPriv == pcp) + pcp->driDrawablePriv->driContextPriv = pcp->next; + + pcp->driDrawablePriv = NULL; + pcp->prev = pcp->next = NULL; + } + + if (pcp->surface_id != 0) + { + pcp->surface_id = 0; + pcp->pending_clear = TRUE; + } +} + +static void +unbind_drawable(__DRIdrawablePrivate *pdp) +{ + __DRIcontextPrivate *pcp, *next; + + for (pcp = pdp->driContextPriv; pcp != NULL; pcp = next) + { + next = pcp->next; + unbind_context(pcp); + } +} + +static void +update_context(__DRIcontextPrivate *pcp) +{ + if (pcp->pending_clear) + { + CGLClearDrawable(pcp->ctx); + pcp->pending_clear = FALSE; + } + + if (pcp->pending_update && pcp->surface_id != 0) + { + xp_update_gl_context(pcp->ctx); + pcp->pending_update = FALSE; + } +} + +static Bool driMesaUnbindContext(Display *dpy, int scrn, + GLXDrawable draw, GLXContext gc, + int will_rebind) +{ + __DRIscreen *pDRIScreen; +// __DRIdrawable *pdraw; + __DRIcontextPrivate *pcp; + __DRIscreenPrivate *psp; + __DRIdrawablePrivate *pdp; + + /* + ** Assume error checking is done properly in glXMakeCurrent before + ** calling driMesaUnbindContext. + */ + + if (gc == NULL || draw == None) { + /* ERROR!!! */ + return GL_FALSE; + } + + if (!(pDRIScreen = __glXFindDRIScreen(dpy, scrn))) { + /* ERROR!!! */ + return GL_FALSE; + } else if (!(psp = (__DRIscreenPrivate *)pDRIScreen->private)) { + /* ERROR!!! */ + return GL_FALSE; + } + + xmutex_lock(psp->mutex); + + pcp = (__DRIcontextPrivate *)gc->driContext.private; + + pdp = pcp->driDrawablePriv; + if (pdp == NULL) { + /* ERROR!!! */ + xmutex_unlock(psp->mutex); + return GL_FALSE; + } + + /* Put this thread back into normal (indirect) dispatch mode. */ + CGLSetCurrentContext(XAppleDRIGetIndirectContext()); + pcp->thread_id = 0; + + /* Lazily unbind the drawable from the context */ + unbind_context(pcp); + + if (pdp->refcount == 0) { + /* ERROR!!! */ + xmutex_unlock(psp->mutex); + return GL_FALSE; + } else if (--pdp->refcount == 0) { +#if 0 + /* + ** NOT_DONE: When a drawable is unbound from one direct + ** rendering context and then bound to another, we do not want + ** to destroy the drawable data structure each time only to + ** recreate it immediatly afterwards when binding to the next + ** context. This also causes conflicts with caching of the + ** drawable stamp. + ** + ** In addition, we don't destroy the drawable here since Mesa + ** keeps private data internally (e.g., software accumulation + ** buffers) that should not be destroyed unless the client + ** explicitly requests that the window be destroyed. + ** + ** When GLX 1.3 is integrated, the create and destroy drawable + ** functions will have user level counterparts and the memory + ** will be able to be recovered. + ** + ** Below is an example of what needs to go into the destroy + ** drawable routine to support GLX 1.3. + */ + __driMesaRemoveDrawable(psp->drawHash, pdraw); + (*pdraw->destroyDrawable)(dpy, pdraw->private); + Xfree(pdraw); +#endif + } + + xmutex_unlock(psp->mutex); + return GL_TRUE; +} + +static Bool driMesaBindContext(Display *dpy, int scrn, + GLXDrawable draw, GLXContext gc) +{ + __DRIscreen *pDRIScreen; + const __GLcontextModes *modes; + __DRIdrawable *pdraw; + __DRIdrawablePrivate *pdp; + __DRIscreenPrivate *psp; + __DRIcontextPrivate *pcp; + + /* + ** Assume error checking is done properly in glXMakeCurrent before + ** calling driMesaBindContext. + */ + + if (gc == NULL || draw == None) { + /* ERROR!!! */ + return GL_FALSE; + } + + if (!(pDRIScreen = __glXFindDRIScreen(dpy, scrn))) { + /* ERROR!!! */ + return GL_FALSE; + } else if (!(psp = (__DRIscreenPrivate *)pDRIScreen->private)) { + /* ERROR!!! */ + return GL_FALSE; + } + + modes = gc->driContext.mode; + + if ( modes == NULL ) { + /* ERROR!!! */ + return GL_FALSE; + } + + xmutex_lock(psp->mutex); + + pdraw = __driMesaFindDrawable(psp->drawHash, draw); + if (!pdraw) { + /* Allocate a new drawable */ + pdraw = (__DRIdrawable *)Xmalloc(sizeof(__DRIdrawable)); + if (!pdraw) { + /* ERROR!!! */ + xmutex_unlock(psp->mutex); + return GL_FALSE; + } + + /* Create a new drawable */ + pdraw->private = driMesaCreateNewDrawable(dpy, modes, draw, pdraw, + GLX_WINDOW_BIT, + empty_attribute_list); + if (!pdraw->private) { + /* ERROR!!! */ + Xfree(pdraw); + xmutex_unlock(psp->mutex); + return GL_FALSE; + } + + /* Add pdraw to drawable list */ + if (!__driMesaAddDrawable(psp->drawHash, pdraw)) { + /* ERROR!!! */ + (*pdraw->destroyDrawable)(dpy, pdraw->private); + Xfree(pdraw); + xmutex_unlock(psp->mutex); + return GL_FALSE; + } + } + + pdp = (__DRIdrawablePrivate *)pdraw->private; + pcp = (__DRIcontextPrivate *)gc->driContext.private; + + if (pdp->surface_id == 0) + { + /* Surface got destroyed. Try to create a new one. */ + + driMesaCreateSurface(dpy, scrn, pdp); + } + + unbind_context(pcp); + + /* Bind the drawable to the context */ + pcp->driDrawablePriv = pdp; + pcp->prev = NULL; + pcp->next = pdp->driContextPriv; + pdp->driContextPriv = pcp; + pdp->refcount++; + + /* And the physical surface to the physical context */ + if (pcp->surface_id != pdp->surface_id) + { + pcp->surface_id = 0; + + /* Attaching the drawable sets the default viewport. But we don't + want to catch that call to glViewport in our wrappers. */ + unwrap_context(pcp); + + if (pdp->surface_id == 0) + CGLClearDrawable(pcp->ctx); + else if (xp_attach_gl_context(pcp->ctx, pdp->surface_id) == Success) + pcp->surface_id = pdp->surface_id; + else + fprintf(stderr, "failed to bind to surface\n"); + + wrap_context(pcp); + + pcp->pending_clear = FALSE; + pcp->pending_update = FALSE; + } + else if (pcp->pending_clear) + { + CGLClearDrawable(pcp->ctx); + pcp->pending_clear = FALSE; + } + + /* Activate the CGL context and remember which thread it's current for. */ + CGLSetCurrentContext(pcp->ctx); + pcp->thread_id = xthread_self(); + + xmutex_unlock(psp->mutex); + return GL_TRUE; +} + +/*****************************************************************/ + +static xp_client_id +get_client_id(void) +{ + static xp_client_id id; + + if (id == 0) + { + if (xp_init(XP_IN_BACKGROUND) != Success + || xp_get_client_id(&id) != Success) + { + return 0; + } + } + + return id; +} + +static void driMesaCreateSurface(Display *dpy, int scrn, + __DRIdrawablePrivate *pdp) +{ + xp_client_id client_id; + unsigned int key[2]; + + pdp->surface_id = 0; + pdp->uid = 0; + + client_id = get_client_id(); + if (client_id == 0) + return; + + if (XAppleDRICreateSurface(dpy, scrn, pdp->draw, + client_id, key, &pdp->uid)) + { + xp_import_surface(key, &pdp->surface_id); + } +} + +/** + * This is called via __DRIscreenRec's createNewDrawable pointer. + */ +static void *driMesaCreateNewDrawable(__DRInativeDisplay *dpy, + const __GLcontextModes *modes, + __DRIid draw, + __DRIdrawable *pdraw, + int renderType, + const int *attrs) +{ + __DRIscreen * const pDRIScreen = __glXFindDRIScreen(dpy, modes->screen); + __DRIscreenPrivate *psp; + __DRIdrawablePrivate *pdp; + + + pdraw->private = NULL; + + /* Since pbuffers are not yet supported, no drawable attributes are + * supported either. + */ + (void) attrs; + + if ( (pDRIScreen == NULL) || (pDRIScreen->private == NULL) ) { + return NULL; + } + + pdp = (__DRIdrawablePrivate *)Xmalloc(sizeof(__DRIdrawablePrivate)); + if (!pdp) { + return NULL; + } + + pdp->draw = draw; + pdp->refcount = 0; + pdp->surface_id = 0; + pdp->uid = 0; + pdp->destroyed = FALSE; + + psp = (__DRIscreenPrivate *)pDRIScreen->private; + pdp->driScreenPriv = psp; + pdp->driContextPriv = NULL; + + driMesaCreateSurface(dpy, modes->screen, pdp); + if (pdp->surface_id == 0) { + Xfree(pdp); + return NULL; + } + + pdraw->private = pdp; + pdraw->destroyDrawable = driMesaDestroyDrawable; + pdraw->swapBuffers = driMesaSwapBuffers; /* called by glXSwapBuffers() */ + +#if 0 + /* We don't support these yet. */ + if ( driCompareGLXAPIVersion( 20030317 ) >= 0 ) { + pdraw->getSBC = driGetSBC; + pdraw->waitForSBC = driWaitForSBC; + pdraw->waitForMSC = driWaitForMSC; + pdraw->swapBuffersMSC = driSwapBuffersMSC; + pdraw->frameTracking = NULL; + pdraw->queryFrameTracking = driQueryFrameTracking; + + /* This special default value is replaced with the configured + * default value when the drawable is first bound to a direct + * rendering context. */ + pdraw->swap_interval = (unsigned)-1; + } +#endif + + return (void *) pdp; +} + +static __DRIdrawable *driMesaGetDrawable(__DRInativeDisplay *dpy, + GLXDrawable draw, + void *screenPrivate) +{ + __DRIscreenPrivate *psp = (__DRIscreenPrivate *) screenPrivate; + __DRIdrawable *dri_draw; + + xmutex_lock(psp->mutex); + + /* + ** Make sure this routine returns NULL if the drawable is not bound + ** to a direct rendering context! + */ + dri_draw = __driMesaFindDrawable(psp->drawHash, draw); + + xmutex_unlock(psp->mutex); + return dri_draw; +} + +static void driMesaSwapBuffers(__DRInativeDisplay *dpy, void *drawPrivate) +{ + __DRIdrawablePrivate *pdp = (__DRIdrawablePrivate *) drawPrivate; + __DRIcontextPrivate *pcp; + xthread_t self = xthread_self(); + static Bool warned; + + xmutex_lock(pdp->driScreenPriv->mutex); + + /* FIXME: this is sub-optimal, since we may not always find a context + bound to the given drawable on this thread. */ + + for (pcp = pdp->driContextPriv; pcp != NULL; pcp = pcp->next) + { + if (pcp->thread_id == self || pcp->thread_id == 0) + break; + } + + if (pcp != NULL) + { + CGLFlushDrawable(pcp->ctx); + } + else + { + if (!warned) { + fprintf(stderr, "glXSwapBuffers: no context for this drawable\n"); + warned = TRUE; + } + } + + xmutex_unlock(pdp->driScreenPriv->mutex); +} + +/* pdp->mutex is held. */ +static void driMesaDestroyDrawable(__DRInativeDisplay *dpy, void *drawPrivate) +{ + __DRIdrawablePrivate *pdp = (__DRIdrawablePrivate *)drawPrivate; + + if (pdp) { + unbind_drawable(pdp); + if (pdp->surface_id != 0) { + xp_destroy_surface(pdp->surface_id); + pdp->surface_id = 0; + } + if (!pdp->destroyed) { + /* don't try to destroy an already destroyed surface. */ + XAppleDRIDestroySurface(dpy, pdp->driScreenPriv->myNum, pdp->draw); + } + Xfree(pdp); + } +} + +/*****************************************************************/ + +static CGLPixelFormatObj +driCreatePixelFormat(Display *dpy, __DRIscreenPrivate *psp, + XVisualInfo *visinfo, __GLXvisualConfig *config) +{ + int i; + CGLPixelFormatAttribute attr[64]; // currently uses max of 30 + CGLPixelFormatObj result; + long n_formats; + + i = 0; + + if (!config->rgba) + return NULL; + + if (config->stereo) + attr[i++] = kCGLPFAStereo; + + if (config->doubleBuffer) + attr[i++] = kCGLPFADoubleBuffer; + + attr[i++] = kCGLPFAColorSize; + attr[i++] = config->redSize + config->greenSize + config->blueSize; + attr[i++] = kCGLPFAAlphaSize; + attr[i++] = 1; /* FIXME: ignoring config->alphaSize which is always 0 */ + + if (config->accumRedSize + config->accumGreenSize + + config->accumBlueSize + config->accumAlphaSize > 0) + { + attr[i++] = kCGLPFAAccumSize; + attr[i++] = (config->accumRedSize + config->accumGreenSize + + config->accumBlueSize + config->accumAlphaSize); + } + + if (config->depthSize > 0) { + attr[i++] = kCGLPFADepthSize; + attr[i++] = config->depthSize; + } + + if (config->stencilSize > 0) { + attr[i++] = kCGLPFAStencilSize; + attr[i++] = config->stencilSize; + } + + if (config->auxBuffers > 0) { + attr[i++] = kCGLPFAAuxBuffers; + attr[i++] = config->auxBuffers; + } + + /* FIXME: things we don't handle: color/alpha masks, level, + visualrating, transparentFoo */ + + attr[i++] = 0; + + result = NULL; + CGLChoosePixelFormat(attr, &result, &n_formats); + + return result; +} + +static void *driMesaCreateContext(Display *dpy, XVisualInfo *vis, void *shared, + __DRIcontext *pctx) +{ + __DRIscreen *pDRIScreen; + __DRIcontextPrivate *pcp; + __DRIcontextPrivate *pshare = (__DRIcontextPrivate *)shared; + __DRIscreenPrivate *psp; + int i; + + if (!(pDRIScreen = __glXFindDRIScreen(dpy, vis->screen))) { + /* ERROR!!! */ + return NULL; + } else if (!(psp = (__DRIscreenPrivate *)pDRIScreen->private)) { + /* ERROR!!! */ + return NULL; + } + + /* Create the hash table */ + if (!psp->drawHash) { + xmutex_lock(psp->mutex); + if (!psp->drawHash) + psp->drawHash = x_hash_table_new(NULL, NULL, NULL, NULL); + xmutex_unlock(psp->mutex); + } + + pcp = (__DRIcontextPrivate *)Xmalloc(sizeof(__DRIcontextPrivate)); + if (!pcp) { + return NULL; + } + + pcp->display = dpy; + pcp->driScreenPriv = psp; + pcp->driDrawablePriv = NULL; + + pcp->ctx = NULL; + pcp->surface_id = 0; + + pcp->pending_clear = FALSE; + pcp->pending_update = FALSE; + + pcp->ctx = NULL; + for (i = 0; pcp->ctx == NULL && i < psp->numVisuals; i++) { + if (psp->visuals[i].vid == vis->visualid) { + CGLCreateContext(psp->visuals[i].pixel_format, + pshare ? pshare->ctx : NULL, &pcp->ctx); + } + } + + if (!pcp->ctx) { + Xfree(pcp); + return NULL; + } + + pctx->destroyContext = driMesaDestroyContext; + pctx->bindContext = driMesaBindContext; + pctx->unbindContext = driMesaUnbindContext; + + wrap_context(pcp); + + xmutex_lock(psp->mutex); + __driMesaGarbageCollectDrawables(pcp->driScreenPriv->drawHash); + xmutex_unlock(psp->mutex); + + return pcp; +} + +static void driMesaDestroyContext(__DRInativeDisplay *dpy, int scrn, + void *contextPrivate) +{ + __DRIcontextPrivate *pcp = (__DRIcontextPrivate *) contextPrivate; + + if (pcp) { + xmutex_lock(pcp->driScreenPriv->mutex); + unbind_context(pcp); + __driMesaGarbageCollectDrawables(pcp->driScreenPriv->drawHash); + xmutex_unlock(pcp->driScreenPriv->mutex); + CGLDestroyContext(pcp->ctx); + Xfree(pcp); + } +} + +/*****************************************************************/ + +static void *driMesaCreateScreen(__DRInativeDisplay *dpy, int scrn, + __DRIscreen *psc, int numConfigs, + __GLXvisualConfig *config) +{ + int directCapable, i, n; + __DRIscreenPrivate *psp; + XVisualInfo visTmpl, *visinfo; + + if (!XAppleDRIQueryDirectRenderingCapable(dpy, scrn, &directCapable)) { + return NULL; + } + + if (!directCapable) { + return NULL; + } + + psp = (__DRIscreenPrivate *)Xmalloc(sizeof(__DRIscreenPrivate)); + if (!psp) { + return NULL; + } + + psp->mutex = xmutex_malloc(); + if (psp->mutex != NULL) { + xmutex_init (psp->mutex); + xmutex_set_name (psp->mutex, "AppleDRI"); + } + psp->display = dpy; + psp->myNum = scrn; + +#if 0 + if (!XAppleDRIAuthConnection(dpy, scrn, magic)) { + Xfree(psp); + (void)XAppleDRICloseConnection(dpy, scrn); + return NULL; + } +#endif + + /* + * Allocate space for an array of visual records and initialize them. + */ + psp->visuals = (__DRIvisualPrivate *)Xmalloc(numConfigs * + sizeof(__DRIvisualPrivate)); + if (!psp->visuals) { + Xfree(psp); + return NULL; + } + + visTmpl.screen = scrn; + visinfo = XGetVisualInfo(dpy, VisualScreenMask, &visTmpl, &n); + if (n != numConfigs) { + Xfree(psp); + return NULL; + } + + psp->numVisuals = 0; + for (i = 0; i < numConfigs; i++, config++) { + psp->visuals[psp->numVisuals].vid = visinfo[i].visualid; + psp->visuals[psp->numVisuals].pixel_format = + driCreatePixelFormat(dpy, psp, &visinfo[i], config); + if (psp->visuals[psp->numVisuals].pixel_format != NULL) { + psp->numVisuals++; + } + } + + XFree(visinfo); + + if (psp->numVisuals == 0) { + /* Couldn't create any pixel formats. */ + Xfree(psp->visuals); + Xfree(psp); + return NULL; + } + + /* Initialize the drawHash when the first context is created */ + psp->drawHash = NULL; + + psc->destroyScreen = driMesaDestroyScreen; + psc->createContext = driMesaCreateContext; + psc->createNewDrawable = driMesaCreateNewDrawable; + psc->getDrawable = driMesaGetDrawable; + + return (void *)psp; +} + +static void driMesaDestroyScreen(__DRInativeDisplay *dpy, int scrn, + void *screenPrivate) +{ + __DRIscreenPrivate *psp = (__DRIscreenPrivate *) screenPrivate; + + if (psp) { + //FIXME resetDriver ? + Xfree(psp->visuals); + Xfree(psp); + } +} + +/* Note: definitely can't make any X protocol requests here. */ +static void driAppleSurfaceNotify(Display *dpy, unsigned int uid, int kind) +{ + __DRIscreenPrivate *psp; + __DRIdrawablePrivate *pdp; + __DRIcontextPrivate *pcp; + + /* locks psp->mutex if successful. */ + if (driMesaFindDrawableByUID(dpy, uid, &psp, &pdp)) + { + xthread_t self = xthread_self(); + + switch (kind) + { + Bool all_safe; + + case AppleDRISurfaceNotifyDestroyed: + xp_destroy_surface(pdp->surface_id); + pdp->surface_id = 0; + + for (pcp = pdp->driContextPriv; pcp != NULL; pcp = pcp->next) + { + pcp->surface_id = 0; + + if (pcp->thread_id == self || pcp->thread_id == 0) { + CGLClearDrawable(pcp->ctx); + pcp->pending_clear = FALSE; + } else + pcp->pending_clear = TRUE; + } + break; + + case AppleDRISurfaceNotifyChanged: + all_safe = TRUE; + for (pcp = pdp->driContextPriv; pcp != NULL; pcp = pcp->next) + { + if (pcp->thread_id != 0 && pcp->thread_id != self) { + all_safe = FALSE; + break; + } + } + for (pcp = pdp->driContextPriv; pcp != NULL; pcp = pcp->next) + { + if (all_safe) { + xp_update_gl_context(pcp->ctx); + pcp->pending_update = FALSE; + } else + pcp->pending_update = TRUE; + } + break; + } + + xmutex_unlock(psp->mutex); + } +} + +/** + * Entrypoint function used to create a new driver-private screen structure. + * + * \param dpy Display pointer. + * \param scrn Index of the screen. + * \param psc DRI screen data (not driver private) + * \param numConfigs Number of visual configs pointed to by \c configs. + * \param config Array of GLXvisualConfigs exported by the 2D driver. + * + * \deprecated + * In dynamically linked drivers, this function has been replaced by + * \c __driCreateNewScreen. + */ +void *__driCreateScreen(Display *dpy, int scrn, __DRIscreen *psc, + int numConfigs, __GLXvisualConfig *config) +{ + static int here_before; + + if (!here_before) + { + XAppleDRISetSurfaceNotifyHandler(driAppleSurfaceNotify); + here_before = True; + } + + return driMesaCreateScreen(dpy, scrn, psc, numConfigs, config); +} + +void __driRegisterExtensions(void) +{ +} + +__private_extern__ void XAppleDRIUseIndirectDispatch(void) +{ + CGLSetCurrentContext(XAppleDRIGetIndirectContext()); +} + +/*****************************************************************/ + +/* + * Currently (Mac OS X 10.3) the only way we have of regaining control + * from threads calling GL and nothing else is by patching the dispatch + * table of the CGLContext, so that glViewport, glFlush and glFinish + * call us back. + * + * Since glNewList and glEndList overwrite the entire dispatch table we + * also need to patch those so we can restore the others. + * + * WARNING: This is not expected to work on future OS releases. + */ + +#define WRAP_CGL(context, vec, fun) \ + do { \ + (context)->disp.vec = (context)->ctx->disp.vec; \ + (context)->ctx->disp.vec = (fun); \ + } while (0) + +#define UNWRAP_CGL(context, vec) \ + do { \ + (context)->ctx->disp.vec = (context)->disp.vec; \ + } while (0) + +#define WRAP_BOILERPLATE \ + GLXContext gc; \ + __DRIcontextPrivate *pcp; \ + gc = __glXGetCurrentContext(); \ + if (gc == NULL || !gc->isDirect) return; \ + pcp = (__DRIcontextPrivate *) gc->driContext.private; \ + if (pcp == NULL) return; + +static void viewport_callback(GLIContext ctx, GLint x, GLint y, + GLsizei width, GLsizei height) +{ + WRAP_BOILERPLATE + + xmutex_lock(pcp->driScreenPriv->mutex); + update_context(pcp); + xmutex_unlock(pcp->driScreenPriv->mutex); + + (*pcp->disp.viewport)(ctx, x, y, width, height); +} + +static void new_list_callback(GLIContext ctx, GLuint list, GLenum mode) +{ + WRAP_BOILERPLATE + + unwrap_context(pcp); + (*pcp->ctx->disp.new_list)(ctx, list, mode); + wrap_context(pcp); +} + +static void end_list_callback(GLIContext ctx) +{ + WRAP_BOILERPLATE + + unwrap_context(pcp); + (*pcp->ctx->disp.end_list)(ctx); + wrap_context(pcp); +} + +static void unwrap_context(__DRIcontextPrivate *pcp) +{ + UNWRAP_CGL(pcp, viewport); + UNWRAP_CGL(pcp, new_list); + UNWRAP_CGL(pcp, end_list); +} + +static void wrap_context(__DRIcontextPrivate *pcp) +{ + WRAP_CGL(pcp, new_list, new_list_callback); + WRAP_CGL(pcp, end_list, end_list_callback); + WRAP_CGL(pcp, viewport, viewport_callback); +} + +#endif /* GLX_DIRECT_RENDERING */ diff --git a/nx-X11/lib/GL/apple/dri_driver.h b/nx-X11/lib/GL/apple/dri_driver.h new file mode 100644 index 000000000..84965786f --- /dev/null +++ b/nx-X11/lib/GL/apple/dri_driver.h @@ -0,0 +1,188 @@ +/* $XFree86: xc/lib/GL/apple/dri_driver.h,v 1.1 2003/06/30 01:45:10 torrey Exp $ */ +/************************************************************************** + +Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. +Copyright (c) 2002 Apple Computer, Inc. +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, +distribute, sub license, 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 NON-INFRINGEMENT. +IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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: + * Kevin E. Martin <kevin@precisioninsight.com> + * Brian Paul <brian@precisioninsight.com> + */ + +#ifndef _DRI_DRIVER_H_ +#define _DRI_DRIVER_H_ + +#include "Xplugin.h" +#include "Xthreads.h" +#include <CoreGraphics/CoreGraphics.h> +#include <OpenGL/OpenGL.h> +#include <OpenGL/CGLContext.h> + +#ifdef GLX_DIRECT_RENDERING + +typedef struct __DRIdisplayPrivateRec __DRIdisplayPrivate; +typedef struct __DRIscreenPrivateRec __DRIscreenPrivate; +typedef struct __DRIvisualPrivateRec __DRIvisualPrivate; +typedef struct __DRIcontextPrivateRec __DRIcontextPrivate; +typedef struct __DRIdrawablePrivateRec __DRIdrawablePrivate; + +#endif /* GLX_DIRECT_RENDERING */ + +#define DRI_MESA_VALIDATE_DRAWABLE_INFO(dpy,scrn,pDrawPriv) \ + do { \ + if (*(pDrawPriv->pStamp) != pDrawPriv->lastStamp) { \ + driMesaUpdateDrawableInfo(dpy,scrn,pDrawPriv); \ + } \ + } while (0) + +struct __DRIdrawablePrivateRec { + /* + ** X's drawable ID associated with this private drawable. + */ + GLXDrawable draw; + + /* + ** Reference count for number of context's currently bound to this + ** drawable. Once the refcount reaches 0, the drawable can be + ** destroyed. This behavior will change with GLX 1.3. + */ + int refcount; + + xp_surface_id surface_id; + unsigned int uid; + + /* + ** Pointer to contexts to which this drawable is currently bound. + */ + __DRIcontextPrivate *driContextPriv; + + /* + ** Pointer to screen on which this drawable was created. + */ + __DRIscreenPrivate *driScreenPriv; + + /* + ** Set when the drawable on the server is known to have gone away + */ + unsigned int destroyed :1; +}; + +struct __DRIcontextPrivateRec { + /* + ** Other contexts bound to the same drawable. + */ + __DRIcontextPrivate *next, *prev; + + /* + ** Kernel context handle used to access the device lock. + */ + XID contextID; + + CGLContextObj ctx; + + /* + ** Set when attached + */ + xp_surface_id surface_id; + xthread_t thread_id; + + /* + ** This context's display pointer. + */ + Display *display; + + /* + ** Pointer to drawable currently bound to this context. + */ + __DRIdrawablePrivate *driDrawablePriv; + + /* + ** Pointer to screen on which this context was created. + */ + __DRIscreenPrivate *driScreenPriv; + + /* + ** wrapped CGL vectors + */ + struct { + void (*viewport)(GLIContext ctx, GLint x, GLint y, + GLsizei width, GLsizei height); + void (*new_list)(GLIContext ctx, GLuint list, GLenum mode); + void (*end_list)(GLIContext ctx); + } disp; + + unsigned int pending_update :1; + unsigned int pending_clear :1; +}; + +struct __DRIvisualPrivateRec { + /* + ** X's visual ID associated with this private visual. + */ + VisualID vid; + + /* + ** CGL object representing the visual + */ + CGLPixelFormatObj pixel_format; +}; + +struct __DRIscreenPrivateRec { + /* + ** Display for this screen + */ + Display *display; + + /* + ** Mutex for this screen + */ + xmutex_t mutex; + + /* + ** Current screen's number + */ + int myNum; + + /* + ** Core rendering library's visuals associated with the current + ** screen. + */ + __DRIvisualPrivate *visuals; + int numVisuals; + + /* + ** Hash table to hold the drawable information for this screen. + */ + void *drawHash; +}; + + +extern void driMesaUpdateDrawableInfo(Display *dpy, int scrn, + __DRIdrawablePrivate *pdp); + + +#endif /* _DRI_DRIVER_H_ */ diff --git a/nx-X11/lib/GL/apple/dri_glx.c b/nx-X11/lib/GL/apple/dri_glx.c new file mode 100644 index 000000000..c2adc868f --- /dev/null +++ b/nx-X11/lib/GL/apple/dri_glx.c @@ -0,0 +1,265 @@ +/************************************************************************** + +Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. +Copyright (c) 2002 Apple Computer, Inc. +Copyright (c) 2004 Torrey T. Lyons +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, +distribute, sub license, 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 NON-INFRINGEMENT. +IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. + +**************************************************************************/ +/* $XFree86: xc/lib/GL/apple/dri_glx.c,v 1.2 2004/04/21 04:59:40 torrey Exp $ */ + +/* + * Authors: + * Kevin E. Martin <kevin@precisioninsight.com> + * Brian Paul <brian@precisioninsight.com> + * + */ + +#ifdef GLX_DIRECT_RENDERING + +#include <unistd.h> +#include <X11/Xlibint.h> +#include <X11/extensions/Xext.h> +#include "extutil.h" +#include "glxclient.h" +#include "appledri.h" +#include <stdio.h> +#include "dri_glx.h" +#include <sys/types.h> +#include <stdarg.h> + + +/* Apple OpenGL "driver" information. */ +static const char *__driAppleDriverName = "apple"; +static const int __driAppleDriverMajor = 1; +static const int __driAppleDriverMinor = 0; +static const int __driAppleDriverPatch = 0; + + +/* + * printf wrappers + */ + +static void InfoMessageF(const char *f, ...) +{ + va_list args; + const char *env; + + if ((env = getenv("LIBGL_DEBUG")) && strstr(env, "verbose")) { + fprintf(stderr, "libGL: "); + va_start(args, f); + vfprintf(stderr, f, args); + va_end(args); + } +} + +static void ErrorMessageF(const char *f, ...) +{ + va_list args; + + if (getenv("LIBGL_DEBUG")) { + fprintf(stderr, "libGL error: "); + va_start(args, f); + vfprintf(stderr, f, args); + va_end(args); + } +} + + +/* + * Given a display pointer and screen number, determine the name of + * the DRI driver for the screen. (I.e. "r128", "tdfx", etc). + * Return True for success, False for failure. + */ +static Bool GetDriverName(Display *dpy, int scrNum, char **driverName) +{ + int directCapable; + + *driverName = NULL; + + if (!XAppleDRIQueryDirectRenderingCapable(dpy, scrNum, &directCapable)) { + ErrorMessageF("XAppleDRIQueryDirectRenderingCapable failed\n"); + return False; + } + if (!directCapable) { + ErrorMessageF("XAppleDRIQueryDirectRenderingCapable returned false\n"); + return False; + } + + *driverName = (char *) __driAppleDriverName; + + InfoMessageF("XF86DRIGetClientDriverName: %d.%d.%d %s (screen %d)\n", + __driAppleDriverMajor, __driAppleDriverMinor, + __driAppleDriverPatch, *driverName, scrNum); + + return True; +} + + +/* + * Exported function for querying the DRI driver for a given screen. + * + * The returned char pointer points to a static array that will be + * overwritten by subsequent calls. + */ +const char *glXGetScreenDriver (Display *dpy, int scrNum) { + static char ret[32]; + char *driverName; + if (GetDriverName(dpy, scrNum, &driverName)) { + int len; + if (!driverName) + return NULL; + len = strlen (driverName); + if (len >= 31) + return NULL; + memcpy (ret, driverName, len+1); + Xfree(driverName); + return ret; + } + return NULL; +} + + +/* + * Exported function for obtaining a driver's option list (UTF-8 encoded XML). + * + * The returned char pointer points directly into the driver. Therefore + * it should be treated as a constant. + * + * If the driver was not found or does not support configuration NULL is + * returned. + * + * Note: In a standard GLX imlementation the driver remains opened after + * this function returns. + */ +const char *glXGetDriverConfig(const char *driverName) { + /* the apple stub driver does not support configuration */ + return NULL; +} + + +static void driDestroyDisplay(Display *dpy, void *private) +{ + __DRIdisplayPrivate *pdpyp = (__DRIdisplayPrivate *)private; + + if (pdpyp) { + Xfree(pdpyp->libraryHandles); + Xfree(pdpyp); + } +} + + +void *driCreateDisplay(Display *dpy, __DRIdisplay *pdisp) +{ + const int numScreens = ScreenCount(dpy); + __DRIdisplayPrivate *pdpyp; + int eventBase, errorBase; + int major, minor, patch; + int scrn; + + /* Initialize these fields to NULL in case we fail. + * If we don't do this we may later get segfaults trying to free random + * addresses when the display is closed. + */ + pdisp->private = NULL; + pdisp->destroyDisplay = NULL; + pdisp->createScreen = NULL; + + if (!XAppleDRIQueryExtension(dpy, &eventBase, &errorBase)) { + return NULL; + } + + if (!XAppleDRIQueryVersion(dpy, &major, &minor, &patch)) { + return NULL; + } + + pdpyp = (__DRIdisplayPrivate *)Xmalloc(sizeof(__DRIdisplayPrivate)); + if (!pdpyp) { + return NULL; + } + + pdpyp->driMajor = major; + pdpyp->driMinor = minor; + pdpyp->driPatch = patch; + + pdisp->destroyDisplay = driDestroyDisplay; + + /* allocate array of pointers to createScreen funcs */ + pdisp->createScreen = (CreateScreenFunc *) Xmalloc(numScreens * sizeof(void *)); + if (!pdisp->createScreen) + return NULL; + + /* allocate array of pointers to createScreen funcs */ + pdisp->createNewScreen = (CreateNewScreenFunc *) Xmalloc(numScreens * sizeof(void *)); + if (!pdisp->createNewScreen) { + Xfree(pdisp->createScreen); + Xfree(pdpyp); + return NULL; + } + + /* allocate array of library handles */ + pdpyp->libraryHandles = (void **) Xmalloc(numScreens * sizeof(void*)); + if (!pdpyp->libraryHandles) { + Xfree(pdisp->createNewScreen); + Xfree(pdisp->createScreen); + Xfree(pdpyp); + return NULL; + } + + /* we'll statically bind to the __driCreateScreen function */ + for (scrn = 0; scrn < numScreens; scrn++) { + pdisp->createScreen[scrn] = __driCreateScreen; + pdisp->createNewScreen[scrn] = NULL; + pdpyp->libraryHandles[scrn] = NULL; + } + + return (void *)pdpyp; +} + + +/* +** Here we'll query the DRI driver for each screen and let each +** driver register its GL extension functions. We only have to +** do this once. But it MUST be done before we create any contexts +** (i.e. before any dispatch tables are created) and before +** glXGetProcAddressARB() returns. +** +** Currently called by glXGetProcAddress(), __glXInitialize(), and +** __glXNewIndirectAPI(). +*/ +void +__glXRegisterExtensions(void) +{ + static GLboolean alreadyCalled = GL_FALSE; + + if (alreadyCalled) { + return; + } + + __driRegisterExtensions (); + + alreadyCalled = GL_TRUE; +} + + +#endif /* GLX_DIRECT_RENDERING */ diff --git a/nx-X11/lib/GL/apple/dri_glx.h b/nx-X11/lib/GL/apple/dri_glx.h new file mode 100644 index 000000000..6d01b35a5 --- /dev/null +++ b/nx-X11/lib/GL/apple/dri_glx.h @@ -0,0 +1,67 @@ +/************************************************************************** + +Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. +Copyright (c) 2002 Apple Computer, Inc. +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, +distribute, sub license, 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 NON-INFRINGEMENT. +IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. + +**************************************************************************/ +/* $XFree86$ */ + +/* + * Authors: + * Kevin E. Martin <kevin@precisioninsight.com> + * Brian Paul <brian@precisioninsight.com> + * + */ + +#ifndef _DRI_GLX_H_ +#define _DRI_GLX_H_ + +#ifdef GLX_DIRECT_RENDERING + +struct __DRIdisplayPrivateRec { + /* + ** XFree86-DRI version information + */ + int driMajor; + int driMinor; + int driPatch; + + /* + ** Array of library handles [indexed by screen number] + */ + void **libraryHandles; +}; + +typedef struct __DRIdisplayPrivateRec __DRIdisplayPrivate; +typedef struct __DRIscreenPrivateRec __DRIscreenPrivate; +typedef struct __DRIvisualPrivateRec __DRIvisualPrivate; +typedef struct __DRIcontextPrivateRec __DRIcontextPrivate; +typedef struct __DRIdrawablePrivateRec __DRIdrawablePrivate; + +extern void *__driCreateScreen (Display *dpy, int scrn, __DRIscreen *psc, + int numConfigs, __GLXvisualConfig *config); +extern void __driRegisterExtensions (void); + +#endif /* GLX_DIRECT_RENDERING */ +#endif /* _DRI_GLX_H_ */ diff --git a/nx-X11/lib/GL/dri/drm/Imakefile b/nx-X11/lib/GL/dri/drm/Imakefile new file mode 100644 index 000000000..cfc4247dd --- /dev/null +++ b/nx-X11/lib/GL/dri/drm/Imakefile @@ -0,0 +1,54 @@ +XCOMM $XdotOrg: xc/lib/GL/dri/drm/Imakefile,v 1.6 2005/12/01 02:15:37 ajax Exp $ +XCOMM $XFree86: xc/lib/GL/dri/drm/Imakefile,v 1.22 2003/09/28 20:15:00 alanh Exp $ + +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + + DEFINES = $(ALLOC_DEFINES) + INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) \ + -I$(XF86OSSRC)/$(OS_SUBDIR)/drm \ + -I$(DRMSRCDIR)/$(OS_SUBDIR)-core \ + -I$(DRMSRCDIR)/$(OS_SUBDIR2)-core \ + -I$(XF86OSSRC) -I$(DRMSRCDIR)/shared-core + SRCS = xf86drm.c xf86drmHash.c xf86drmRandom.c xf86drmSL.c + OBJS = xf86drm.o xf86drmHash.o xf86drmRandom.o xf86drmSL.o + +#if defined(LinuxArchitecture) +OS_SUBDIR = linux +OS_SUBDIR2 = linux +OS_SUBDIR3 = shared-core +#endif +#if defined(FreeBSDArchitecture) || defined(BSDOSArchitecture) || \ + defined(NetBSDArchitecture) || defined(OpenBSDArchitecture) +OS_SUBDIR = bsd +OS_SUBDIR2 = linux +OS_SUBDIR3 = shared-core +#endif + +LIBDRM_DIR = ../../../../extras/drm/libdrm + +LinkSourceFile(xf86drm.c,$(LIBDRM_DIR)) + +LinkSourceFile(xf86drmHash.c,$(LIBDRM_DIR)) +LinkSourceFile(xf86drmRandom.c,$(LIBDRM_DIR)) +LinkSourceFile(xf86drmSL.c,$(LIBDRM_DIR)) + +LinkSourceFile(drm.h,$(LIBDRM_DIR)/../shared-core) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() + +InstallDriverSDKNonExecFile(drm.h,$(DRIVERSDKINCLUDEDIR)) diff --git a/nx-X11/lib/GL/glx/Imakefile b/nx-X11/lib/GL/glx/Imakefile new file mode 100644 index 000000000..97d3b3224 --- /dev/null +++ b/nx-X11/lib/GL/glx/Imakefile @@ -0,0 +1,233 @@ +XCOMM $XFree86: xc/lib/GL/glx/Imakefile,v 1.22 2003/11/12 00:10:24 dawes Exp $ +XCOMM The contents of this file are subject to the GLX Public License Version 1.0 +XCOMM (the "License"). You may not use this file except in compliance with the +XCOMM License. You may obtain a copy of the License at Silicon Graphics, Inc., +XCOMM attn: Legal Services, 2011 N. Shoreline Blvd., Mountain View, CA 94043 +XCOMM or at http://www.sgi.com/software/opensource/glx/license.html. +XCOMM +XCOMM Software distributed under the License is distributed on an "AS IS" +XCOMM basis. ALL WARRANTIES ARE DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY +XCOMM IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR +XCOMM PURPOSE OR OF NON- INFRINGEMENT. See the License for the specific +XCOMM language governing rights and limitations under the License. +XCOMM +XCOMM The Original Software is GLX version 1.2 source code, released February, +XCOMM 1999. The developer of the Original Software is Silicon Graphics, Inc. +XCOMM Those portions of the Subject Software created by Silicon Graphics, Inc. +XCOMM are Copyright (c) 1991-9 Silicon Graphics, Inc. All Rights Reserved. + +XCOMM $XdotOrg: xc/lib/GL/glx/Imakefile,v 1.12 2005/08/23 04:03:51 airlied Exp $ + +#include <Threads.tmpl> + +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + +XCOMM #define IHaveSubdirs +XCOMM #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)' +XCOMM +XCOMM SUBDIRS = \ +XCOMM glu \ +XCOMM glw + +/* Files from Mesa */ + +LinkSourceFile(glapi.c, $(MESASRCDIR)/src/mesa/glapi) +LinkSourceFile(glthread.c, $(MESASRCDIR)/src/mesa/glapi) +LinkSourceFile(glcontextmodes.c, $(MESASRCDIR)/src/mesa/drivers/dri/common) +LinkSourceFile(glcontextmodes.h, $(MESASRCDIR)/src/mesa/drivers/dri/common) +LinkSourceFile(dispatch.c, $(MESASRCDIR)/src/mesa/main) + +#ifdef i386Architecture +LinkSourceFile(glapi_x86.S, $(MESASRCDIR)/src/mesa/x86) +#endif +#ifdef SparcArchitecture +LinkSourceFile(glapi_sparc.S, $(MESASRCDIR)/src/mesa/sparc) +#endif + +LinkSourceFile(XF86dri.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(clientattrib.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(compsize.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(dri_glx.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(dri_glx.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(eval.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(glx_pbuffer.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(glx_query.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(glx_texture_compression.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(glxclient.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(glxcmds.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(glxext.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(glxextensions.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(glxextensions.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect_init.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect_init.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect_size.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect_size.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect_transpose_matrix.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect_va_private.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect_vertex_array.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect_vertex_array.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect_vertex_program.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(indirect_window_pos.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(packrender.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(packsingle.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(pixel.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(pixelstore.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(render2.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(renderpix.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(single2.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(singlepix.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(vertarr.c, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(xf86dri.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(xf86dristr.h, $(MESASRCDIR)/src/glx/x11) +LinkSourceFile(xfont.c, $(MESASRCDIR)/src/glx/x11) + +/* + * Maybe some of these could come from + * xc/extras/ogl-sample/main/glx/lib at some point. + */ + GLX_SRCS = \ + clientattrib.c \ + compsize.c \ + dispatch.c \ + eval.c \ + glapi.c \ + glthread.c \ + glx_pbuffer.c \ + glx_query.c \ + glx_texture_compression.c \ + glxcmds.c \ + glxext.c \ + glxextensions.c \ + glcontextmodes.c \ + indirect.c \ + indirect_init.c \ + indirect_size.c \ + indirect_transpose_matrix.c \ + indirect_vertex_array.c \ + indirect_vertex_program.c \ + indirect_window_pos.c \ + pixel.c \ + pixelstore.c \ + render2.c \ + renderpix.c \ + single2.c \ + singlepix.c \ + vertarr.c \ + xfont.c + + GLX_OBJS = \ + clientattrib.o \ + compsize.o \ + eval.o \ + dispatch.o \ + glapi.o \ + glthread.o \ + glx_pbuffer.o \ + glx_query.o \ + glx_texture_compression.o \ + glxcmds.o \ + glxext.o \ + glxextensions.o \ + glcontextmodes.o \ + indirect.o \ + indirect_init.o \ + indirect_size.o \ + indirect_transpose_matrix.o \ + indirect_vertex_array.o \ + indirect_vertex_program.o \ + indirect_window_pos.o \ + pixel.o \ + pixelstore.o \ + render2.o \ + renderpix.o \ + single2.o \ + singlepix.o \ + vertarr.o \ + xfont.o + + GLX_DEFS = GlxDefines VidModeExtensionDefines \ + -DDEFAULT_DRIVER_DIR=\"$(MODULEDIR)/dri\" + +#ifdef i386Architecture + ASM_DIR = x86 +#endif +#ifdef SparcArchitecture + ASM_DIR = sparc +#endif + +#if BuildXF86DRI + DRI_SRCS = dri_glx.c XF86dri.c + DRI_OBJS = dri_glx.o XF86dri.o + + DRI_INCS = -I$(SERVERSRC)/GL/dri +#if defined(i386Architecture) && MesaUseX86Asm + ASM_SRCS = glapi_x86.S + ASM_OBJS = glapi_x86.o + ASM_DEFS = -DUSE_X86_ASM +#endif +#if defined(SparcArchitecture) + ASM_SRCS = glapi_sparc.S + ASM_OBJS = glapi_sparc.o + ASM_DEFS = -DUSE_SPARC_ASM +#endif + +#if GlxBuiltInXMesa + XMESA_DEFINES = -DGLX_BUILT_IN_XMESA +#endif +#endif + +#if defined(DarwinArchitecture) || defined(OS2Architecture) || \ +defined(LynxOSArchitecture) +ALIAS_DEFINES = -DGLX_ALIAS_UNSUPPORTED +#endif +#if defined(DarwinArchitecture) && BuildAppleDRI + DRI_SRCS = XF86dri.c + DRI_OBJS = XF86dri.o + + DRI_INCS = -I$(SERVERSRC)/GL/dri +#endif + + SRCS = $(GLX_SRCS) $(ASM_SRCS) $(DRI_SRCS) + OBJS = $(GLX_OBJS) $(ASM_OBJS) $(DRI_OBJS) + DEFINES = $(GLX_DEFS) $(ASM_DEFS) $(XMESA_DEFINES) $(ALIAS_DEFINES) \ + $(THREADS_DEFINES) + + INCLUDES = -I$(XINCLUDESRC) \ + -I$(MESASRCDIR)/include \ + -I$(EXTINCSRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/drivers/x11 \ + -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + $(DRI_INCS) + +#include <Library.tmpl> + +LibraryObjectRule() + +#if BuildXF86DRI && defined(i386Architecture) && MesaUseX86Asm +ObjectFromAsmSource(glapi_x86, NullParameter) +#endif +#if BuildXF86DRI && defined(SparcArchitecture) +STD_CPP_DEFINES = StandardDefines $(PROJECT_DEFINES) +ObjectFromAsmSource(glapi_sparc, NullParameter) +#endif + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/Imakefile b/nx-X11/lib/GL/mesa/Imakefile new file mode 100644 index 000000000..523123ae8 --- /dev/null +++ b/nx-X11/lib/GL/mesa/Imakefile @@ -0,0 +1,73 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile,v 1.30tsi Exp $ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if defined(i386Architecture) && MesaUseX86Asm +#define MesaX86BuildDir /**/ +ASM_SUBDIRS = x86 +#endif +#ifdef SparcArchitecture +#define MesaSparcBuildDir /**/ +ASM_SUBDIRS = sparc +#endif +#define MesaBuildDir /**/ +#define NeedToLinkMesaSrc + +#ifdef UseCompaqMathLibrary + MATH_DEFINES = -DCCPML +#endif + + DEFINES = $(ALLOC_DEFINES) GlxDefines \ + $(MESA_ASM_DEFINES) $(MATH_DEFINES) + INCLUDES = -I$(INCLUDESRC) -I$(XINCLUDESRC) -I$(EXTINCSRC) \ + -I$(GLXLIBSRC)/dri \ + -I$(MESASRCDIR)/include -I$(GLXLIBSRC)/include + +#include <Library.tmpl> + +LibraryObjectRule() + +#define IHaveSubdirs +#define PassCDebugFlags + +SUBDIRS = $(ASM_SUBDIRS) array_cache main math swrast swrast_setup tnl tnl_dd shader + + +MakeSubdirs($(SUBDIRS)) +DependSubdirs($(SUBDIRS)) + + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/Imakefile.inc b/nx-X11/lib/GL/mesa/Imakefile.inc new file mode 100644 index 000000000..03a7971f8 --- /dev/null +++ b/nx-X11/lib/GL/mesa/Imakefile.inc @@ -0,0 +1,57 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile.inc,v 1.7tsi Exp $ + +#ifndef MesaBuildDir +#define MesaBuildDir $(GLXLIBSRC)/mesa/ +#endif + +MESABUILDDIR = MesaBuildDir + +COREMESASRCS = $(COREMESABASESRCS) \ + $(MESA_AC_SRCS) \ + $(MESA_MATH_SRCS) \ + $(MESA_SWRAST_SRCS) \ + $(MESA_SWR_SETUP_SRCS) \ + $(MESA_TNL_SRCS) \ + $(MESA_SHADER_SRCS) \ + $(MESA_GRAMMAR_SRCS) \ + $(MESA_SLANG_SRCS) + +COREMESAOBJS = $(COREMESABASEOBJS) \ + $(MESA_AC_OBJS) \ + $(MESA_MATH_OBJS) \ + $(MESA_SWRAST_OBJS) \ + $(MESA_SWR_SETUP_OBJS) \ + $(MESA_TNL_OBJS) \ + $(MESA_SHADER_OBJS) \ + $(MESA_GRAMMAR_OBJS) \ + $(MESA_SLANG_OBJS) + +COREMESAUOBJS = $(COREMESABASEUOBJS) \ + $(MESA_AC_UOBJS) \ + $(MESA_MATH_UOBJS) \ + $(MESA_SWRAST_UOBJS) \ + $(MESA_SWR_SETUP_UOBJS) \ + $(MESA_TNL_UOBJS) \ + $(MESA_SHADER_UOBJS) \ + $(MESA_GRAMMAR_UOBJS) \ + $(MESA_SLANG_UOBJS) + +COREMESADOBJS = $(COREMESABASEDOBJS) \ + $(MESA_AC_DOBJS) \ + $(MESA_MATH_DOBJS) \ + $(MESA_SWRAST_DOBJS) \ + $(MESA_SWR_SETUP_DOBJS) \ + $(MESA_TNL_DOBJS) \ + $(MESA_SHADER_DOBJS) \ + $(MESA_GRAMMAR_DOBJS) \ + $(MESA_SLANG_DOBJS) + +COREMESAPOBJS = $(COREMESABASEPOBJS) \ + $(MESA_AC_POBJS) \ + $(MESA_MATH_POBJS) \ + $(MESA_SWRAST_POBJS) \ + $(MESA_SWR_SETUP_POBJS) \ + $(MESA_TNL_POBJS) \ + $(MESA_SHADER_POBJS) \ + $(MESA_GRAMMAR_POBJS) \ + $(MESA_SLANG_POBJS) diff --git a/nx-X11/lib/GL/mesa/array_cache/Imakefile b/nx-X11/lib/GL/mesa/array_cache/Imakefile new file mode 100644 index 000000000..40c9c6b52 --- /dev/null +++ b/nx-X11/lib/GL/mesa/array_cache/Imakefile @@ -0,0 +1,91 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/array_cache/Imakefile,v 1.8 2002/11/25 12:58:55 tsi Exp $ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + + +#define MesaACBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER + DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \ + -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/array_cache \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/math \ + -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/include \ + -I../../../include -I$(XINCLUDESRC) + + INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES) + SRCS = $(MESA_AC_SRCS) + OBJS = $(MESA_AC_OBJS) + + +#if defined(i386Architecture) && MesaUseX86Asm + ASM_SRCS = + ASM_OBJS = +#if MesaUseMMX + MMX_DEFS = -DUSE_MMX_ASM +#endif +#if MesaUse3DNow + 3DNOW_DEFS = -DUSE_3DNOW_ASM +#endif +#if MesaUseSSE + SSE_DEFS = -DUSE_SSE_ASM +#endif + ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS) +#endif + +#ifdef SparcArchitecture + ASM_SRCS = + ASM_OBJS = + ASM_DEFS = -DUSE_SPARC_ASM +#endif + +#ifdef UseCompaqMathLibrary + MATHDEF = -DCCPML +#endif + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/array_cache/Imakefile.inc b/nx-X11/lib/GL/mesa/array_cache/Imakefile.inc new file mode 100644 index 000000000..9a5044791 --- /dev/null +++ b/nx-X11/lib/GL/mesa/array_cache/Imakefile.inc @@ -0,0 +1,34 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/array_cache/Imakefile.inc,v 1.1tsi Exp $ + +#ifndef MesaACBuildDir +#define MesaACBuildDir $(GLXLIBSRC)/mesa/array_cache/ +#endif + +MESAACBUILDDIR = MesaACBuildDir + + MESA_AC_SRCS = $(MESAACBUILDDIR)ac_context.c \ + $(MESAACBUILDDIR)ac_import.c + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(acache.h, $(MESASRCDIR)/src/mesa/array_cache) +LinkSourceFile(ac_context.c, $(MESASRCDIR)/src/mesa/array_cache) +LinkSourceFile(ac_context.h, $(MESASRCDIR)/src/mesa/array_cache) +LinkSourceFile(ac_import.c, $(MESASRCDIR)/src/mesa/array_cache) +#endif + + MESA_AC_OBJS = $(MESAACBUILDDIR)ac_context.o \ + $(MESAACBUILDDIR)ac_import.o + +#if defined(DoSharedLib) && DoSharedLib + MESA_AC_UOBJS = $(MESAACBUILDDIR)unshared/ac_context.o \ + $(MESAACBUILDDIR)unshared/ac_import.o +#else + MESA_AC_UOBJS = $(MESA_AC_OBJS) +#endif + + MESA_AC_DOBJS = $(MESAACBUILDDIR)debugger/ac_context.o \ + $(MESAACBUILDDIR)debugger/ac_import.o + + MESA_AC_POBJS = $(MESAACBUILDDIR)profiled/ac_context.o \ + $(MESAACBUILDDIR)profiled/ac_import.o + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/Imakefile new file mode 100644 index 000000000..eba13848b --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/Imakefile @@ -0,0 +1,21 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/Imakefile,v 1.18 2001/03/23 19:18:38 dawes Exp $ + +#ifdef DriDrivers + +#define IHaveSubdirs +#define PassCDebugFlags + +DRI_DRIVERS = DriDrivers + +#if BuildDevelDRIDrivers +DEVEL_DRI_DRIVERS = DevelDRIDrivers +#endif + +SUBDIRS = common $(DRI_DRIVERS) $(DEVEL_DRI_DRIVERS) + +MakeSubdirs($(SUBDIRS)) +DependSubdirs($(SUBDIRS)) + +DependTarget() + +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile new file mode 100644 index 000000000..d5c8dc7fa --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile @@ -0,0 +1,44 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/common/Imakefile,v 1.6 2001/04/03 02:29:34 dawes Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif + +#define NeedToLinkMesaSrc +#define MesaDrvCommonBuildDir /**/ +#include "Imakefile.inc" + + DEFINES = $(ALLOC_DEFINES) $(COMMON_DRI_DEFINES) $(MESA_ASM_DEFINES) + INCLUDES = $(COMMON_X_INCLUDES) $(COMMON_MESA_INCLUDES) \ + $(COMMON_DRI_INCLUDES) $(EXPATINCLUDES) + + SRCS = $(COMMONSRCS) + OBJS = $(COMMONOBJS) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile.inc new file mode 100644 index 000000000..388b724b2 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/common/Imakefile.inc @@ -0,0 +1,105 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/common/Imakefile.inc,v 1.3 2003/05/27 16:34:32 tsi Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvCommonBuildDir +#define MesaDrvCommonBuildDir $(MESADRVSRCDIR)/common/ +#endif + +MESADRVCOMMONBUILDDIR = MesaDrvCommonBuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + COMMON_DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=$(X_BYTE_ORDER) -DIN_DRI_DRIVER + COMMON_DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(XF86COMSRC) \ + -I$(GLXLIBSRC)/dri/drm \ + -I$(GLXLIBSRC)/include \ + -I$(DRMSRCDIR)/shared-core \ + -I$(MESASRCDIR)/include/GL/internal +#endif + +COMMON_MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/../common \ + -I$(MESASRCDIR)/include + COMMON_X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + COMMONSRCS = $(MESADRVCOMMONBUILDDIR)utils.c \ + $(MESADRVCOMMONBUILDDIR)vblank.c \ + $(MESADRVCOMMONBUILDDIR)texmem.c \ + $(MESADRVCOMMONBUILDDIR)xmlconfig.c \ + $(MESADRVCOMMONBUILDDIR)driverfuncs.c \ + $(MESADRVCOMMONBUILDDIR)dri_util.c \ + $(MESADRVCOMMONBUILDDIR)glcontextmodes.c \ + $(MESADRVCOMMONBUILDDIR)drirenderbuffer.c + + COMMONOBJS = $(MESADRVCOMMONBUILDDIR)utils.o \ + $(MESADRVCOMMONBUILDDIR)vblank.o \ + $(MESADRVCOMMONBUILDDIR)texmem.o \ + $(MESADRVCOMMONBUILDDIR)xmlconfig.o \ + $(MESADRVCOMMONBUILDDIR)driverfuncs.o \ + $(MESADRVCOMMONBUILDDIR)dri_util.o \ + $(MESADRVCOMMONBUILDDIR)glcontextmodes.o \ + $(MESADRVCOMMONBUILDDIR)drirenderbuffer.o + + COMMONUOBJS = $(MESADRVCOMMONBUILDDIR)unshared/utils.o \ + $(MESADRVCOMMONBUILDDIR)unshared/vblank.o \ + $(MESADRVCOMMONBUILDDIR)unshared/texmem.o \ + $(MESADRVCOMMONBUILDDIR)unshared/xmlconfig.o \ + $(MESADRVCOMMONBUILDDIR)unshared/driverfuncs.o \ + $(MESADRVCOMMONBUILDDIR)unshared/dri_util.o \ + $(MESADRVCOMMONBUILDDIR)unshared/glcontextmodes.o \ + $(MESADRVCOMMONBUILDDIR)unshared/drirenderbuffer.o + + COMMONDOBJS = $(MESADRVCOMMONBUILDDIR)debugger/utils.o \ + $(MESADRVCOMMONBUILDDIR)debugger/vblank.o \ + $(MESADRVCOMMONBUILDDIR)debugger/texmem.o \ + $(MESADRVCOMMONBUILDDIR)debugger/xmlconfig.o \ + $(MESADRVCOMMONBUILDDIR)debugger/driverfuncs.o \ + $(MESADRVCOMMONBUILDDIR)debugger/dri_util.o \ + $(MESADRVCOMMONBUILDDIR)debugger/glcontextmodes.o \ + $(MESADRVCOMMONBUILDDIR)debugger/drirenderbuffer.o + + COMMONPOBJS = $(MESADRVCOMMONBUILDDIR)profiled/utils.o \ + $(MESADRVCOMMONBUILDDIR)profiled/vblank.o \ + $(MESADRVCOMMONBUILDDIR)profiled/texmem.o \ + $(MESADRVCOMMONBUILDDIR)profiled/xmlconfig.o \ + $(MESADRVCOMMONBUILDDIR)profiled/driverfuncs.o \ + $(MESADRVCOMMONBUILDDIR)profiled/dri_util.o \ + $(MESADRVCOMMONBUILDDIR)profiled/glcontextmodes.o \ + $(MESADRVCOMMONBUILDDIR)profiled/drirenderbuffer.o + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(texmem.c, $(MESADRVSRCDIR)/common) +LinkSourceFile(texmem.h, $(MESADRVSRCDIR)/common) +LinkSourceFile(utils.c, $(MESADRVSRCDIR)/common) +LinkSourceFile(utils.h, $(MESADRVSRCDIR)/common) +LinkSourceFile(vblank.c, $(MESADRVSRCDIR)/common) +LinkSourceFile(vblank.h, $(MESADRVSRCDIR)/common) +LinkSourceFile(xmlconfig.c, $(MESADRVSRCDIR)/common) +LinkSourceFile(xmlconfig.h, $(MESADRVSRCDIR)/common) +LinkSourceFile(driverfuncs.c, $(MESADRVSRCDIR)/../common) +LinkSourceFile(driverfuncs.h, $(MESADRVSRCDIR)/../common) +LinkSourceFile(dri_util.c, $(MESADRVSRCDIR)/common) +LinkSourceFile(dri_util.h, $(MESADRVSRCDIR)/common) +LinkSourceFile(glcontextmodes.c, $(MESADRVSRCDIR)/common) +LinkSourceFile(glcontextmodes.h, $(MESADRVSRCDIR)/common) +LinkSourceFile(drirenderbuffer.c, $(MESADRVSRCDIR)/common) +LinkSourceFile(drirenderbuffer.h, $(MESADRVSRCDIR)/common) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/ffb/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/ffb/Imakefile new file mode 100644 index 000000000..7d98c1912 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/ffb/Imakefile @@ -0,0 +1,77 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/ffb/Imakefile,v 1.15 2002/02/23 00:45:48 dawes Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) \ + -I$(XF86DRIVERSRC)/sunffb + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(FFBSRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(FFBOBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(FFBOBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = ffb_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _ffb_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/ffb/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/ffb/Imakefile.inc new file mode 100644 index 000000000..3ef08a64a --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/ffb/Imakefile.inc @@ -0,0 +1,151 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/ffb/Imakefile.inc,v 1.3 2002/02/22 21:32:58 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvFfbBuildDir +#define MesaDrvFfbBuildDir /**/ +#endif +MESADRVFFBBUILDDIR = MesaDrvFfbBuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=ByteOrder -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/ffb + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + FFBSRCS = $(MESADRVFFBBUILDDIR)ffb_bitmap.c \ + $(MESADRVFFBBUILDDIR)ffb_clear.c \ + $(MESADRVFFBBUILDDIR)ffb_dd.c \ + $(MESADRVFFBBUILDDIR)ffb_depth.c \ + /* $(MESADRVFFBBUILDDIR)ffb_fog.c */ \ + $(MESADRVFFBBUILDDIR)ffb_lines.c \ + $(MESADRVFFBBUILDDIR)ffb_points.c \ + $(MESADRVFFBBUILDDIR)ffb_span.c \ + $(MESADRVFFBBUILDDIR)ffb_state.c \ + $(MESADRVFFBBUILDDIR)ffb_stencil.c \ + $(MESADRVFFBBUILDDIR)ffb_tex.c \ + $(MESADRVFFBBUILDDIR)ffb_tris.c \ + $(MESADRVFFBBUILDDIR)ffb_vb.c \ + $(MESADRVFFBBUILDDIR)ffb_xmesa.c + + FFBOBJS = $(MESADRVFFBBUILDDIR)ffb_bitmap.o \ + $(MESADRVFFBBUILDDIR)ffb_clear.o \ + $(MESADRVFFBBUILDDIR)ffb_dd.o \ + $(MESADRVFFBBUILDDIR)ffb_depth.o \ + /* $(MESADRVFFBBUILDDIR)ffb_fog.o */ \ + $(MESADRVFFBBUILDDIR)ffb_lines.o \ + $(MESADRVFFBBUILDDIR)ffb_points.o \ + $(MESADRVFFBBUILDDIR)ffb_span.o \ + $(MESADRVFFBBUILDDIR)ffb_state.o \ + $(MESADRVFFBBUILDDIR)ffb_stencil.o \ + $(MESADRVFFBBUILDDIR)ffb_tex.o \ + $(MESADRVFFBBUILDDIR)ffb_tris.o \ + $(MESADRVFFBBUILDDIR)ffb_vb.o \ + $(MESADRVFFBBUILDDIR)ffb_xmesa.o + + FFBUOBJS = $(MESADRVFFBBUILDDIR)unshared/ffb_bitmap.o \ + $(MESADRVFFBBUILDDIR)unshared/ffb_clear.o \ + $(MESADRVFFBBUILDDIR)unshared/ffb_dd.o \ + $(MESADRVFFBBUILDDIR)unshared/ffb_depth.o \ + /* $(MESADRVFFBBUILDDIR)unshared/ffb_fog.o */ \ + $(MESADRVFFBBUILDDIR)unshared/ffb_lines.o \ + $(MESADRVFFBBUILDDIR)unshared/ffb_points.o \ + $(MESADRVFFBBUILDDIR)unshared/ffb_span.o \ + $(MESADRVFFBBUILDDIR)unshared/ffb_state.o \ + $(MESADRVFFBBUILDDIR)unshared/ffb_stencil.o \ + $(MESADRVFFBBUILDDIR)unshared/ffb_tex.o \ + $(MESADRVFFBBUILDDIR)unshared/ffb_tris.o \ + $(MESADRVFFBBUILDDIR)unshared/ffb_vb.o \ + $(MESADRVFFBBUILDDIR)unshared/ffb_xmesa.o + + FFBDOBJS = $(MESADRVFFBBUILDDIR)debugger/ffb_bitmap.o \ + $(MESADRVFFBBUILDDIR)debugger/ffb_clear.o \ + $(MESADRVFFBBUILDDIR)debugger/ffb_dd.o \ + $(MESADRVFFBBUILDDIR)debugger/ffb_depth.o \ + /* $(MESADRVFFBBUILDDIR)debugger/ffb_fog.o */ \ + $(MESADRVFFBBUILDDIR)debugger/ffb_lines.o \ + $(MESADRVFFBBUILDDIR)debugger/ffb_points.o \ + $(MESADRVFFBBUILDDIR)debugger/ffb_span.o \ + $(MESADRVFFBBUILDDIR)debugger/ffb_state.o \ + $(MESADRVFFBBUILDDIR)debugger/ffb_stencil.o \ + $(MESADRVFFBBUILDDIR)debugger/ffb_tex.o \ + $(MESADRVFFBBUILDDIR)debugger/ffb_tris.o \ + $(MESADRVFFBBUILDDIR)debugger/ffb_vb.o \ + $(MESADRVFFBBUILDDIR)debugger/ffb_xmesa.o + + FFBPOBJS = $(MESADRVFFBBUILDDIR)profiled/ffb_bitmap.o \ + $(MESADRVFFBBUILDDIR)profiled/ffb_clear.o \ + $(MESADRVFFBBUILDDIR)profiled/ffb_dd.o \ + $(MESADRVFFBBUILDDIR)profiled/ffb_depth.o \ + /* $(MESADRVFFBBUILDDIR)profiled/ffb_fog.o */ \ + $(MESADRVFFBBUILDDIR)profiled/ffb_lines.o \ + $(MESADRVFFBBUILDDIR)profiled/ffb_points.o \ + $(MESADRVFFBBUILDDIR)profiled/ffb_span.o \ + $(MESADRVFFBBUILDDIR)profiled/ffb_state.o \ + $(MESADRVFFBBUILDDIR)profiled/ffb_stencil.o \ + $(MESADRVFFBBUILDDIR)profiled/ffb_tex.o \ + $(MESADRVFFBBUILDDIR)profiled/ffb_tris.o \ + $(MESADRVFFBBUILDDIR)profiled/ffb_vb.o \ + $(MESADRVFFBBUILDDIR)profiled/ffb_xmesa.o + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(ffb_bitmap.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_bitmap.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_clear.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_clear.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_context.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_dd.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_dd.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_depth.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_depth.h, $(MESADRVSRCDIR)/ffb) +/* LinkSourceFile(ffb_fog.c, $(MESADRVSRCDIR)/ffb) */ +LinkSourceFile(ffb_fifo.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_lines.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_lines.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_linetmp.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_lock.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_points.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_points.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_pointtmp.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_rendertmp.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_span.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_span.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_state.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_state.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_stencil.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_stencil.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_tex.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_tex.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_tris.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_tris.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_tritmp.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_vb.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_vb.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_vbtmp.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_vtxfmt.h, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_xmesa.c, $(MESADRVSRCDIR)/ffb) +LinkSourceFile(ffb_xmesa.h, $(MESADRVSRCDIR)/ffb) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/gamma/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/gamma/Imakefile new file mode 100644 index 000000000..490f8ccec --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/gamma/Imakefile @@ -0,0 +1,77 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/gamma/Imakefile,v 1.25 2002/02/23 00:45:49 dawes Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(GAMMASRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(GAMMAOBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(GAMMAOBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = gamma_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _gamma_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/gamma/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/gamma/Imakefile.inc new file mode 100644 index 000000000..e42cc5ce6 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/gamma/Imakefile.inc @@ -0,0 +1,140 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/gamma/Imakefile.inc,v 1.2 2001/05/02 15:06:03 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvGammaBuildDir +#define MesaDrvGammaBuildDir /**/ +#endif +MESADRVGAMMABUILDDIR = MesaDrvGammaBuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=ByteOrder -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/glint \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/gamma + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + + GAMMASRCS = $(MESADRVGAMMABUILDDIR)gamma_context.c \ + $(MESADRVGAMMABUILDDIR)gamma_dd.c \ + $(MESADRVGAMMABUILDDIR)gamma_inithw.c \ + $(MESADRVGAMMABUILDDIR)gamma_lock.c \ + $(MESADRVGAMMABUILDDIR)gamma_render.c \ + $(MESADRVGAMMABUILDDIR)gamma_screen.c \ + $(MESADRVGAMMABUILDDIR)gamma_span.c \ + $(MESADRVGAMMABUILDDIR)gamma_state.c \ + $(MESADRVGAMMABUILDDIR)gamma_tex.c \ + $(MESADRVGAMMABUILDDIR)gamma_texmem.c \ + $(MESADRVGAMMABUILDDIR)gamma_texstate.c \ + $(MESADRVGAMMABUILDDIR)gamma_tris.c \ + $(MESADRVGAMMABUILDDIR)gamma_vb.c \ + $(MESADRVGAMMABUILDDIR)gamma_xmesa.c + + GAMMAOBJS = $(MESADRVGAMMABUILDDIR)gamma_context.o \ + $(MESADRVGAMMABUILDDIR)gamma_dd.o \ + $(MESADRVGAMMABUILDDIR)gamma_inithw.o \ + $(MESADRVGAMMABUILDDIR)gamma_lock.o \ + $(MESADRVGAMMABUILDDIR)gamma_render.o \ + $(MESADRVGAMMABUILDDIR)gamma_screen.o \ + $(MESADRVGAMMABUILDDIR)gamma_span.o \ + $(MESADRVGAMMABUILDDIR)gamma_state.o \ + $(MESADRVGAMMABUILDDIR)gamma_tex.o \ + $(MESADRVGAMMABUILDDIR)gamma_texmem.o \ + $(MESADRVGAMMABUILDDIR)gamma_texstate.o \ + $(MESADRVGAMMABUILDDIR)gamma_tris.o \ + $(MESADRVGAMMABUILDDIR)gamma_vb.o \ + $(MESADRVGAMMABUILDDIR)gamma_xmesa.o + + GAMMAUOBJS = $(MESADRVGAMMABUILDDIR)unshared/gamma_context.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_dd.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_inithw.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_lock.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_render.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_screen.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_span.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_state.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_tex.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_texmem.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_texstate.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_tris.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_vb.o \ + $(MESADRVGAMMABUILDDIR)unshared/gamma_xmesa.o + + GAMMADOBJS = $(MESADRVGAMMABUILDDIR)debugger/gamma_context.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_dd.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_inithw.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_lock.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_render.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_screen.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_span.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_state.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_tex.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_texmem.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_texstate.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_tris.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_vb.o \ + $(MESADRVGAMMABUILDDIR)debugger/gamma_xmesa.o + + GAMMAPOBJS = $(MESADRVGAMMABUILDDIR)profiled/gamma_context.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_dd.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_inithw.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_lock.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_render.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_screen.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_span.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_state.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_tex.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_texmem.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_texstate.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_tris.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_vb.o \ + $(MESADRVGAMMABUILDDIR)profiled/gamma_xmesa.o + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(gamma_context.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_context.h, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_client.h, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_dd.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_inithw.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_lock.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_lock.h, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_macros.h, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_render.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_regs.h, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_screen.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_screen.h, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_span.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_state.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_tex.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_texmem.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_texstate.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_tris.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_tris.h, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_tritmp.h, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_vb.c, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_vb.h, $(MESADRVSRCDIR)/gamma) +LinkSourceFile(gamma_xmesa.c, $(MESADRVSRCDIR)/gamma) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/i810/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/i810/Imakefile new file mode 100644 index 000000000..5d16f0108 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/i810/Imakefile @@ -0,0 +1,77 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/i810/Imakefile,v 1.23tsi Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) + + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(I810SRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(I810OBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(I810OBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = i810_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _i810_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/i810/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/i810/Imakefile.inc new file mode 100644 index 000000000..f540da75b --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/i810/Imakefile.inc @@ -0,0 +1,121 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/i810/Imakefile.inc,v 1.2 2001/05/02 15:06:03 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvI810BuildDir +#define MesaDrvI810BuildDir /**/ +#endif +MESADRVI810BUILDDIR = MesaDrvI810BuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=ByteOrder -DUSE_NEW_INTERFACE -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/i810 \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/i810 + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + I810SRCS = $(MESADRVI810BUILDDIR)i810context.c \ + $(MESADRVI810BUILDDIR)i810ioctl.c \ + $(MESADRVI810BUILDDIR)i810render.c \ + $(MESADRVI810BUILDDIR)i810screen.c \ + $(MESADRVI810BUILDDIR)i810span.c \ + $(MESADRVI810BUILDDIR)i810state.c \ + $(MESADRVI810BUILDDIR)i810tex.c \ + $(MESADRVI810BUILDDIR)i810texmem.c \ + $(MESADRVI810BUILDDIR)i810texstate.c \ + $(MESADRVI810BUILDDIR)i810tris.c \ + $(MESADRVI810BUILDDIR)i810vb.c + + I810OBJS = $(MESADRVI810BUILDDIR)i810context.o \ + $(MESADRVI810BUILDDIR)i810ioctl.o \ + $(MESADRVI810BUILDDIR)i810render.o \ + $(MESADRVI810BUILDDIR)i810screen.o \ + $(MESADRVI810BUILDDIR)i810span.o \ + $(MESADRVI810BUILDDIR)i810state.o \ + $(MESADRVI810BUILDDIR)i810tex.o \ + $(MESADRVI810BUILDDIR)i810texmem.o \ + $(MESADRVI810BUILDDIR)i810texstate.o \ + $(MESADRVI810BUILDDIR)i810tris.o \ + $(MESADRVI810BUILDDIR)i810vb.o + + I810UOBJS = $(MESADRVI810BUILDDIR)unshared/i810context.o \ + $(MESADRVI810BUILDDIR)unshared/i810ioctl.o \ + $(MESADRVI810BUILDDIR)unshared/i810render.o \ + $(MESADRVI810BUILDDIR)unshared/i810screen.o \ + $(MESADRVI810BUILDDIR)unshared/i810span.o \ + $(MESADRVI810BUILDDIR)unshared/i810state.o \ + $(MESADRVI810BUILDDIR)unshared/i810tex.o \ + $(MESADRVI810BUILDDIR)unshared/i810texmem.o \ + $(MESADRVI810BUILDDIR)unshared/i810texstate.o \ + $(MESADRVI810BUILDDIR)unshared/i810tris.o \ + $(MESADRVI810BUILDDIR)unshared/i810vb.o + + I810DOBJS = $(MESADRVI810BUILDDIR)debugger/i810context.o \ + $(MESADRVI810BUILDDIR)debugger/i810ioctl.o \ + $(MESADRVI810BUILDDIR)debugger/i810render.o \ + $(MESADRVI810BUILDDIR)debugger/i810screen.o \ + $(MESADRVI810BUILDDIR)debugger/i810span.o \ + $(MESADRVI810BUILDDIR)debugger/i810state.o \ + $(MESADRVI810BUILDDIR)debugger/i810tex.o \ + $(MESADRVI810BUILDDIR)debugger/i810texmem.o \ + $(MESADRVI810BUILDDIR)debugger/i810texstate.o \ + $(MESADRVI810BUILDDIR)debugger/i810tris.o \ + $(MESADRVI810BUILDDIR)debugger/i810vb.o + + I810POBJS = $(MESADRVI810BUILDDIR)profiled/i810context.o \ + $(MESADRVI810BUILDDIR)profiled/i810ioctl.o \ + $(MESADRVI810BUILDDIR)profiled/i810render.o \ + $(MESADRVI810BUILDDIR)profiled/i810screen.o \ + $(MESADRVI810BUILDDIR)profiled/i810span.o \ + $(MESADRVI810BUILDDIR)profiled/i810state.o \ + $(MESADRVI810BUILDDIR)profiled/i810tex.o \ + $(MESADRVI810BUILDDIR)profiled/i810texmem.o \ + $(MESADRVI810BUILDDIR)profiled/i810texstate.o \ + $(MESADRVI810BUILDDIR)profiled/i810tris.o \ + $(MESADRVI810BUILDDIR)profiled/i810vb.o + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(i810_3d_reg.h, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810context.c, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810context.h, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810ioctl.c, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810ioctl.h, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810render.c, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810screen.c, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810screen.h, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810span.c, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810span.h, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810state.c, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810state.h, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810tex.c, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810tex.h, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810texmem.c, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810texstate.c, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810tris.c, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810tris.h, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810vb.c, $(MESADRVSRCDIR)/i810) +LinkSourceFile(i810vb.h, $(MESADRVSRCDIR)/i810) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/i915/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/i915/Imakefile new file mode 100644 index 000000000..6aba077ba --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/i915/Imakefile @@ -0,0 +1,72 @@ +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) + + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(I915SRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(I915OBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(I915OBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = i915_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _i915_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/i915/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/i915/Imakefile.inc new file mode 100644 index 000000000..56e7e3d93 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/i915/Imakefile.inc @@ -0,0 +1,140 @@ +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvI915BuildDir +#define MesaDrvI915BuildDir /**/ +#endif +MESADRVI915BUILDDIR = MesaDrvI915BuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/i810 \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + I915SRCS = $(MESADRVI915BUILDDIR)i830_metaops.c \ + $(MESADRVI915BUILDDIR)i830_context.c \ + $(MESADRVI915BUILDDIR)i830_state.c \ + $(MESADRVI915BUILDDIR)i830_tex.c \ + $(MESADRVI915BUILDDIR)i830_texstate.c \ + $(MESADRVI915BUILDDIR)i830_texblend.c \ + $(MESADRVI915BUILDDIR)i830_vtbl.c \ + $(MESADRVI915BUILDDIR)i915_metaops.c \ + $(MESADRVI915BUILDDIR)i915_context.c \ + $(MESADRVI915BUILDDIR)i915_debug.c \ + $(MESADRVI915BUILDDIR)i915_fragprog.c \ + $(MESADRVI915BUILDDIR)i915_state.c \ + $(MESADRVI915BUILDDIR)i915_tex.c \ + $(MESADRVI915BUILDDIR)i915_texprog.c \ + $(MESADRVI915BUILDDIR)i915_texstate.c \ + $(MESADRVI915BUILDDIR)i915_program.c \ + $(MESADRVI915BUILDDIR)i915_vtbl.c \ + $(MESADRVI915BUILDDIR)intel_batchbuffer.c \ + $(MESADRVI915BUILDDIR)intel_context.c \ + $(MESADRVI915BUILDDIR)intel_ioctl.c \ + $(MESADRVI915BUILDDIR)intel_pixel.c \ + $(MESADRVI915BUILDDIR)intel_render.c \ + $(MESADRVI915BUILDDIR)intel_screen.c \ + $(MESADRVI915BUILDDIR)intel_span.c \ + $(MESADRVI915BUILDDIR)intel_state.c \ + $(MESADRVI915BUILDDIR)intel_tex.c \ + $(MESADRVI915BUILDDIR)intel_tris.c + + + + I915OBJS = $(MESADRVI915BUILDDIR)i830_metaops.o \ + $(MESADRVI915BUILDDIR)i830_context.o \ + $(MESADRVI915BUILDDIR)i830_state.o \ + $(MESADRVI915BUILDDIR)i830_tex.o \ + $(MESADRVI915BUILDDIR)i830_texstate.o \ + $(MESADRVI915BUILDDIR)i830_texblend.o \ + $(MESADRVI915BUILDDIR)i830_vtbl.o \ + $(MESADRVI915BUILDDIR)i915_metaops.o \ + $(MESADRVI915BUILDDIR)i915_context.o \ + $(MESADRVI915BUILDDIR)i915_debug.o \ + $(MESADRVI915BUILDDIR)i915_fragprog.o \ + $(MESADRVI915BUILDDIR)i915_state.o \ + $(MESADRVI915BUILDDIR)i915_tex.o \ + $(MESADRVI915BUILDDIR)i915_texprog.o \ + $(MESADRVI915BUILDDIR)i915_texstate.o \ + $(MESADRVI915BUILDDIR)i915_program.o \ + $(MESADRVI915BUILDDIR)i915_vtbl.o \ + $(MESADRVI915BUILDDIR)intel_batchbuffer.o \ + $(MESADRVI915BUILDDIR)intel_context.o \ + $(MESADRVI915BUILDDIR)intel_ioctl.o \ + $(MESADRVI915BUILDDIR)intel_pixel.o \ + $(MESADRVI915BUILDDIR)intel_render.o \ + $(MESADRVI915BUILDDIR)intel_screen.o \ + $(MESADRVI915BUILDDIR)intel_span.o \ + $(MESADRVI915BUILDDIR)intel_state.o \ + $(MESADRVI915BUILDDIR)intel_tex.o \ + $(MESADRVI915BUILDDIR)intel_tris.o + + I915UOBJS = + I915DOBJS = + I915POBJS = + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(i830_metaops.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i830_context.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i830_context.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i830_state.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i830_reg.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i830_tex.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i830_texstate.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i830_texblend.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i830_vtbl.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_metaops.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_context.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_context.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_debug.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_fragprog.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_state.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_tex.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_texprog.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_texstate.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_program.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_program.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_reg.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(i915_vtbl.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_batchbuffer.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_batchbuffer.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_context.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_context.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_ioctl.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_ioctl.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_pixel.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_reg.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_render.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_screen.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_screen.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_span.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_span.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_state.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_tex.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_tex.h, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_tris.c, $(MESADRVSRCDIR)/i915) +LinkSourceFile(intel_tris.h, $(MESADRVSRCDIR)/i915) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/mach64/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/mach64/Imakefile new file mode 100644 index 000000000..342ffd248 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/mach64/Imakefile @@ -0,0 +1,77 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/mach64/Imakefile,v 1.23tsi Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) + + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(Mach64SRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(Mach64OBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(Mach64OBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = mach64_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _mach64_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/mach64/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/mach64/Imakefile.inc new file mode 100644 index 000000000..b0074f170 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/mach64/Imakefile.inc @@ -0,0 +1,131 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/mach64/Imakefile.inc,v 1.2 2001/05/02 15:06:03 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvMach64BuildDir +#define MesaDrvMach64BuildDir /**/ +#endif +MESADRVMach64BUILDDIR = MesaDrvMach64BuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=ByteOrder -DUSE_NEW_INTERFACE -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core/ \ + -I$(XF86DRIVERSRC)/ati \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/mach64 + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + Mach64SRCS = $(MESADRVMach64BUILDDIR)mach64_context.c \ + $(MESADRVMach64BUILDDIR)mach64_dd.c \ + $(MESADRVMach64BUILDDIR)mach64_ioctl.c \ + $(MESADRVMach64BUILDDIR)mach64_lock.c \ + $(MESADRVMach64BUILDDIR)mach64_screen.c \ + $(MESADRVMach64BUILDDIR)mach64_span.c \ + $(MESADRVMach64BUILDDIR)mach64_state.c \ + $(MESADRVMach64BUILDDIR)mach64_tex.c \ + $(MESADRVMach64BUILDDIR)mach64_texmem.c \ + $(MESADRVMach64BUILDDIR)mach64_texstate.c \ + $(MESADRVMach64BUILDDIR)mach64_tris.c \ + $(MESADRVMach64BUILDDIR)mach64_vb.c + + Mach64OBJS = $(MESADRVMach64BUILDDIR)mach64_context.o \ + $(MESADRVMach64BUILDDIR)mach64_dd.o \ + $(MESADRVMach64BUILDDIR)mach64_ioctl.o \ + $(MESADRVMach64BUILDDIR)mach64_lock.o \ + $(MESADRVMach64BUILDDIR)mach64_screen.o \ + $(MESADRVMach64BUILDDIR)mach64_span.o \ + $(MESADRVMach64BUILDDIR)mach64_state.o \ + $(MESADRVMach64BUILDDIR)mach64_tex.o \ + $(MESADRVMach64BUILDDIR)mach64_texmem.o \ + $(MESADRVMach64BUILDDIR)mach64_texstate.o \ + $(MESADRVMach64BUILDDIR)mach64_tris.o \ + $(MESADRVMach64BUILDDIR)mach64_vb.o + + Mach64UOBJS = $(MESADRVMach64BUILDDIR)unshared/mach64_context.o \ + $(MESADRVMach64BUILDDIR)unshared/mach64_dd.o \ + $(MESADRVMach64BUILDDIR)unshared/mach64_ioctl.o \ + $(MESADRVMach64BUILDDIR)unshared/mach64_lock.o \ + $(MESADRVMach64BUILDDIR)unshared/mach64_screen.o \ + $(MESADRVMach64BUILDDIR)unshared/mach64_span.o \ + $(MESADRVMach64BUILDDIR)unshared/mach64_state.o \ + $(MESADRVMach64BUILDDIR)unshared/mach64_tex.o \ + $(MESADRVMach64BUILDDIR)unshared/mach64_texmem.o \ + $(MESADRVMach64BUILDDIR)unshared/mach64_texstate.o \ + $(MESADRVMach64BUILDDIR)unshared/mach64_tris.o \ + $(MESADRVMach64BUILDDIR)unshared/mach64_vb.o + + Mach64DOBJS = $(MESADRVMach64BUILDDIR)debugger/mach64_context.o \ + $(MESADRVMach64BUILDDIR)debugger/mach64_dd.o \ + $(MESADRVMach64BUILDDIR)debugger/mach64_ioctl.o \ + $(MESADRVMach64BUILDDIR)debugger/mach64_lock.o \ + $(MESADRVMach64BUILDDIR)debugger/mach64_screen.o \ + $(MESADRVMach64BUILDDIR)debugger/mach64_span.o \ + $(MESADRVMach64BUILDDIR)debugger/mach64_state.o \ + $(MESADRVMach64BUILDDIR)debugger/mach64_tex.o \ + $(MESADRVMach64BUILDDIR)debugger/mach64_texmem.o \ + $(MESADRVMach64BUILDDIR)debugger/mach64_texstate.o \ + $(MESADRVMach64BUILDDIR)debugger/mach64_tris.o \ + $(MESADRVMach64BUILDDIR)debugger/mach64_vb.o + + Mach64POBJS = $(MESADRVMach64BUILDDIR)profiled/mach64_context.o \ + $(MESADRVMach64BUILDDIR)profiled/mach64_dd.o \ + $(MESADRVMach64BUILDDIR)profiled/mach64_ioctl.o \ + $(MESADRVMach64BUILDDIR)profiled/mach64_lock.o \ + $(MESADRVMach64BUILDDIR)profiled/mach64_screen.o \ + $(MESADRVMach64BUILDDIR)profiled/mach64_span.o \ + $(MESADRVMach64BUILDDIR)profiled/mach64_state.o \ + $(MESADRVMach64BUILDDIR)profiled/mach64_tex.o \ + $(MESADRVMach64BUILDDIR)profiled/mach64_texmem.o \ + $(MESADRVMach64BUILDDIR)profiled/mach64_texstate.o \ + $(MESADRVMach64BUILDDIR)profiled/mach64_tris.o \ + $(MESADRVMach64BUILDDIR)profiled/mach64_vb.o + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(mach64_reg.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_context.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_context.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_dd.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_dd.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_ioctl.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_ioctl.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_lock.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_lock.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_native_vb.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_native_vbtmp.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_screen.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_screen.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_span.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_span.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_state.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_state.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_tex.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_tex.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_texmem.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_texstate.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_tris.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_tris.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_vb.c, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_vb.h, $(MESADRVSRCDIR)/mach64) +LinkSourceFile(mach64_vbtmp.h, $(MESADRVSRCDIR)/mach64) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/mga/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/mga/Imakefile new file mode 100644 index 000000000..5df7b681d --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/mga/Imakefile @@ -0,0 +1,78 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/mga/Imakefile,v 1.22 2002/02/23 00:45:50 dawes Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(MGASRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(MGAOBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(MGAOBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = mga_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _mga_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/mga/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/mga/Imakefile.inc new file mode 100644 index 000000000..a21278779 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/mga/Imakefile.inc @@ -0,0 +1,135 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/mga/Imakefile.inc,v 1.2 2001/05/02 15:06:03 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/src/drv +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvMgaBuildDir +#define MesaDrvMgaBuildDir /**/ +#endif +MESADRVMGABUILDDIR = MesaDrvMgaBuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=ByteOrder -DUSE_NEW_INTERFACE -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/mga \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/mga + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + MGASRCS = $(MESADRVMGABUILDDIR)mgadd.c \ + $(MESADRVMGABUILDDIR)mgarender.c \ + $(MESADRVMGABUILDDIR)mgaioctl.c \ + $(MESADRVMGABUILDDIR)mgapixel.c \ + $(MESADRVMGABUILDDIR)mgaspan.c \ + $(MESADRVMGABUILDDIR)mgastate.c \ + $(MESADRVMGABUILDDIR)mgatex.c \ + $(MESADRVMGABUILDDIR)mga_texcombine.c \ + $(MESADRVMGABUILDDIR)mgatexmem.c \ + $(MESADRVMGABUILDDIR)mga_texstate.c \ + $(MESADRVMGABUILDDIR)mgatris.c \ + $(MESADRVMGABUILDDIR)mgavb.c \ + $(MESADRVMGABUILDDIR)mga_xmesa.c \ + + MGAOBJS = $(MESADRVMGABUILDDIR)mgadd.o \ + $(MESADRVMGABUILDDIR)mgarender.o \ + $(MESADRVMGABUILDDIR)mgaioctl.o \ + $(MESADRVMGABUILDDIR)mgapixel.o \ + $(MESADRVMGABUILDDIR)mgaspan.o \ + $(MESADRVMGABUILDDIR)mgastate.o \ + $(MESADRVMGABUILDDIR)mgatex.o \ + $(MESADRVMGABUILDDIR)mga_texcombine.o \ + $(MESADRVMGABUILDDIR)mgatexmem.o \ + $(MESADRVMGABUILDDIR)mga_texstate.o \ + $(MESADRVMGABUILDDIR)mgatris.o \ + $(MESADRVMGABUILDDIR)mgavb.o \ + $(MESADRVMGABUILDDIR)mga_xmesa.o + + MGAUOBJS = $(MESADRVMGABUILDDIR)unshared/mgadd.o \ + $(MESADRVMGABUILDDIR)unshared/mgarender.o \ + $(MESADRVMGABUILDDIR)unshared/mgaioctl.o \ + $(MESADRVMGABUILDDIR)unshared/mgapixel.o \ + $(MESADRVMGABUILDDIR)unshared/mgaspan.o \ + $(MESADRVMGABUILDDIR)unshared/mgastate.o \ + $(MESADRVMGABUILDDIR)unshared/mgatex.o \ + $(MESADRVMGABUILDDIR)unshared/mga_texcombine.o \ + $(MESADRVMGABUILDDIR)unshared/mgatexmem.o \ + $(MESADRVMGABUILDDIR)unshared/mga_texstate.o \ + $(MESADRVMGABUILDDIR)unshared/mgatris.o \ + $(MESADRVMGABUILDDIR)unshared/mgavb.o \ + $(MESADRVMGABUILDDIR)unshared/mga_xmesa.o + + MGADOBJS = $(MESADRVMGABUILDDIR)debugger/mgadd.o \ + $(MESADRVMGABUILDDIR)debugger/mgarender.o \ + $(MESADRVMGABUILDDIR)debugger/mgaioctl.o \ + $(MESADRVMGABUILDDIR)debugger/mgapixel.o \ + $(MESADRVMGABUILDDIR)debugger/mgaspan.o \ + $(MESADRVMGABUILDDIR)debugger/mgastate.o \ + $(MESADRVMGABUILDDIR)debugger/mgatex.o \ + $(MESADRVMGABUILDDIR)debugger/mga_texcombine.o \ + $(MESADRVMGABUILDDIR)debugger/mgatexmem.o \ + $(MESADRVMGABUILDDIR)debugger/mga_texstate.o \ + $(MESADRVMGABUILDDIR)debugger/mgatris.o \ + $(MESADRVMGABUILDDIR)debugger/mgavb.o \ + $(MESADRVMGABUILDDIR)debugger/mga_xmesa.o + + MGAPOBJS = $(MESADRVMGABUILDDIR)profiled/mgadd.o \ + $(MESADRVMGABUILDDIR)profiled/mgarender.o \ + $(MESADRVMGABUILDDIR)profiled/mgaioctl.o \ + $(MESADRVMGABUILDDIR)profiled/mgapixel.o \ + $(MESADRVMGABUILDDIR)profiled/mgaspan.o \ + $(MESADRVMGABUILDDIR)profiled/mgastate.o \ + $(MESADRVMGABUILDDIR)profiled/mgatex.o \ + $(MESADRVMGABUILDDIR)profiled/mga_texcombine.o \ + $(MESADRVMGABUILDDIR)profiled/mgatexmem.o \ + $(MESADRVMGABUILDDIR)profiled/mga_texstate.o \ + $(MESADRVMGABUILDDIR)profiled/mgatris.o \ + $(MESADRVMGABUILDDIR)profiled/mgavb.o \ + $(MESADRVMGABUILDDIR)profiled/mga_xmesa.o + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(mgacontext.h, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgadd.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgadd.h, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgaioctl.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgaioctl.h, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgapixel.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgapixel.h, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgarender.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgaregs.h, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgaspan.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgaspan.h, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgastate.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgastate.h, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgatex.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgatex.h, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mga_texcombine.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgatexmem.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mga_texstate.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgatris.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgatris.h, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgavb.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mgavb.h, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mga_xmesa.c, $(MESADRVSRCDIR)/mga) +LinkSourceFile(mga_xmesa.h, $(MESADRVSRCDIR)/mga) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/r128/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/r128/Imakefile new file mode 100644 index 000000000..d7ad07895 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/r128/Imakefile @@ -0,0 +1,77 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/r128/Imakefile,v 1.19 2002/02/23 00:45:50 dawes Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(R128SRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(R128OBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(R128OBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = r128_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _r128_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/r128/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/r128/Imakefile.inc new file mode 100644 index 000000000..35d7761e8 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/r128/Imakefile.inc @@ -0,0 +1,123 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/r128/Imakefile.inc,v 1.3 2001/05/02 15:06:04 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvR128BuildDir +#define MesaDrvR128BuildDir /**/ +#endif +MESADRVR128BUILDDIR = MesaDrvR128BuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=ByteOrder -DUSE_NEW_INTERFACE -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(XF86COMSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/ati \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/r128 + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + R128SRCS = $(MESADRVR128BUILDDIR)r128_context.c \ + $(MESADRVR128BUILDDIR)r128_dd.c \ + $(MESADRVR128BUILDDIR)r128_ioctl.c \ + $(MESADRVR128BUILDDIR)r128_lock.c \ + $(MESADRVR128BUILDDIR)r128_screen.c \ + $(MESADRVR128BUILDDIR)r128_span.c \ + $(MESADRVR128BUILDDIR)r128_state.c \ + $(MESADRVR128BUILDDIR)r128_tex.c \ + $(MESADRVR128BUILDDIR)r128_texmem.c \ + $(MESADRVR128BUILDDIR)r128_texstate.c \ + $(MESADRVR128BUILDDIR)r128_tris.c + + R128OBJS = $(MESADRVR128BUILDDIR)r128_context.o \ + $(MESADRVR128BUILDDIR)r128_dd.o \ + $(MESADRVR128BUILDDIR)r128_ioctl.o \ + $(MESADRVR128BUILDDIR)r128_lock.o \ + $(MESADRVR128BUILDDIR)r128_screen.o \ + $(MESADRVR128BUILDDIR)r128_span.o \ + $(MESADRVR128BUILDDIR)r128_state.o \ + $(MESADRVR128BUILDDIR)r128_tex.o \ + $(MESADRVR128BUILDDIR)r128_texmem.o \ + $(MESADRVR128BUILDDIR)r128_texstate.o \ + $(MESADRVR128BUILDDIR)r128_tris.o + + R128UOBJS = $(MESADRVR128BUILDDIR)unshared/r128_context.o \ + $(MESADRVR128BUILDDIR)unshared/r128_dd.o \ + $(MESADRVR128BUILDDIR)unshared/r128_ioctl.o \ + $(MESADRVR128BUILDDIR)unshared/r128_lock.o \ + $(MESADRVR128BUILDDIR)unshared/r128_screen.o \ + $(MESADRVR128BUILDDIR)unshared/r128_span.o \ + $(MESADRVR128BUILDDIR)unshared/r128_state.o \ + $(MESADRVR128BUILDDIR)unshared/r128_tex.o \ + $(MESADRVR128BUILDDIR)unshared/r128_texmem.o \ + $(MESADRVR128BUILDDIR)unshared/r128_texstate.o \ + $(MESADRVR128BUILDDIR)unshared/r128_tris.o + + R128DOBJS = $(MESADRVR128BUILDDIR)debugger/r128_context.o \ + $(MESADRVR128BUILDDIR)debugger/r128_dd.o \ + $(MESADRVR128BUILDDIR)debugger/r128_ioctl.o \ + $(MESADRVR128BUILDDIR)debugger/r128_lock.o \ + $(MESADRVR128BUILDDIR)debugger/r128_screen.o \ + $(MESADRVR128BUILDDIR)debugger/r128_span.o \ + $(MESADRVR128BUILDDIR)debugger/r128_state.o \ + $(MESADRVR128BUILDDIR)debugger/r128_tex.o \ + $(MESADRVR128BUILDDIR)debugger/r128_texmem.o \ + $(MESADRVR128BUILDDIR)debugger/r128_texstate.o \ + $(MESADRVR128BUILDDIR)debugger/r128_tris.o + + R128POBJS = $(MESADRVR128BUILDDIR)profiled/r128_context.o \ + $(MESADRVR128BUILDDIR)profiled/r128_dd.o \ + $(MESADRVR128BUILDDIR)profiled/r128_ioctl.o \ + $(MESADRVR128BUILDDIR)profiled/r128_lock.o \ + $(MESADRVR128BUILDDIR)profiled/r128_screen.o \ + $(MESADRVR128BUILDDIR)profiled/r128_span.o \ + $(MESADRVR128BUILDDIR)profiled/r128_state.o \ + $(MESADRVR128BUILDDIR)profiled/r128_tex.o \ + $(MESADRVR128BUILDDIR)profiled/r128_texmem.o \ + $(MESADRVR128BUILDDIR)profiled/r128_texstate.o \ + $(MESADRVR128BUILDDIR)profiled/r128_tris.o + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(r128_context.c, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_context.h, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_dd.c, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_dd.h, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_ioctl.c, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_ioctl.h, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_lock.c, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_lock.h, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_screen.c, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_screen.h, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_span.c, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_span.h, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_state.c, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_state.h, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_tex.c, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_tex.h, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_texmem.c, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_texobj.h, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_texstate.c, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_tris.c, $(MESADRVSRCDIR)/r128) +LinkSourceFile(r128_tris.h, $(MESADRVSRCDIR)/r128) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/r200/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/r200/Imakefile new file mode 100644 index 000000000..5f8bb3846 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/r200/Imakefile @@ -0,0 +1,78 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/r200/Imakefile,v 1.9 2002/02/23 00:45:50 dawes Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(R200SRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(R200OBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(R200OBJS)) +NormalLintTarget($(SRCS)) + +ObjectFromAsmSource(r200_vtxtmp_x86, NullParameter) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = r200_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _r200_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/r200/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/r200/Imakefile.inc new file mode 100644 index 000000000..fa635e4ba --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/r200/Imakefile.inc @@ -0,0 +1,200 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/r200/Imakefile.inc,v 1.2 2001/05/02 15:06:04 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvR200BuildDir +#define MesaDrvR200BuildDir /**/ +#endif +MESADRVR200BUILDDIR = MesaDrvR200BuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=ByteOrder -DUSE_NEW_INTERFACE -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86COMSRC) \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/ati \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/r200 \ + -I$(MESADRVSRCDIR)/radeon/server + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + R200SRCS = $(MESADRVR200BUILDDIR)r200_context.c \ + $(MESADRVR200BUILDDIR)r200_sanity.c \ + $(MESADRVR200BUILDDIR)r200_state.c \ + $(MESADRVR200BUILDDIR)r200_state_init.c \ + $(MESADRVR200BUILDDIR)r200_swtcl.c \ + $(MESADRVR200BUILDDIR)r200_cmdbuf.c \ + $(MESADRVR200BUILDDIR)r200_ioctl.c \ + $(MESADRVR200BUILDDIR)r200_lock.c \ + $(MESADRVR200BUILDDIR)r200_maos.c \ + $(MESADRVR200BUILDDIR)r200_pixel.c \ + $(MESADRVR200BUILDDIR)r200_screen.c \ + $(MESADRVR200BUILDDIR)r200_span.c \ + $(MESADRVR200BUILDDIR)r200_tcl.c \ + $(MESADRVR200BUILDDIR)r200_tex.c \ + $(MESADRVR200BUILDDIR)r200_texmem.c \ + $(MESADRVR200BUILDDIR)r200_texstate.c \ + $(MESADRVR200BUILDDIR)r200_vtxfmt.c \ + $(MESADRVR200BUILDDIR)r200_vtxfmt_x86.c \ + $(MESADRVR200BUILDDIR)r200_vtxtmp_x86.S \ + $(MESADRVR200BUILDDIR)r200_vtxfmt_sse.c \ + $(MESADRVR200BUILDDIR)r200_vtxfmt_c.c + + R200OBJS = $(MESADRVR200BUILDDIR)r200_context.o \ + $(MESADRVR200BUILDDIR)r200_sanity.o \ + $(MESADRVR200BUILDDIR)r200_state.o \ + $(MESADRVR200BUILDDIR)r200_state_init.o \ + $(MESADRVR200BUILDDIR)r200_swtcl.o \ + $(MESADRVR200BUILDDIR)r200_cmdbuf.o \ + $(MESADRVR200BUILDDIR)r200_ioctl.o \ + $(MESADRVR200BUILDDIR)r200_lock.o \ + $(MESADRVR200BUILDDIR)r200_maos.o \ + $(MESADRVR200BUILDDIR)r200_pixel.o \ + $(MESADRVR200BUILDDIR)r200_screen.o \ + $(MESADRVR200BUILDDIR)r200_span.o \ + $(MESADRVR200BUILDDIR)r200_tcl.o \ + $(MESADRVR200BUILDDIR)r200_tex.o \ + $(MESADRVR200BUILDDIR)r200_texmem.o \ + $(MESADRVR200BUILDDIR)r200_texstate.o \ + $(MESADRVR200BUILDDIR)r200_vtxfmt.o \ + $(MESADRVR200BUILDDIR)r200_vtxfmt_c.o + +#ifdef i386Architecture + R200OBJS += $(MESADRVR200BUILDDIR)r200_vtxfmt_x86.o \ + $(MESADRVR200BUILDDIR)r200_vtxtmp_x86.o \ + $(MESADRVR200BUILDDIR)r200_vtxfmt_sse.o +#endif + + R200UOBJS = $(MESADRVR200BUILDDIR)unshared/r200_context.o \ + $(MESADRVR200BUILDDIR)unshared/r200_sanity.o \ + $(MESADRVR200BUILDDIR)unshared/r200_cmdbuf.o \ + $(MESADRVR200BUILDDIR)unshared/r200_ioctl.o \ + $(MESADRVR200BUILDDIR)unshared/r200_lock.o \ + $(MESADRVR200BUILDDIR)unshared/r200_maos.o \ + $(MESADRVR200BUILDDIR)unshared/r200_pixel.o \ + $(MESADRVR200BUILDDIR)unshared/r200_screen.o \ + $(MESADRVR200BUILDDIR)unshared/r200_span.o \ + $(MESADRVR200BUILDDIR)unshared/r200_state.o \ + $(MESADRVR200BUILDDIR)unshared/r200_state_init.o \ + $(MESADRVR200BUILDDIR)unshared/r200_swtcl.o \ + $(MESADRVR200BUILDDIR)unshared/r200_tcl.o \ + $(MESADRVR200BUILDDIR)unshared/r200_tex.o \ + $(MESADRVR200BUILDDIR)unshared/r200_texmem.o \ + $(MESADRVR200BUILDDIR)unshared/r200_texstate.o \ + $(MESADRVR200BUILDDIR)unshared/r200_vtxfmt.o \ + $(MESADRVR200BUILDDIR)unshared/r200_vtxfmt_c.o + +#ifdef i386Architecture + R200UOBJS += $(MESADRVR200BUILDDIR)unshared/r200_vtxfmt_x86.o \ + $(MESADRVR200BUILDDIR)unshared/r200_vtxtmp_x86.o \ + $(MESADRVR200BUILDDIR)unshared/r200_vtxfmt_sse.o +#endif + + R200DOBJS = $(MESADRVR200BUILDDIR)debugger/r200_context.o \ + $(MESADRVR200BUILDDIR)debugger/r200_sanity.o \ + $(MESADRVR200BUILDDIR)debugger/r200_cmdbuf.o \ + $(MESADRVR200BUILDDIR)debugger/r200_ioctl.o \ + $(MESADRVR200BUILDDIR)debugger/r200_lock.o \ + $(MESADRVR200BUILDDIR)debugger/r200_maos.o \ + $(MESADRVR200BUILDDIR)debugger/r200_pixel.o \ + $(MESADRVR200BUILDDIR)debugger/r200_screen.o \ + $(MESADRVR200BUILDDIR)debugger/r200_span.o \ + $(MESADRVR200BUILDDIR)debugger/r200_state.o \ + $(MESADRVR200BUILDDIR)debugger/r200_state_init.o \ + $(MESADRVR200BUILDDIR)debugger/r200_swtcl.o \ + $(MESADRVR200BUILDDIR)debugger/r200_tcl.o \ + $(MESADRVR200BUILDDIR)debugger/r200_tex.o \ + $(MESADRVR200BUILDDIR)debugger/r200_texmem.o \ + $(MESADRVR200BUILDDIR)debugger/r200_texstate.o \ + $(MESADRVR200BUILDDIR)debugger/r200_vtxfmt.o \ + $(MESADRVR200BUILDDIR)debugger/r200_vtxfmt_c.o + +#ifdef i386Architecture + R200DOBJS += $(MESADRVR200BUILDDIR)debugger/r200_vtxfmt_x86.o \ + $(MESADRVR200BUILDDIR)debugger/r200_vtxtmp_x86.o \ + $(MESADRVR200BUILDDIR)debugger/r200_vtxfmt_sse.o +#endif + + R200POBJS = $(MESADRVR200BUILDDIR)profiled/r200_context.o \ + $(MESADRVR200BUILDDIR)profiled/r200_sanity.o \ + $(MESADRVR200BUILDDIR)profiled/r200_cmdbuf.o \ + $(MESADRVR200BUILDDIR)profiled/r200_ioctl.o \ + $(MESADRVR200BUILDDIR)profiled/r200_lock.o \ + $(MESADRVR200BUILDDIR)profiled/r200_maos.o \ + $(MESADRVR200BUILDDIR)profiled/r200_pixel.o \ + $(MESADRVR200BUILDDIR)profiled/r200_screen.o \ + $(MESADRVR200BUILDDIR)profiled/r200_span.o \ + $(MESADRVR200BUILDDIR)profiled/r200_state.o \ + $(MESADRVR200BUILDDIR)profiled/r200_state_init.o \ + $(MESADRVR200BUILDDIR)profiled/r200_swtcl.o \ + $(MESADRVR200BUILDDIR)profiled/r200_tcl.o \ + $(MESADRVR200BUILDDIR)profiled/r200_tex.o \ + $(MESADRVR200BUILDDIR)profiled/r200_texmem.o \ + $(MESADRVR200BUILDDIR)profiled/r200_texstate.o \ + $(MESADRVR200BUILDDIR)profiled/r200_vtxfmt.o \ + $(MESADRVR200BUILDDIR)profiled/r200_vtxfmt_c.o + +#ifdef i386Architecture + R200POBJS += $(MESADRVR200BUILDDIR)profiled/r200_vtxfmt_x86.o \ + $(MESADRVR200BUILDDIR)profiled/r200_vtxtmp_x86.o \ + $(MESADRVR200BUILDDIR)profiled/r200_vtxfmt_sse.o +#endif + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(r200_context.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_context.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_cmdbuf.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_ioctl.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_ioctl.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_lock.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_lock.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_maos.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_maos.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_pixel.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_pixel.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_reg.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_screen.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_screen.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_span.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_span.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_sanity.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_sanity.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_state.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_state.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_state_init.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_swtcl.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_swtcl.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_tcl.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_tcl.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_tex.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_tex.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_texmem.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_texstate.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_vtxfmt.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_vtxfmt.h, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_vtxfmt_c.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_vtxfmt_x86.c, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_vtxtmp_x86.S, $(MESADRVSRCDIR)/r200) +LinkSourceFile(r200_vtxfmt_sse.c, $(MESADRVSRCDIR)/r200) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/radeon/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/radeon/Imakefile new file mode 100644 index 000000000..69d28b248 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/radeon/Imakefile @@ -0,0 +1,78 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/radeon/Imakefile,v 1.9 2002/02/23 00:45:50 dawes Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(RADEONSRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(RADEONOBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(RADEONOBJS)) +NormalLintTarget($(SRCS)) + +ObjectFromAsmSource(radeon_vtxtmp_x86, NullParameter) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = radeon_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _radeon_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/radeon/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/radeon/Imakefile.inc new file mode 100644 index 000000000..9c95c5463 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/radeon/Imakefile.inc @@ -0,0 +1,193 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/radeon/Imakefile.inc,v 1.3 2002/02/22 21:45:00 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvRadeonBuildDir +#define MesaDrvRadeonBuildDir /**/ +#endif +MESADRVRADEONBUILDDIR = MesaDrvRadeonBuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=ByteOrder -DUSE_NEW_INTERFACE -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(XF86COMSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/ati \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/radeon \ + -I$(MESADRVSRCDIR)/radeon/server + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + RADEONSRCS = $(MESADRVRADEONBUILDDIR)radeon_context.c \ + $(MESADRVRADEONBUILDDIR)radeon_compat.c \ + $(MESADRVRADEONBUILDDIR)radeon_ioctl.c \ + $(MESADRVRADEONBUILDDIR)radeon_lock.c \ + $(MESADRVRADEONBUILDDIR)radeon_maos.c \ + $(MESADRVRADEONBUILDDIR)radeon_sanity.c \ + $(MESADRVRADEONBUILDDIR)radeon_screen.c \ + $(MESADRVRADEONBUILDDIR)radeon_span.c \ + $(MESADRVRADEONBUILDDIR)radeon_state.c \ + $(MESADRVRADEONBUILDDIR)radeon_state_init.c \ + $(MESADRVRADEONBUILDDIR)radeon_swtcl.c \ + $(MESADRVRADEONBUILDDIR)radeon_tcl.c \ + $(MESADRVRADEONBUILDDIR)radeon_tex.c \ + $(MESADRVRADEONBUILDDIR)radeon_texmem.c \ + $(MESADRVRADEONBUILDDIR)radeon_texstate.c \ + $(MESADRVRADEONBUILDDIR)radeon_vtxfmt.c \ + $(MESADRVRADEONBUILDDIR)radeon_vtxfmt_x86.c \ + $(MESADRVRADEONBUILDDIR)radeon_vtxtmp_x86.S \ + $(MESADRVRADEONBUILDDIR)radeon_vtxfmt_sse.c \ + $(MESADRVRADEONBUILDDIR)radeon_vtxfmt_c.c + + RADEONOBJS = $(MESADRVRADEONBUILDDIR)radeon_context.o \ + $(MESADRVRADEONBUILDDIR)radeon_compat.o \ + $(MESADRVRADEONBUILDDIR)radeon_ioctl.o \ + $(MESADRVRADEONBUILDDIR)radeon_lock.o \ + $(MESADRVRADEONBUILDDIR)radeon_maos.o \ + $(MESADRVRADEONBUILDDIR)radeon_sanity.o \ + $(MESADRVRADEONBUILDDIR)radeon_screen.o \ + $(MESADRVRADEONBUILDDIR)radeon_span.o \ + $(MESADRVRADEONBUILDDIR)radeon_state.o \ + $(MESADRVRADEONBUILDDIR)radeon_state_init.o \ + $(MESADRVRADEONBUILDDIR)radeon_swtcl.o \ + $(MESADRVRADEONBUILDDIR)radeon_tcl.o \ + $(MESADRVRADEONBUILDDIR)radeon_tex.o \ + $(MESADRVRADEONBUILDDIR)radeon_texmem.o \ + $(MESADRVRADEONBUILDDIR)radeon_texstate.o \ + $(MESADRVRADEONBUILDDIR)radeon_vtxfmt.o \ + $(MESADRVRADEONBUILDDIR)radeon_vtxfmt_c.o + +#ifdef i386Architecture + RADEONOBJS += $(MESADRVRADEONBUILDDIR)radeon_vtxfmt_x86.o \ + $(MESADRVRADEONBUILDDIR)radeon_vtxtmp_x86.o \ + $(MESADRVRADEONBUILDDIR)radeon_vtxfmt_sse.o +#endif + + RADEONUOBJS = $(MESADRVRADEONBUILDDIR)unshared/radeon_context.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_compat.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_ioctl.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_lock.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_maos.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_sanity.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_screen.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_span.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_state.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_state_init.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_swtcl.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_tcl.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_tex.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_texmem.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_texstate.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_vtxfmt.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_vtxfmt_c.o + +#ifdef i386Architecture + RADEONUOBJS += $(MESADRVRADEONBUILDDIR)unshared/radeon_vtxfmt_x86.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_vtxtmp_x86.o \ + $(MESADRVRADEONBUILDDIR)unshared/radeon_vtxfmt_sse.o +#endif + + RADEONDOBJS = $(MESADRVRADEONBUILDDIR)debugger/radeon_context.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_compat.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_ioctl.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_lock.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_maos.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_sanity.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_screen.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_span.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_state.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_state_init.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_swtcl.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_tcl.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_tex.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_texmem.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_texstate.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_vtxfmt.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_vtxfmt_c.o + +#ifdef i386Architecture + RADEONDOBJS += $(MESADRVRADEONBUILDDIR)debugger/radeon_vtxfmt_x86.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_vtxtmp_x86.o \ + $(MESADRVRADEONBUILDDIR)debugger/radeon_vtxfmt_sse.o +#endif + + RADEONPOBJS = $(MESADRVRADEONBUILDDIR)profiled/radeon_context.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_compat.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_ioctl.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_lock.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_maos.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_sanity.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_screen.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_span.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_state.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_state_init.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_swtcl.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_tcl.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_tex.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_texmem.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_texstate.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_vtxfmt.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_vtxfmt_c.o + +#ifdef i386Architecture + RADEONPOBJS += $(MESADRVRADEONBUILDDIR)profiled/radeon_vtxfmt_x86.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_vtxtmp_x86.o \ + $(MESADRVRADEONBUILDDIR)profiled/radeon_vtxfmt_sse.o +#endif + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(radeon_context.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_context.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_compat.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_ioctl.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_ioctl.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_lock.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_lock.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_maos.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_maos.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_maos_vbtmp.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_sanity.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_sanity.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_screen.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_screen.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_span.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_span.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_state.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_state.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_state_init.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_swtcl.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_swtcl.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_tcl.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_tcl.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_tex.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_tex.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_texmem.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_texstate.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_vtxfmt.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_vtxfmt.h, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_vtxfmt_c.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_vtxfmt_x86.c, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_vtxtmp_x86.S, $(MESADRVSRCDIR)/radeon) +LinkSourceFile(radeon_vtxfmt_sse.c, $(MESADRVSRCDIR)/radeon) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/savage/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/savage/Imakefile new file mode 100644 index 000000000..8a8c8338b --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/savage/Imakefile @@ -0,0 +1,78 @@ +XCOMM $XFree86$ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(SAVAGESRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(SAVAGEOBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(SAVAGEOBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = savage_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _savage_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/savage/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/savage/Imakefile.inc new file mode 100644 index 000000000..4548f3d29 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/savage/Imakefile.inc @@ -0,0 +1,105 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/mga/Imakefile.inc,v 1.2 2001/05/02 15:06:03 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/src/drv +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvSavageBuildDir +#define MesaDrvSavageBuildDir /**/ +#endif +MESADRVSAVAGEBUILDDIR = MesaDrvSavageBuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=ByteOrder -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86COMSRC) \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/savage \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/savage + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + SAVAGESRCS = $(MESADRVMGABUILDDIR)savagedd.c \ + $(MESADRVMGABUILDDIR)savageioctl.c \ + $(MESADRVMGABUILDDIR)savagerender.c \ + $(MESADRVMGABUILDDIR)savagespan.c \ + $(MESADRVMGABUILDDIR)savagestate.c \ + $(MESADRVMGABUILDDIR)savagetex.c \ + $(MESADRVMGABUILDDIR)savagetris.c \ + $(MESADRVMGABUILDDIR)savage_xmesa.c + + SAVAGEOBJS = $(MESADRVMGABUILDDIR)savagedd.o \ + $(MESADRVMGABUILDDIR)savageioctl.o \ + $(MESADRVMGABUILDDIR)savagerender.o \ + $(MESADRVMGABUILDDIR)savagespan.o \ + $(MESADRVMGABUILDDIR)savagestate.o \ + $(MESADRVMGABUILDDIR)savagetex.o \ + $(MESADRVMGABUILDDIR)savagetris.o \ + $(MESADRVMGABUILDDIR)savage_xmesa.o + + SAVAGEUOBJS = $(MESADRVMGABUILDDIR)unshared/savagedd.o \ + $(MESADRVMGABUILDDIR)unshared/savageioctl.o \ + $(MESADRVMGABUILDDIR)unshared/savagerender.o \ + $(MESADRVMGABUILDDIR)unshared/savagespan.o \ + $(MESADRVMGABUILDDIR)unshared/savagestate.o \ + $(MESADRVMGABUILDDIR)unshared/savagetex.o \ + $(MESADRVMGABUILDDIR)unshared/savagetris.o \ + $(MESADRVMGABUILDDIR)unshared/savage_xmesa.o + + SAVAGEDOBJS = $(MESADRVMGABUILDDIR)debugger/savagedd.o \ + $(MESADRVMGABUILDDIR)debugger/savageioctl.o \ + $(MESADRVMGABUILDDIR)debugger/savagerender.o \ + $(MESADRVMGABUILDDIR)debugger/savagespan.o \ + $(MESADRVMGABUILDDIR)debugger/savagestate.o \ + $(MESADRVMGABUILDDIR)debugger/savagetex.o \ + $(MESADRVMGABUILDDIR)debugger/savagetris.o \ + $(MESADRVMGABUILDDIR)debugger/savage_xmesa.o + + SAVAGEPOBJS = $(MESADRVMGABUILDDIR)profiled/savagedd.o \ + $(MESADRVMGABUILDDIR)profiled/savageioctl.o \ + $(MESADRVMGABUILDDIR)profiled/savagerender.o \ + $(MESADRVMGABUILDDIR)profiled/savagespan.o \ + $(MESADRVMGABUILDDIR)profiled/savagestate.o \ + $(MESADRVMGABUILDDIR)profiled/savagetex.o \ + $(MESADRVMGABUILDDIR)profiled/savagetris.o \ + $(MESADRVMGABUILDDIR)profiled/savage_xmesa.o + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(savage_3d_reg.h, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savage_bci.h, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagecontext.h, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagedd.c, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagedd.h, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savage_init.h, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savageioctl.c, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savageioctl.h, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagerender.c, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagespan.c, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagespan.h, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagestate.c, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagestate.h, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagetex.c, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagetex.h, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagetris.c, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savagetris.h, $(MESADRVSRCDIR)/savage) +LinkSourceFile(savage_xmesa.c, $(MESADRVSRCDIR)/savage) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/sis/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/sis/Imakefile new file mode 100644 index 000000000..c06601de1 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/sis/Imakefile @@ -0,0 +1,80 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/sis/Imakefile,v 1.22 2002/11/25 14:04:52 eich Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + +XCOMM DEBUG_DEFINES = -DDEBUG_LOCKING +XCOMM DEBUG_DEFINES = -DSIS_DEBUG + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) \ + $(DEBUG_DEFINES) + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(SISSRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(SISOBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(SISOBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = sis_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _sis_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/sis/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/sis/Imakefile.inc new file mode 100644 index 000000000..8aa776f08 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/sis/Imakefile.inc @@ -0,0 +1,156 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/sis/Imakefile.inc,v 1.1 2001/03/23 19:18:43 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvSisBuildDir +#define MesaDrvSisBuildDir /**/ +#endif +MESADRVSISBUILDDIR = MesaDrvSisBuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines $(SIS_DEFINES) -DX_BYTE_ORDER=$(X_BYTE_ORDER) -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/sis \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/sis + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + +#if 0 + DEBUG_SRC = $(MESADRVSISBUILDDIR)sis_debug.c + DEBUG_OBJ = $(MESADRVSISBUILDDIR)sis_debug.o + DEBUG_UOBJ = $(MESADRVSISBUILDDIR)unshared/sis_debug.o + DEBUG_DOBJ = $(MESADRVSISBUILDDIR)debugger/sis_debug.o + DEBUG_POBJ = $(MESADRVSISBUILDDIR)profiled/sis_debug.o + DEBUG_DEFINES += -DSIS_DUMP +#ifdef NeedToLinkMesaSrc +LinkSourceFile(sis_debug.c, $(MESADRVSRCDIR)/sis) +#endif +#endif + + SISSRCS = $(MESADRVSISBUILDDIR)sis_alloc.c \ + $(MESADRVSISBUILDDIR)sis_dd.c \ + $(MESADRVSISBUILDDIR)sis_lock.c \ + $(MESADRVSISBUILDDIR)sis_context.c \ + $(MESADRVSISBUILDDIR)sis_fog.c \ + $(MESADRVSISBUILDDIR)sis_clear.c \ + $(MESADRVSISBUILDDIR)sis_screen.c \ + $(MESADRVSISBUILDDIR)sis_state.c \ + $(MESADRVSISBUILDDIR)sis_stencil.c \ + $(MESADRVSISBUILDDIR)sis_span.c \ + $(MESADRVSISBUILDDIR)sis_tex.c \ + $(MESADRVSISBUILDDIR)sis_texstate.c \ + $(MESADRVSISBUILDDIR)sis_tris.c \ + $(DEBUG_SRC) + + SISOBJS = $(MESADRVSISBUILDDIR)sis_alloc.o \ + $(MESADRVSISBUILDDIR)sis_dd.o \ + $(MESADRVSISBUILDDIR)sis_lock.o \ + $(MESADRVSISBUILDDIR)sis_context.o \ + $(MESADRVSISBUILDDIR)sis_fog.o \ + $(MESADRVSISBUILDDIR)sis_clear.o \ + $(MESADRVSISBUILDDIR)sis_screen.o \ + $(MESADRVSISBUILDDIR)sis_state.o \ + $(MESADRVSISBUILDDIR)sis_stencil.o \ + $(MESADRVSISBUILDDIR)sis_span.o \ + $(MESADRVSISBUILDDIR)sis_tex.o \ + $(MESADRVSISBUILDDIR)sis_texstate.o \ + $(MESADRVSISBUILDDIR)sis_tris.o \ + $(DEBUG_OBJ) + + SISUOBJS = $(MESADRVSISBUILDDIR)unshared/sis_alloc.o \ + $(MESADRVSISBUILDDIR)unshared/sis_dd.o \ + $(MESADRVSISBUILDDIR)unshared/sis_lock.o \ + $(MESADRVSISBUILDDIR)unshared/sis_context.o \ + $(MESADRVSISBUILDDIR)unshared/sis_fog.o \ + $(MESADRVSISBUILDDIR)unshared/sis_clear.o \ + $(MESADRVSISBUILDDIR)unshared/sis_screen.o \ + $(MESADRVSISBUILDDIR)unshared/sis_state.o \ + $(MESADRVSISBUILDDIR)unshared/sis_stencil.o \ + $(MESADRVSISBUILDDIR)unshared/sis_span.o \ + $(MESADRVSISBUILDDIR)unshared/sis_tex.o \ + $(MESADRVSISBUILDDIR)unshared/sis_texstate.o \ + $(MESADRVSISBUILDDIR)unshared/sis_tris.o \ + $(DEBUG_UOBJ) + + SISDOBJS = $(MESADRVSISBUILDDIR)debugger/sis_alloc.o \ + $(MESADRVSISBUILDDIR)debugger/sis_dd.o \ + $(MESADRVSISBUILDDIR)debugger/sis_lock.o \ + $(MESADRVSISBUILDDIR)debugger/sis_context.o \ + $(MESADRVSISBUILDDIR)debugger/sis_fog.o \ + $(MESADRVSISBUILDDIR)debugger/sis_clear.o \ + $(MESADRVSISBUILDDIR)debugger/sis_screen.o \ + $(MESADRVSISBUILDDIR)debugger/sis_state.o \ + $(MESADRVSISBUILDDIR)debugger/sis_stencil.o \ + $(MESADRVSISBUILDDIR)debugger/sis_span.o \ + $(MESADRVSISBUILDDIR)debugger/sis_tex.o \ + $(MESADRVSISBUILDDIR)debugger/sis_texstate.o \ + $(MESADRVSISBUILDDIR)debugger/sis_tris.o \ + $(DEBUG_DOBJ) + + SISPOBJS = $(MESADRVSISBUILDDIR)profiled/sis_alloc.o \ + $(MESADRVSISBUILDDIR)profiled/sis_dd.o \ + $(MESADRVSISBUILDDIR)profiled/sis_lock.o \ + $(MESADRVSISBUILDDIR)profiled/sis_context.o \ + $(MESADRVSISBUILDDIR)profiled/sis_fog.o \ + $(MESADRVSISBUILDDIR)profiled/sis_clear.o \ + $(MESADRVSISBUILDDIR)profiled/sis_screen.o \ + $(MESADRVSISBUILDDIR)profiled/sis_state.o \ + $(MESADRVSISBUILDDIR)profiled/sis_stencil.o \ + $(MESADRVSISBUILDDIR)profiled/sis_span.o \ + $(MESADRVSISBUILDDIR)profiled/sis_tex.o \ + $(MESADRVSISBUILDDIR)profiled/sis_texstate.o \ + $(MESADRVSISBUILDDIR)profiled/sis_tris.o \ + $(DEBUG_POBJ) + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(sis_alloc.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_alloc.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_common2.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_context.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_dd.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_dd.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_debug.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_debug.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_lock.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_lock.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_context.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_fog.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_clear.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_reg.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_screen.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_screen.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_state.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_state.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_stencil.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_stencil.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_span.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_span.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_tex.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_tex.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_texstate.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_tris.c, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_tris.h, $(MESADRVSRCDIR)/sis) +LinkSourceFile(sis_tritmp.h, $(MESADRVSRCDIR)/sis) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/tdfx/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/tdfx/Imakefile new file mode 100644 index 000000000..2e4c457e2 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/tdfx/Imakefile @@ -0,0 +1,76 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/tdfx/Imakefile,v 1.30 2002/02/23 00:45:51 dawes Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(TDFXSRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(TDFXOBJS) $(COMMONOBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(TDFXOBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = tdfx_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _tdfx_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/tdfx/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/tdfx/Imakefile.inc new file mode 100644 index 000000000..87d31fc31 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/tdfx/Imakefile.inc @@ -0,0 +1,140 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/tdfx/Imakefile.inc,v 1.1 2001/03/23 19:18:44 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvTdfxBuildDir +#define MesaDrvTdfxBuildDir /**/ +#endif +MESADRVTDFXBUILDDIR = MesaDrvTdfxBuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DX_BYTE_ORDER=ByteOrder -DUSE_NEW_INTERFACE -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/tdfx \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/tdfx + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + TDFXSRCS = $(MESADRVTDFXBUILDDIR)tdfx_context.c \ + $(MESADRVTDFXBUILDDIR)tdfx_dd.c \ + $(MESADRVTDFXBUILDDIR)tdfx_lock.c \ + $(MESADRVTDFXBUILDDIR)tdfx_pixels.c \ + $(MESADRVTDFXBUILDDIR)tdfx_render.c \ + $(MESADRVTDFXBUILDDIR)tdfx_screen.c \ + $(MESADRVTDFXBUILDDIR)tdfx_span.c \ + $(MESADRVTDFXBUILDDIR)tdfx_state.c \ + $(MESADRVTDFXBUILDDIR)tdfx_tex.c \ + $(MESADRVTDFXBUILDDIR)tdfx_texman.c \ + $(MESADRVTDFXBUILDDIR)tdfx_texstate.c \ + $(MESADRVTDFXBUILDDIR)tdfx_tris.c \ + $(MESADRVTDFXBUILDDIR)tdfx_vb.c + + TDFXOBJS = $(MESADRVTDFXBUILDDIR)tdfx_context.o \ + $(MESADRVTDFXBUILDDIR)tdfx_dd.o \ + $(MESADRVTDFXBUILDDIR)tdfx_lock.o \ + $(MESADRVTDFXBUILDDIR)tdfx_pixels.o \ + $(MESADRVTDFXBUILDDIR)tdfx_render.o \ + $(MESADRVTDFXBUILDDIR)tdfx_screen.o \ + $(MESADRVTDFXBUILDDIR)tdfx_span.o \ + $(MESADRVTDFXBUILDDIR)tdfx_state.o \ + $(MESADRVTDFXBUILDDIR)tdfx_tex.o \ + $(MESADRVTDFXBUILDDIR)tdfx_texman.o \ + $(MESADRVTDFXBUILDDIR)tdfx_texstate.o \ + $(MESADRVTDFXBUILDDIR)tdfx_tris.o \ + $(MESADRVTDFXBUILDDIR)tdfx_vb.o + + TDFXUOBJS = $(MESADRVTDFXBUILDDIR)unshared/tdfx_context.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_dd.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_lock.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_pixels.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_render.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_screen.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_span.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_state.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_tex.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_texman.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_texstate.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_tris.o \ + $(MESADRVTDFXBUILDDIR)unshared/tdfx_vb.o + + TDFXDOBJS = $(MESADRVTDFXBUILDDIR)debugger/tdfx_context.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_dd.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_lock.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_pixels.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_render.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_screen.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_span.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_state.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_tex.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_texman.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_texstate.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_tris.o \ + $(MESADRVTDFXBUILDDIR)debugger/tdfx_vb.o + + TDFXPOBJS = $(MESADRVTDFXBUILDDIR)profiled/tdfx_context.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_dd.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_lock.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_pixels.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_render.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_screen.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_span.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_state.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_tex.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_texman.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_texstate.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_tris.o \ + $(MESADRVTDFXBUILDDIR)profiled/tdfx_vb.o + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(dri_glide.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_context.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_context.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_dd.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_dd.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_glide.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_lock.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_lock.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_pixels.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_pixels.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_render.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_render.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_screen.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_screen.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_span.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_span.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_state.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_state.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_tex.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_tex.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_texman.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_texman.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_texstate.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_texstate.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_tris.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_tris.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_vb.c, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_vb.h, $(MESADRVSRCDIR)/tdfx) +LinkSourceFile(tdfx_vbtmp.h, $(MESADRVSRCDIR)/tdfx) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/unichrome/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/unichrome/Imakefile new file mode 100644 index 000000000..273e2ca6f --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/unichrome/Imakefile @@ -0,0 +1,80 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/via/Imakefile,v 1.22 2002/11/25 14:04:52 eich Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + +XCOMM DEBUG_DEFINES = -DDEBUG_LOCKING +XCOMM DEBUG_DEFINES = -DVIA_DEBUG + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) \ + $(DEBUG_DEFINES) + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(VIASRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(VIAOBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(VIAOBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = unichrome_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _unichrome_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/unichrome/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/unichrome/Imakefile.inc new file mode 100644 index 000000000..02916ee93 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/unichrome/Imakefile.inc @@ -0,0 +1,123 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/via/Imakefile.inc,v 1.1 2001/03/23 19:18:43 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvViaBuildDir +#define MesaDrvViaBuildDir /**/ +#endif +MESADRVVIABUILDDIR = MesaDrvViaBuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines $(VIA_DEFINES) -DX_BYTE_ORDER=$(X_BYTE_ORDER) -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86COMSRC) \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/via \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/unichrome + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + + + VIASRCS = $(MESADRVVIABUILDDIR)via_context.c \ + $(MESADRVVIABUILDDIR)via_fb.c \ + $(MESADRVVIABUILDDIR)via_ioctl.c \ + $(MESADRVVIABUILDDIR)via_memcpy.c \ + $(MESADRVVIABUILDDIR)via_render.c \ + $(MESADRVVIABUILDDIR)via_screen.c \ + $(MESADRVVIABUILDDIR)via_span.c \ + $(MESADRVVIABUILDDIR)via_state.c \ + $(MESADRVVIABUILDDIR)via_tex.c \ + $(MESADRVVIABUILDDIR)via_texcombine.c \ + $(MESADRVVIABUILDDIR)via_tris.c + + VIAOBJS =$(MESADRVVIABUILDDIR)via_context.o \ + $(MESADRVVIABUILDDIR)via_fb.o \ + $(MESADRVVIABUILDDIR)via_ioctl.o \ + $(MESADRVVIABUILDDIR)via_memcpy.o \ + $(MESADRVVIABUILDDIR)via_render.o \ + $(MESADRVVIABUILDDIR)via_screen.o \ + $(MESADRVVIABUILDDIR)via_span.o \ + $(MESADRVVIABUILDDIR)via_state.o \ + $(MESADRVVIABUILDDIR)via_tex.o \ + $(MESADRVVIABUILDDIR)via_texcombine.o \ + $(MESADRVVIABUILDDIR)via_tris.o + + VIAUOBJS =$(MESADRVVIABUILDDIR)/unshared/via_context.o \ + $(MESADRVVIABUILDDIR)/unshared/via_fb.o \ + $(MESADRVVIABUILDDIR)/unshared/via_ioctl.o \ + $(MESADRVVIABUILDDIR)/unshared/via_memcpy.o \ + $(MESADRVVIABUILDDIR)/unshared/via_render.o \ + $(MESADRVVIABUILDDIR)/unshared/via_screen.o \ + $(MESADRVVIABUILDDIR)/unshared/via_span.o \ + $(MESADRVVIABUILDDIR)/unshared/via_state.o \ + $(MESADRVVIABUILDDIR)/unshared/via_tex.o \ + $(MESADRVVIABUILDDIR)/unshared/via_texcombine.o \ + $(MESADRVVIABUILDDIR)/unshared/via_tris.o + + VIADOBJS =$(MESADRVVIABUILDDIR)/debugger/via_context.o \ + $(MESADRVVIABUILDDIR)/debugger/via_fb.o \ + $(MESADRVVIABUILDDIR)/debugger/via_ioctl.o \ + $(MESADRVVIABUILDDIR)/debugger/via_memcpy.o \ + $(MESADRVVIABUILDDIR)/debugger/via_render.o \ + $(MESADRVVIABUILDDIR)/debugger/via_screen.o \ + $(MESADRVVIABUILDDIR)/debugger/via_span.o \ + $(MESADRVVIABUILDDIR)/debugger/via_state.o \ + $(MESADRVVIABUILDDIR)/debugger/via_tex.o \ + $(MESADRVVIABUILDDIR)/debugger/via_texcombine.o \ + $(MESADRVVIABUILDDIR)/debugger/via_tris.o + + VIAPOBJS =$(MESADRVVIABUILDDIR)/profiled/via_context.o \ + $(MESADRVVIABUILDDIR)/profiled/via_fb.o \ + $(MESADRVVIABUILDDIR)/profiled/via_ioctl.o \ + $(MESADRVVIABUILDDIR)/profiled/via_memcpy.o \ + $(MESADRVVIABUILDDIR)/profiled/via_render.o \ + $(MESADRVVIABUILDDIR)/profiled/via_screen.o \ + $(MESADRVVIABUILDDIR)/profiled/via_span.o \ + $(MESADRVVIABUILDDIR)/profiled/via_state.o \ + $(MESADRVVIABUILDDIR)/profiled/via_tex.o \ + $(MESADRVVIABUILDDIR)/profiled/via_texcombine.o \ + $(MESADRVVIABUILDDIR)/profiled/via_tris.o + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(via_3d_reg.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_context.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_context.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_fb.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_fb.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_ioctl.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_ioctl.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_memcpy.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_render.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_screen.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_screen.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_span.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_span.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_state.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_state.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_tex.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_texcombine.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_tex.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_tris.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_tris.h, $(MESADRVSRCDIR)/unichrome) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/dri/via/Imakefile b/nx-X11/lib/GL/mesa/drivers/dri/via/Imakefile new file mode 100644 index 000000000..f92da2401 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/via/Imakefile @@ -0,0 +1,80 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/via/Imakefile,v 1.22 2002/11/25 14:04:52 eich Exp $ + +#include <Threads.tmpl> + +#if GlxUseBuiltInDRIDriver +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtrasLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +#define MesaDrvCommonBuildDir ../common/ +#include "../common/Imakefile.inc" +#include "../../../array_cache/Imakefile.inc" +#include "../../../main/Imakefile.inc" +#include "../../../math/Imakefile.inc" +#include "../../../shader/Imakefile.inc" +#include "../../../shader/grammar/Imakefile.inc" +#include "../../../shader/slang/Imakefile.inc" +#include "../../../shader/slang/library/Imakefile.inc" +#include "../../../swrast/Imakefile.inc" +#include "../../../swrast_setup/Imakefile.inc" +#include "../../../tnl/Imakefile.inc" +#include "../../../tnl_dd/Imakefile.inc" +#include "../../../Imakefile.inc" +#if defined(i386Architecture) && MesaUseX86Asm +#include "../../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../../sparc/Imakefile.inc" +#endif +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + +XCOMM DEBUG_DEFINES = -DDEBUG_LOCKING +XCOMM DEBUG_DEFINES = -DVIA_DEBUG + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MESA_ASM_DEFINES) \ + $(DEBUG_DEFINES) + INCLUDES = $(X_INCLUDES) $(MESA_INCLUDES) $(DRI_INCLUDES) + + DRMOBJS = $(GLXLIBSRC)/dri/drm/xf86drm.o \ + $(GLXLIBSRC)/dri/drm/xf86drmHash.o \ + $(GLXLIBSRC)/dri/drm/xf86drmRandom.o \ + $(GLXLIBSRC)/dri/drm/xf86drmSL.o + + SRCS = $(VIASRCS) + OBJS = $(DRMOBJS) $(COREMESAOBJS) \ + $(MESA_ASM_OBJS) $(COMMONOBJS) $(VIAOBJS) + +REQUIREDLIBS = MathLibrary $(LDPRELIB) $(GLXLIB) $(XONLYLIB) $(EXPATLIB) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(VIAOBJS)) +NormalLintTarget($(SRCS)) + +#if !GlxUseBuiltInDRIDriver +LIBNAME = via_dri.so +SharedDriModuleTarget($(LIBNAME),DONE $(OBJS),$(OBJS)) +InstallDynamicModule($(LIBNAME),$(MODULEDIR),dri) + +#ifdef GlxSoProf +SOPROF_LIBNAME = _via_dri_p +NormalDepLibraryTarget($(SOPROF_LIBNAME),DONE $(OBJS),$(OBJS)) +InstallLibrary($(SOPROF_LIBNAME),$(MODULEDIR)/dri) +#endif +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/dri/via/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/dri/via/Imakefile.inc new file mode 100644 index 000000000..9cfe68a75 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/dri/via/Imakefile.inc @@ -0,0 +1,158 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/drv/via/Imakefile.inc,v 1.1 2001/03/23 19:18:43 dawes Exp $ + +#ifndef MesaDrvSrcDir +#define MesaDrvSrcDir $(MESASRCDIR)/src/mesa/drivers/dri +#endif + +MESADRVSRCDIR = MesaDrvSrcDir + +#ifndef MesaDrvViaBuildDir +#define MesaDrvViaBuildDir /**/ +#endif +MESADRVVIABUILDDIR = MesaDrvViaBuildDir + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines $(VIA_DEFINES) -DX_BYTE_ORDER=$(X_BYTE_ORDER) -DIN_DRI_DRIVER + DRI_INCLUDES = -I$(GLXLIBSRC)/dri \ + -I$(XINCLUDESRC) \ + -I$(GLXLIBSRC)/glx \ + -I$(GLXLIBSRC)/include \ + -I$(SERVERSRC)/GL/dri \ + -I$(XF86OSSRC) \ + -I$(DRMSRCDIR)/shared-core \ + -I$(XF86DRIVERSRC)/via \ + -I$(GLXLIBSRC)/dri/drm +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/include \ + -I$(MESADRVSRCDIR)/common \ + -I$(MESADRVSRCDIR)/unichrome + X_INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) + +#if 0 + DEBUG_SRC = $(MESADRVVIABUILDDIR)via_debug.c + DEBUG_OBJ = $(MESADRVVIABUILDDIR)via_debug.o + DEBUG_UOBJ = $(MESADRVVIABUILDDIR)unshared/via_debug.o + DEBUG_DOBJ = $(MESADRVVIABUILDDIR)debugger/via_debug.o + DEBUG_POBJ = $(MESADRVVIABUILDDIR)profiled/via_debug.o + DEBUG_DEFINES += -DVIA_DUMP +#ifdef NeedToLinkMesaSrc +LinkSourceFile(via_debug.c, $(MESADRVSRCDIR)/unichrome) +#endif +#endif + + VIASRCS = $(MESADRVVIABUILDDIR)via_context.c \ + $(MESADRVVIABUILDDIR)via_fb.c \ + $(MESADRVVIABUILDDIR)via_ioctl.c \ + $(MESADRVVIABUILDDIR)via_render.c \ + $(MESADRVVIABUILDDIR)via_screen.c \ + $(MESADRVVIABUILDDIR)via_span.c \ + $(MESADRVVIABUILDDIR)via_state.c \ + $(MESADRVVIABUILDDIR)via_tex.c \ + $(MESADRVVIABUILDDIR)via_texmem.c \ + $(MESADRVVIABUILDDIR)via_texstate.c \ + $(MESADRVVIABUILDDIR)via_tris.c \ + $(MESADRVVIABUILDDIR)via_vb.c \ + $(MESADRVVIABUILDDIR)xf86drmVIA.c \ + $(DEBUG_SRC) + + VIAOBJS =$(MESADRVVIABUILDDIR)via_context.o \ + $(MESADRVVIABUILDDIR)via_fb.o \ + $(MESADRVVIABUILDDIR)via_ioctl.o \ + $(MESADRVVIABUILDDIR)via_render.o \ + $(MESADRVVIABUILDDIR)via_screen.o \ + $(MESADRVVIABUILDDIR)via_span.o \ + $(MESADRVVIABUILDDIR)via_state.o \ + $(MESADRVVIABUILDDIR)via_tex.o \ + $(MESADRVVIABUILDDIR)via_texmem.o \ + $(MESADRVVIABUILDDIR)via_texstate.o \ + $(MESADRVVIABUILDDIR)via_tris.o \ + $(MESADRVVIABUILDDIR)via_vb.o \ + $(MESADRVVIABUILDDIR)xf86drmVIA.o \ + $(DEBUG_OBJ) + + + VIAUOBJS =$(MESADRVVIABUILDDIR)/unshared/via_context.o \ + $(MESADRVVIABUILDDIR)/unshared/via_fb.o \ + $(MESADRVVIABUILDDIR)/unshared/via_ioctl.o \ + $(MESADRVVIABUILDDIR)/unshared/via_render.o \ + $(MESADRVVIABUILDDIR)/unshared/via_screen.o \ + $(MESADRVVIABUILDDIR)/unshared/via_span.o \ + $(MESADRVVIABUILDDIR)/unshared/via_state.o \ + $(MESADRVVIABUILDDIR)/unshared/via_tex.o \ + $(MESADRVVIABUILDDIR)/unshared/via_texmem.o \ + $(MESADRVVIABUILDDIR)/unshared/via_texstate.o \ + $(MESADRVVIABUILDDIR)/unshared/via_tris.o \ + $(MESADRVVIABUILDDIR)/unshared/via_vb.o \ + $(MESADRVVIABUILDDIR)/unshared/xf86drmVIA.o \ + $(DEBUG_UOBJ) + + VIADOBJS =$(MESADRVVIABUILDDIR)/debugger/via_context.o \ + $(MESADRVVIABUILDDIR)/debugger/via_fb.o \ + $(MESADRVVIABUILDDIR)/debugger/via_ioctl.o \ + $(MESADRVVIABUILDDIR)/debugger/via_render.o \ + $(MESADRVVIABUILDDIR)/debugger/via_screen.o \ + $(MESADRVVIABUILDDIR)/debugger/via_span.o \ + $(MESADRVVIABUILDDIR)/debugger/via_state.o \ + $(MESADRVVIABUILDDIR)/debugger/via_tex.o \ + $(MESADRVVIABUILDDIR)/debugger/via_texmem.o \ + $(MESADRVVIABUILDDIR)/debugger/via_texstate.o \ + $(MESADRVVIABUILDDIR)/debugger/via_tris.o \ + $(MESADRVVIABUILDDIR)/debugger/via_vb.o \ + $(MESADRVVIABUILDDIR)/debugger/xf86drmVIA.o \ + $(DEBUG_DOBJ) + + VIAPOBJS =$(MESADRVVIABUILDDIR)/profiled/via_context.o \ + $(MESADRVVIABUILDDIR)/profiled/via_fb.o \ + $(MESADRVVIABUILDDIR)/profiled/via_ioctl.o \ + $(MESADRVVIABUILDDIR)/profiled/via_render.o \ + $(MESADRVVIABUILDDIR)/profiled/via_screen.o \ + $(MESADRVVIABUILDDIR)/profiled/via_span.o \ + $(MESADRVVIABUILDDIR)/profiled/via_state.o \ + $(MESADRVVIABUILDDIR)/profiled/via_tex.o \ + $(MESADRVVIABUILDDIR)/profiled/via_texmem.o \ + $(MESADRVVIABUILDDIR)/profiled/via_texstate.o \ + $(MESADRVVIABUILDDIR)/profiled/via_tris.o \ + $(MESADRVVIABUILDDIR)/profiled/via_vb.o \ + $(MESADRVVIABUILDDIR)/profiled/xf86drmVIA.o \ + $(DEBUG_POBJ) + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(via_3d_reg.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_context.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_dd_tritmp.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_dd_vbtmp.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_dmatmp.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_dri.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_fb.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_fb.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_ioctl.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_ioctl.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_render.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_screen.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_screen.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_span.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_span.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_state.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_state.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_tex.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_tex.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_texmem.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_texstate.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_tris.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_tris.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_vb.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_vb_cliptmp.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_vb.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(via_vb_rendertmp.h, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(xf86drmVIA.c, $(MESADRVSRCDIR)/unichrome) +LinkSourceFile(xf86drmVIA.h, $(MESADRVSRCDIR)/unichrome) +#endif diff --git a/nx-X11/lib/GL/mesa/drivers/osmesa/Imakefile b/nx-X11/lib/GL/mesa/drivers/osmesa/Imakefile new file mode 100644 index 000000000..014945699 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/osmesa/Imakefile @@ -0,0 +1,111 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/OSmesa/Imakefile,v 1.16 2002/11/25 14:04:50 eich Exp $ + +#include <Threads.tmpl> + +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + +#include "../../array_cache/Imakefile.inc" +#include "../../math/Imakefile.inc" +#include "../../main/Imakefile.inc" +#include "../../shader/Imakefile.inc" +#include "../../shader/grammar/Imakefile.inc" +#include "../../shader/slang/Imakefile.inc" +#include "../../swrast/Imakefile.inc" +#include "../../swrast_setup/Imakefile.inc" +#include "../../tnl/Imakefile.inc" +#include "../../tnl_dd/Imakefile.inc" +#include "../../Imakefile.inc" +#if defined(i386Architecture) && !SystemV4 && MesaUseX86Asm +#include "../../x86/Imakefile.inc" +#endif +#ifdef SparcArchitecture +#include "../../sparc/Imakefile.inc" +#endif + +LinkSourceFile(osmesa.c, $(MESASRCDIR)/src/mesa/drivers/osmesa) +LinkSourceFile(driverfuncs.c, $(MESASRCDIR)/src/mesa/drivers/common) +LinkSourceFile(driverfuncs.h, $(MESASRCDIR)/src/mesa/drivers/common) + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/include + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) + INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) $(MESA_INCLUDES) \ + $(DRI_INCLUDES) -I$(GLXLIBSRC)/include + + MESAOBJS = $(COREMESAOBJS) $(MESA_ASM_OBJS) + MESAUOBJS = $(COREMESAUOBJS) $(MESA_ASM_UOBJS) + MESADOBJS = $(COREMESADOBJS) $(MESA_ASM_DOBJS) + MESAPOBJS = $(COREMESAPOBJS) $(MESA_ASM_POBJS) + + SRCS = osmesa.c driverfuncs.c + OBJS = osmesa.o driverfuncs.o $(MESAOBJS) +#if DoSharedLib + UOBJS = unshared/osmesa.o unshared/driverfuncs.o $(MESAUOBJS) +#else + UOBJS = $(OBJS) +#endif + DOBJS = debugger/osmesa.o debugger/driverfuncs.o $(MESADOBJS) + POBJS = profiled/osmesa.o profiled/driverfuncs.o $(MESAPOBJS) + +#if LocalThreads + THREADOBJS = $(THREADS_LIBS) +#endif + +#if !GlxUseBuiltInDRIDriver +# ifdef SharedOSMesaReqs + REQUIREDLIBS = SharedOSMesaReqs +# else + REQUIREDLIBS = MathLibrary $(LDPRELIB) $(XLIB) $(GLXLIB) +# endif +#endif + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +LIBNAME = OSMesa +SOREV = 4.0 + + +#if DoNormalLib +NormalLibraryTarget($(LIBNAME), $(UOBJS)) +InstallLibrary($(LIBNAME),$(USRLIBDIR)) +#endif + +#if SharedLibGlx +SharedLibraryTarget($(LIBNAME),$(SOREV), $(OBJS), ., .) +InstallSharedLibrary($(LIBNAME),$(SOREV),$(SHLIBDIR)) +#endif + +#if DoDebugLib +DebuggedLibraryTarget($(LIBNAME),$(DOBJS)) +InstallLibrary($(LIBNAME_d,$(USRLIBDIR)) +#endif + +#if DoProfileLib +ProfiledLibraryTarget($(LIBNAME), $(POBJS)) +InstallLibrary($(LIBNAME)_p,$(USRLIBDIR)) +#endif + +DependTarget() + diff --git a/nx-X11/lib/GL/mesa/drivers/osmesa/OSMesa-def.cpp b/nx-X11/lib/GL/mesa/drivers/osmesa/OSMesa-def.cpp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/osmesa/OSMesa-def.cpp diff --git a/nx-X11/lib/GL/mesa/drivers/x11/Imakefile b/nx-X11/lib/GL/mesa/drivers/x11/Imakefile new file mode 100644 index 000000000..ab9a91970 --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/x11/Imakefile @@ -0,0 +1,70 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile,v 1.12tsi Exp $ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + + +#define MesaXBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines + DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \ + -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src \ + -I$(MESASRCDIR)/src/X \ + -I$(MESASRCDIR)/include \ + -I../../../include -I$(XINCLUDESRC) + + INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES) + +#ifdef UseCompaqMathLibrary + MATHDEF = -DCCPML +#endif + +#if BuildXF86DRI && GlxBuiltInXMesa + XMESA_DEFINES = -DGLX_BUILT_IN_XMESA +#endif + + SRCS = $(XMESA_SRCS) + OBJS = $(XMESA_OBJS) + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(MATHDEF) $(XMESA_DEFINES) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(XMESA_OBJS)) +NormalLintTarget($(XMESA_SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/drivers/x11/Imakefile.inc b/nx-X11/lib/GL/mesa/drivers/x11/Imakefile.inc new file mode 100644 index 000000000..d62800e7d --- /dev/null +++ b/nx-X11/lib/GL/mesa/drivers/x11/Imakefile.inc @@ -0,0 +1,104 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/X/Imakefile.inc,v 1.3tsi Exp $ + +#ifndef MesaXBuildDir +#define MesaXBuildDir $(GLXLIBSRC)/src/mesa/drivers/x11/ +#endif + +MESAXBUILDDIR = MesaXBuildDir + +#ifndef MesaInXServer +XMESA_GLX_SRCS = $(MESAXBUILDDIR)fakeglx.c \ + $(MESAXBUILDDIR)glxapi.c \ + $(MESAXBUILDDIR)realglx.c \ + $(MESAXBUILDDIR)xfonts.c +#endif + + XMESA_SRCS = $(XMESA_GLX_SRCS) \ + $(MESAXBUILDDIR)xm_api.c \ + $(MESAXBUILDDIR)xm_buffer.c \ + $(MESAXBUILDDIR)xm_dd.c \ + $(MESAXBUILDDIR)xm_line.c \ + $(MESAXBUILDDIR)xm_span.c \ + $(MESAXBUILDDIR)xm_tri.c + +#ifdef NeedToLinkMesaSrc +#ifndef MesaInXServer +LinkSourceFile(fakeglx.c, $(MESASRCDIR)/src/mesa/drivers/x11) +LinkSourceFile(glxapi.c, $(MESASRCDIR)/src/mesa/drivers/x11) +LinkSourceFile(glxapi.h, $(MESASRCDIR)/src/mesa/drivers/x11) +LinkSourceFile(realglx.c, $(MESASRCDIR)/src/mesa/drivers/x11) +LinkSourceFile(xfonts.c, $(MESASRCDIR)/src/mesa/drivers/x11) +#endif +LinkSourceFile(xm_api.c, $(MESASRCDIR)/src/mesa/drivers/x11) +LinkSourceFile(xm_buffer.c, $(MESASRCDIR)/src/mesa/drivers/x11) +LinkSourceFile(xm_dd.c, $(MESASRCDIR)/src/mesa/drivers/x11) +LinkSourceFile(xm_line.c, $(MESASRCDIR)/src/mesa/drivers/x11) +LinkSourceFile(xm_span.c, $(MESASRCDIR)/src/mesa/drivers/x11) +LinkSourceFile(xm_tri.c, $(MESASRCDIR)/src/mesa/drivers/x11) +#endif + +#ifndef MesaInXServer +XMESA_GLX_OBJS = $(MESAXBUILDDIR)fakeglx.o \ + $(MESAXBUILDDIR)glxapi.o \ + $(MESAXBUILDDIR)realglx.o \ + $(MESAXBUILDDIR)xfonts.o +#endif + + XMESA_OBJS = $(XMESA_GLX_OBJS) \ + $(MESAXBUILDDIR)xm_api.o \ + $(MESAXBUILDDIR)xm_buffer.o \ + $(MESAXBUILDDIR)xm_dd.o \ + $(MESAXBUILDDIR)xm_line.o \ + $(MESAXBUILDDIR)xm_span.o \ + $(MESAXBUILDDIR)xm_tri.o + +#if defined(DoSharedLib) && DoSharedLib +#ifndef MesaInXServer +XMESA_GLX_UOBJS = $(MESAXBUILDDIR)unshared/fakeglx.o \ + $(MESAXBUILDDIR)unshared/glxapi.o \ + $(MESAXBUILDDIR)unshared/realglx.o \ + $(MESAXBUILDDIR)unshared/xfonts.o +#endif + + XMESA_UOBJS = $(XMESA_GLX_UOBJS) \ + $(MESAXBUILDDIR)unshared/xm_api.o \ + $(MESAXBUILDDIR)unshared/xm_buffer.o \ + $(MESAXBUILDDIR)unshared/xm_dd.o \ + $(MESAXBUILDDIR)unshared/xm_line.o \ + $(MESAXBUILDDIR)unshared/xm_span.o \ + $(MESAXBUILDDIR)unshared/xm_tri.o +#else +XMESA_GLX_UOBJS = $(XMESA_GLX_OBJS) + XMESA_UOBJS = $(XMESA_OBJS) +#endif + +#ifndef MesaInXServer +XMESA_GLX_DOBJS = $(MESAXBUILDDIR)debugger/fakeglx.o \ + $(MESAXBUILDDIR)debugger/glxapi.o \ + $(MESAXBUILDDIR)debugger/realglx.o \ + $(MESAXBUILDDIR)debugger/xfonts.o +#endif + + XMESA_DOBJS = $(XMESA_GLX_DOBJS) \ + $(MESAXBUILDDIR)debugger/xm_api.o \ + $(MESAXBUILDDIR)debugger/xm_buffer.o \ + $(MESAXBUILDDIR)debugger/xm_dd.o \ + $(MESAXBUILDDIR)debugger/xm_line.o \ + $(MESAXBUILDDIR)debugger/xm_span.o \ + $(MESAXBUILDDIR)debugger/xm_tri.o + +#ifndef MesaInXServer +XMESA_GLX_POBJS = $(MESAXBUILDDIR)profiled/fakeglx.o \ + $(MESAXBUILDDIR)profiled/glxapi.o \ + $(MESAXBUILDDIR)profiled/realglx.o \ + $(MESAXBUILDDIR)profiled/xfonts.o +#endif + + XMESA_POBJS = $(XMESA_GLX_POBJS) \ + $(MESAXBUILDDIR)profiled/xm_api.o \ + $(MESAXBUILDDIR)profiled/xm_buffer.o \ + $(MESAXBUILDDIR)profiled/xm_dd.o \ + $(MESAXBUILDDIR)profiled/xm_line.o \ + $(MESAXBUILDDIR)profiled/xm_span.o \ + $(MESAXBUILDDIR)profiled/xm_tri.o + diff --git a/nx-X11/lib/GL/mesa/main/Imakefile b/nx-X11/lib/GL/mesa/main/Imakefile new file mode 100644 index 000000000..3093cedd1 --- /dev/null +++ b/nx-X11/lib/GL/mesa/main/Imakefile @@ -0,0 +1,66 @@ +XCOMM $XdotOrg: xc/lib/GL/mesa/main/Imakefile,v 1.3 2005/12/20 22:30:49 alanc Exp $ +XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile,v 1.30tsi Exp $ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris/SPARC builds */ +#if defined(SunArchitecture) && defined(SparcArchitecture) && defined(LargePositionIndependentCFlags) +# define LargePICTable YES +#endif + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#define MesaBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + +#ifdef UseCompaqMathLibrary + MATH_DEFINES = -DCCPML +#endif + + DEFINES = $(ALLOC_DEFINES) GlxDefines -DIN_DRI_DRIVER \ + $(MESA_ASM_DEFINES) $(MATH_DEFINES) + INCLUDES = /*-I$(INCLUDESRC) -I$(EXTINCSRC) */ -I$(XINCLUDESRC) \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/math \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa -I$(GLXLIBSRC)/dri \ + -I$(MESASRCDIR)/include -I$(GLXLIBSRC)/include + SRCS = $(COREMESABASESRCS) + OBJS = $(COREMESABASEOBJS) + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/main/Imakefile.inc b/nx-X11/lib/GL/mesa/main/Imakefile.inc new file mode 100644 index 000000000..5deaf1038 --- /dev/null +++ b/nx-X11/lib/GL/mesa/main/Imakefile.inc @@ -0,0 +1,484 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile.inc,v 1.7tsi Exp $ + +#ifndef MesaBuildDir +#define MesaBuildDir $(GLXLIBSRC)/mesa/main/ +#endif + +MESABUILDDIR = MesaBuildDir + +#ifdef NeedAllMesaSrc + DISPATCHSRCS = $(MESABUILDDIR)dispatch.c + GLAPISRCS = $(MESABUILDDIR)glapi.c + GLTHREADSRCS = $(MESABUILDDIR)glthread.c +#endif + +MESA_CORE_INCLUDES = -I$(MESASRCDIR)/src/array_cache \ + -I$(MESASRCDIR)/src/math -I$(MESASRCDIR)/src/shader \ + -I$(MESASRCDIR)/src/swrast -I$(MESASRCDIR)/src/swrast_setup \ + -I$(MESASRCDIR)/src/tnl -I$(MESASRCDIR)/src/tnl_dd + +COREMESABASESRCS = \ + $(MESABUILDDIR)api_arrayelt.c \ + $(MESABUILDDIR)api_loopback.c \ + $(MESABUILDDIR)api_noop.c \ + $(MESABUILDDIR)api_validate.c \ + $(MESABUILDDIR)accum.c \ + $(MESABUILDDIR)attrib.c \ + $(MESABUILDDIR)blend.c \ + $(MESABUILDDIR)bufferobj.c \ + $(MESABUILDDIR)buffers.c \ + $(MESABUILDDIR)clip.c \ + $(MESABUILDDIR)colortab.c \ + $(MESABUILDDIR)context.c \ + $(MESABUILDDIR)convolve.c \ + $(MESABUILDDIR)debug.c \ + $(MESABUILDDIR)depth.c \ + $(MESABUILDDIR)dlist.c \ + $(MESABUILDDIR)drawpix.c \ + $(MESABUILDDIR)enable.c \ + $(MESABUILDDIR)enums.c \ + $(MESABUILDDIR)eval.c \ + $(MESABUILDDIR)execmem.c \ + $(MESABUILDDIR)extensions.c \ + $(MESABUILDDIR)feedback.c \ + $(MESABUILDDIR)fbobject.c \ + $(MESABUILDDIR)fog.c \ + $(MESABUILDDIR)framebuffer.c \ + $(MESABUILDDIR)get.c \ + $(MESABUILDDIR)getstring.c \ + $(MESABUILDDIR)hash.c \ + $(MESABUILDDIR)hint.c \ + $(MESABUILDDIR)histogram.c \ + $(MESABUILDDIR)image.c \ + $(MESABUILDDIR)imports.c \ + $(MESABUILDDIR)light.c \ + $(MESABUILDDIR)lines.c \ + $(MESABUILDDIR)matrix.c \ + $(MESABUILDDIR)mm.c \ + $(MESABUILDDIR)occlude.c \ + $(MESABUILDDIR)pixel.c \ + $(MESABUILDDIR)points.c \ + $(MESABUILDDIR)polygon.c \ + $(MESABUILDDIR)rastpos.c \ + $(MESABUILDDIR)renderbuffer.c \ + $(MESABUILDDIR)state.c \ + $(MESABUILDDIR)stencil.c \ + $(MESABUILDDIR)texcompress.c \ + $(MESABUILDDIR)texcompress_fxt1.c \ + $(MESABUILDDIR)texcompress_s3tc.c \ + $(MESABUILDDIR)texenvprogram.c \ + $(MESABUILDDIR)texformat.c \ + $(MESABUILDDIR)teximage.c \ + $(MESABUILDDIR)texobj.c \ + $(MESABUILDDIR)texrender.c \ + $(MESABUILDDIR)texstate.c \ + $(MESABUILDDIR)texstore.c \ + $(MESABUILDDIR)varray.c \ + $(MESABUILDDIR)vtxfmt.c + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(api_arrayelt.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(api_arrayelt.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(api_eval.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(api_loopback.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(api_loopback.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(api_noop.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(api_noop.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(api_validate.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(api_validate.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(accum.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(accum.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(attrib.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(attrib.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(blend.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(blend.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(bufferobj.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(bufferobj.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(buffers.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(buffers.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(clip.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(clip.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(colormac.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(colortab.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(colortab.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(config.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(context.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(context.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(convolve.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(convolve.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(dd.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(debug.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(debug.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(depth.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(depth.h, $(MESASRCDIR)/src/mesa/main) +#ifdef NeedAllMesaSrc +LinkSourceFile(dispatch.c, $(MESASRCDIR)/src/mesa/main) +#endif +LinkSourceFile(dlist.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(dlist.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(drawpix.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(drawpix.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(enable.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(enable.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(enums.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(enums.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(eval.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(eval.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(execmem.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(extensions.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(extensions.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(fbobject.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(fbobject.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(feedback.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(feedback.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(fog.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(fog.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(framebuffer.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(framebuffer.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(get.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(get.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(getstring.c, $(MESASRCDIR)/src/mesa/main) +#ifdef NeedAllMesaSrc +LinkSourceFile(glapi.c, $(MESASRCDIR)/src/mesa/glapi) +LinkSourceFile(glthread.c, $(MESASRCDIR)/src/mesa/glapi) +#endif +LinkSourceFile(glheader.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(hash.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(hash.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(hint.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(hint.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(histogram.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(histogram.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(image.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(image.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(imports.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(imports.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(light.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(light.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(lines.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(lines.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(macros.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(matrix.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(matrix.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(mm.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(mm.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(mtypes.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(occlude.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(occlude.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(pixel.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(pixel.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(points.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(points.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(polygon.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(polygon.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(rastpos.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(rastpos.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(renderbuffer.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(renderbuffer.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(simple_list.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(state.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(state.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(stencil.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(stencil.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texcompress.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texcompress_fxt1.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texcompress_s3tc.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texcompress.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texenvprogram.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texenvprogram.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texformat.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texformat.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texformat_tmp.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(teximage.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(teximage.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texobj.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texobj.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texrender.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texrender.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texstate.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texstate.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texstore.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(texstore.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(varray.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(varray.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(version.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(vtxfmt.c, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(vtxfmt.h, $(MESASRCDIR)/src/mesa/main) +LinkSourceFile(vtxfmt_tmp.h, $(MESASRCDIR)/src/mesa/main) +#endif + +#ifdef NeedAllMesaSrc + DISPATCHOBJS = $(MESABUILDDIR)dispatch.o + GLAPIOBJS = $(MESABUILDDIR)glapi.o + GLTHREADOBJS = $(MESABUILDDIR)glthread.o +#endif + +COREMESABASEOBJS = \ + $(DISPATCHOBJS) \ + $(GLAPIOBJS) \ + $(GLTHREADOBJS) \ + $(MESABUILDDIR)api_arrayelt.o \ + $(MESABUILDDIR)api_loopback.o \ + $(MESABUILDDIR)api_noop.o \ + $(MESABUILDDIR)api_validate.o \ + $(MESABUILDDIR)accum.o \ + $(MESABUILDDIR)attrib.o \ + $(MESABUILDDIR)blend.o \ + $(MESABUILDDIR)bufferobj.o \ + $(MESABUILDDIR)buffers.o \ + $(MESABUILDDIR)clip.o \ + $(MESABUILDDIR)colortab.o \ + $(MESABUILDDIR)context.o \ + $(MESABUILDDIR)convolve.o \ + $(MESABUILDDIR)debug.o \ + $(MESABUILDDIR)depth.o \ + $(MESABUILDDIR)dlist.o \ + $(MESABUILDDIR)drawpix.o \ + $(MESABUILDDIR)enable.o \ + $(MESABUILDDIR)enums.o \ + $(MESABUILDDIR)eval.o \ + $(MESABUILDDIR)execmem.o \ + $(MESABUILDDIR)extensions.o \ + $(MESABUILDDIR)fbobject.o \ + $(MESABUILDDIR)feedback.o \ + $(MESABUILDDIR)fog.o \ + $(MESABUILDDIR)framebuffer.o \ + $(MESABUILDDIR)get.o \ + $(MESABUILDDIR)getstring.o \ + $(MESABUILDDIR)hash.o \ + $(MESABUILDDIR)hint.o \ + $(MESABUILDDIR)histogram.o \ + $(MESABUILDDIR)image.o \ + $(MESABUILDDIR)imports.o \ + $(MESABUILDDIR)light.o \ + $(MESABUILDDIR)lines.o \ + $(MESABUILDDIR)matrix.o \ + $(MESABUILDDIR)mm.o \ + $(MESABUILDDIR)occlude.o \ + $(MESABUILDDIR)pixel.o \ + $(MESABUILDDIR)points.o \ + $(MESABUILDDIR)polygon.o \ + $(MESABUILDDIR)rastpos.o \ + $(MESABUILDDIR)renderbuffer.o \ + $(MESABUILDDIR)state.o \ + $(MESABUILDDIR)stencil.o \ + $(MESABUILDDIR)texcompress.o \ + $(MESABUILDDIR)texcompress_fxt1.o \ + $(MESABUILDDIR)texcompress_s3tc.o \ + $(MESABUILDDIR)texenvprogram.o \ + $(MESABUILDDIR)texformat.o \ + $(MESABUILDDIR)teximage.o \ + $(MESABUILDDIR)texrender.o \ + $(MESABUILDDIR)texobj.o \ + $(MESABUILDDIR)texstate.o \ + $(MESABUILDDIR)texstore.o \ + $(MESABUILDDIR)varray.o \ + $(MESABUILDDIR)vtxfmt.o + +#ifdef NeedAllMesaSrc + DISPATCHUOBJS = $(MESABUILDDIR)unshared/dispatch.o + GLAPIUOBJS = $(MESABUILDDIR)unshared/glapi.o + GLTHREADUOBJS = $(MESABUILDDIR)unshared/glthread.o +#endif + +#if defined(DoSharedLib) && DoSharedLib +COREMESABASEUOBJS = \ + $(DISPATCHUOBJS) \ + $(GLAPIUOBJS) \ + $(GLTHREADUOBJS) \ + $(MESABUILDDIR)unshared/api_arrayelt.o \ + $(MESABUILDDIR)unshared/api_loopback.o \ + $(MESABUILDDIR)unshared/api_noop.o \ + $(MESABUILDDIR)unshared/api_validate.o \ + $(MESABUILDDIR)unshared/accum.o \ + $(MESABUILDDIR)unshared/attrib.o \ + $(MESABUILDDIR)unshared/blend.o \ + $(MESABUILDDIR)unshared/bufferobj.o \ + $(MESABUILDDIR)unshared/buffers.o \ + $(MESABUILDDIR)unshared/clip.o \ + $(MESABUILDDIR)unshared/colortab.o \ + $(MESABUILDDIR)unshared/context.o \ + $(MESABUILDDIR)unshared/convolve.o \ + $(MESABUILDDIR)unshared/debug.o \ + $(MESABUILDDIR)unshared/depth.o \ + $(MESABUILDDIR)unshared/dlist.o \ + $(MESABUILDDIR)unshared/drawpix.o \ + $(MESABUILDDIR)unshared/enable.o \ + $(MESABUILDDIR)unshared/enums.o \ + $(MESABUILDDIR)unshared/eval.o \ + $(MESABUILDDIR)unshared/execmem.o \ + $(MESABUILDDIR)unshared/extensions.o \ + $(MESABUILDDIR)unshared/fbobject.o \ + $(MESABUILDDIR)unshared/feedback.o \ + $(MESABUILDDIR)unshared/fog.o \ + $(MESABUILDDIR)unshared/framebuffer.o \ + $(MESABUILDDIR)unshared/get.o \ + $(MESABUILDDIR)unshared/getstring.o \ + $(MESABUILDDIR)unshared/hash.o \ + $(MESABUILDDIR)unshared/hint.o \ + $(MESABUILDDIR)unshared/histogram.o \ + $(MESABUILDDIR)unshared/image.o \ + $(MESABUILDDIR)unshared/imports.o \ + $(MESABUILDDIR)unshared/light.o \ + $(MESABUILDDIR)unshared/lines.o \ + $(MESABUILDDIR)unshared/matrix.o \ + $(MESABUILDDIR)unshared/mm.o \ + $(MESABUILDDIR)unshared/occlude.o \ + $(MESABUILDDIR)unshared/pixel.o \ + $(MESABUILDDIR)unshared/points.o \ + $(MESABUILDDIR)unshared/polygon.o \ + $(MESABUILDDIR)unshared/rastpos.o \ + $(MESABUILDDIR)unshared/renderbuffer.o \ + $(MESABUILDDIR)unshared/state.o \ + $(MESABUILDDIR)unshared/stencil.o \ + $(MESABUILDDIR)unshared/texcompress.o \ + $(MESABUILDDIR)unshared/texcompress_fxt1.o \ + $(MESABUILDDIR)unshared/texcompress_s3tc.o \ + $(MESABUILDDIR)unshared/texenvprogram.o \ + $(MESABUILDDIR)unshared/texformat.o \ + $(MESABUILDDIR)unshared/teximage.o \ + $(MESABUILDDIR)unshared/texobj.o \ + $(MESABUILDDIR)unshared/texrender.o \ + $(MESABUILDDIR)unshared/texstate.o \ + $(MESABUILDDIR)unshared/texstore.o \ + $(MESABUILDDIR)unshared/varray.o \ + $(MESABUILDDIR)unshared/vtxfmt.o +#else +COREMESABASEUOBJS = $(COREMESABASEOBJS) +#endif + +#ifdef NeedAllMesaSrc + DISPATCHDOBJS = $(MESABUILDDIR)debugger/dispatch.o + GLAPIDOBJS = $(MESABUILDDIR)debugger/glapi.o + GLTHREADDOBJS = $(MESABUILDDIR)debugger/glthread.o +#endif + +COREMESABASEDOBJS = \ + $(DISPATCHDOBJS) \ + $(GLAPIDOBJS) \ + $(GLTHREADDOBJS) \ + $(MESABUILDDIR)debugger/api_arrayelt.o \ + $(MESABUILDDIR)debugger/api_loopback.o \ + $(MESABUILDDIR)debugger/api_noop.o \ + $(MESABUILDDIR)debugger/api_validate.o \ + $(MESABUILDDIR)debugger/accum.o \ + $(MESABUILDDIR)debugger/attrib.o \ + $(MESABUILDDIR)debugger/blend.o \ + $(MESABUILDDIR)debugger/bufferobj.o \ + $(MESABUILDDIR)debugger/buffers.o \ + $(MESABUILDDIR)debugger/clip.o \ + $(MESABUILDDIR)debugger/colortab.o \ + $(MESABUILDDIR)debugger/context.o \ + $(MESABUILDDIR)debugger/convolve.o \ + $(MESABUILDDIR)debugger/debug.o \ + $(MESABUILDDIR)debugger/depth.o \ + $(MESABUILDDIR)debugger/dlist.o \ + $(MESABUILDDIR)debugger/drawpix.o \ + $(MESABUILDDIR)debugger/enable.o \ + $(MESABUILDDIR)debugger/enums.o \ + $(MESABUILDDIR)debugger/eval.o \ + $(MESABUILDDIR)debugger/execmem.o \ + $(MESABUILDDIR)debugger/extensions.o \ + $(MESABUILDDIR)debugger/fbobject.o \ + $(MESABUILDDIR)debugger/feedback.o \ + $(MESABUILDDIR)debugger/fog.o \ + $(MESABUILDDIR)debugger/framebuffer.o \ + $(MESABUILDDIR)debugger/get.o \ + $(MESABUILDDIR)debugger/getstring.o \ + $(MESABUILDDIR)debugger/hash.o \ + $(MESABUILDDIR)debugger/hint.o \ + $(MESABUILDDIR)debugger/histogram.o \ + $(MESABUILDDIR)debugger/image.o \ + $(MESABUILDDIR)debugger/imports.o \ + $(MESABUILDDIR)debugger/light.o \ + $(MESABUILDDIR)debugger/lines.o \ + $(MESABUILDDIR)debugger/matrix.o \ + $(MESABUILDDIR)debugger/mm.o \ + $(MESABUILDDIR)debugger/occlude.o \ + $(MESABUILDDIR)debugger/pixel.o \ + $(MESABUILDDIR)debugger/points.o \ + $(MESABUILDDIR)debugger/polygon.o \ + $(MESABUILDDIR)debugger/rastpos.o \ + $(MESABUILDDIR)debugger/renderbuffer.o \ + $(MESABUILDDIR)debugger/state.o \ + $(MESABUILDDIR)debugger/stencil.o \ + $(MESABUILDDIR)debugger/texcompress.o \ + $(MESABUILDDIR)debugger/texcompress_fxt1.o \ + $(MESABUILDDIR)debugger/texcompress_s3tc.o \ + $(MESABUILDDIR)debugger/texenvprogram.o \ + $(MESABUILDDIR)debugger/texformat.o \ + $(MESABUILDDIR)debugger/teximage.o \ + $(MESABUILDDIR)debugger/texobj.o \ + $(MESABUILDDIR)debugger/texrender.o \ + $(MESABUILDDIR)debugger/texstate.o \ + $(MESABUILDDIR)debugger/texstore.o \ + $(MESABUILDDIR)debugger/varray.o \ + $(MESABUILDDIR)debugger/vtxfmt.o + +#ifdef NeedAllMesaSrc + DISPATCHPOBJS = $(MESABUILDDIR)profiled/dispatch.o + GLAPIPOBJS = $(MESABUILDDIR)profiled/glapi.o + GLTHREADPOBJS = $(MESABUILDDIR)profiled/glthread.o +#endif + +COREMESABASEPOBJS = \ + $(DISPATCHPOBJS) \ + $(GLAPIPOBJS) \ + $(GLTHREADPOBJS) \ + $(MESABUILDDIR)profiled/api_arrayelt.o \ + $(MESABUILDDIR)profiled/api_loopback.o \ + $(MESABUILDDIR)profiled/api_noop.o \ + $(MESABUILDDIR)profiled/api_validate.o \ + $(MESABUILDDIR)profiled/accum.o \ + $(MESABUILDDIR)profiled/attrib.o \ + $(MESABUILDDIR)profiled/blend.o \ + $(MESABUILDDIR)profiled/bufferobj.o \ + $(MESABUILDDIR)profiled/buffers.o \ + $(MESABUILDDIR)profiled/clip.o \ + $(MESABUILDDIR)profiled/colortab.o \ + $(MESABUILDDIR)profiled/context.o \ + $(MESABUILDDIR)profiled/convolve.o \ + $(MESABUILDDIR)profiled/debug.o \ + $(MESABUILDDIR)profiled/depth.o \ + $(MESABUILDDIR)profiled/dlist.o \ + $(MESABUILDDIR)profiled/drawpix.o \ + $(MESABUILDDIR)profiled/enable.o \ + $(MESABUILDDIR)profiled/enums.o \ + $(MESABUILDDIR)profiled/eval.o \ + $(MESABUILDDIR)profiled/execmem.o \ + $(MESABUILDDIR)profiled/extensions.o \ + $(MESABUILDDIR)profiled/fbobject.o \ + $(MESABUILDDIR)profiled/feedback.o \ + $(MESABUILDDIR)profiled/fog.o \ + $(MESABUILDDIR)profiled/framebuffer.o \ + $(MESABUILDDIR)profiled/get.o \ + $(MESABUILDDIR)profiled/getstring.o \ + $(MESABUILDDIR)profiled/hash.o \ + $(MESABUILDDIR)profiled/hint.o \ + $(MESABUILDDIR)profiled/histogram.o \ + $(MESABUILDDIR)profiled/image.o \ + $(MESABUILDDIR)profiled/imports.o \ + $(MESABUILDDIR)profiled/light.o \ + $(MESABUILDDIR)profiled/lines.o \ + $(MESABUILDDIR)profiled/matrix.o \ + $(MESABUILDDIR)profiled/mm.o \ + $(MESABUILDDIR)profiled/occlude.o \ + $(MESABUILDDIR)profiled/pixel.o \ + $(MESABUILDDIR)profiled/points.o \ + $(MESABUILDDIR)profiled/polygon.o \ + $(MESABUILDDIR)profiled/rastpos.o \ + $(MESABUILDDIR)profiled/renderbuffer.o \ + $(MESABUILDDIR)profiled/state.o \ + $(MESABUILDDIR)profiled/stencil.o \ + $(MESABUILDDIR)profiled/texcompress.o \ + $(MESABUILDDIR)profiled/texcompress_fxt1.o \ + $(MESABUILDDIR)profiled/texcompress_s3tc.o \ + $(MESABUILDDIR)profiled/texenvprogram.o \ + $(MESABUILDDIR)profiled/texformat.o \ + $(MESABUILDDIR)profiled/teximage.o \ + $(MESABUILDDIR)profiled/texobj.o \ + $(MESABUILDDIR)profiled/texrender.o \ + $(MESABUILDDIR)profiled/texstate.o \ + $(MESABUILDDIR)profiled/texstore.o \ + $(MESABUILDDIR)profiled/varray.o \ + $(MESABUILDDIR)profiled/vtxfmt.o diff --git a/nx-X11/lib/GL/mesa/math/Imakefile b/nx-X11/lib/GL/mesa/math/Imakefile new file mode 100644 index 000000000..ab00ae76f --- /dev/null +++ b/nx-X11/lib/GL/mesa/math/Imakefile @@ -0,0 +1,98 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/math/Imakefile,v 1.8 2002/11/25 12:58:55 tsi Exp $ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + + +#define MesaMathBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER + DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \ + -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri +#endif + +#if defined(i386Architecture) && MesaUseX86Asm + ASM_DIR = x86 + ASM_SRCS = + ASM_OBJS = +#if MesaUseMMX + MMX_DEFS = -DUSE_MMX_ASM +#endif +#if MesaUse3DNow + 3DNOW_DEFS = -DUSE_3DNOW_ASM +#endif +#if MesaUseSSE + SSE_DEFS = -DUSE_SSE_ASM +#endif + ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS) +#endif + +#ifdef SparcArchitecture + ASM_DIR = sparc + ASM_SRCS = + ASM_OBJS = + ASM_DEFS = -DUSE_SPARC_ASM +#endif + +#ifdef UseCompaqMathLibrary + MATHDEF = -DCCPML +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/math \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \ + -I$(MESASRCDIR)/include \ + -I../../../include -I$(XINCLUDESRC) + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF) + INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES) + SRCS = $(MESA_MATH_SRCS) + OBJS = $(MESA_MATH_OBJS) + + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/math/Imakefile.inc b/nx-X11/lib/GL/mesa/math/Imakefile.inc new file mode 100644 index 000000000..cd1dcc427 --- /dev/null +++ b/nx-X11/lib/GL/mesa/math/Imakefile.inc @@ -0,0 +1,82 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/math/Imakefile.inc,v 1.1tsi Exp $ + +#ifndef MesaMathBuildDir +#define MesaMathBuildDir $(GLXLIBSRC)/mesa/math/ +#endif + +MESAMATHBUILDDIR = MesaMathBuildDir + + MESA_MATH_SRCS = $(MESAMATHBUILDDIR)m_debug_clip.c \ + $(MESAMATHBUILDDIR)m_debug_norm.c \ + $(MESAMATHBUILDDIR)m_debug_xform.c \ + $(MESAMATHBUILDDIR)m_eval.c \ + $(MESAMATHBUILDDIR)m_matrix.c \ + $(MESAMATHBUILDDIR)m_translate.c \ + $(MESAMATHBUILDDIR)m_vector.c \ + $(MESAMATHBUILDDIR)m_xform.c + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(mathmod.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_clip_tmp.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_copy_tmp.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_debug_clip.c, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_debug.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_debug_util.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_debug_norm.c, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_debug_xform.c, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_dotprod_tmp.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_eval.c, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_eval.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_matrix.c, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_matrix.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_norm_tmp.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_translate.c, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_translate.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_trans_tmp.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_vector.c, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_vector.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_xform.c, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_xform.h, $(MESASRCDIR)/src/mesa/math) +LinkSourceFile(m_xform_tmp.h, $(MESASRCDIR)/src/mesa/math) +#endif + + MESA_MATH_OBJS = $(MESAMATHBUILDDIR)m_debug_clip.o \ + $(MESAMATHBUILDDIR)m_debug_norm.o \ + $(MESAMATHBUILDDIR)m_debug_xform.o \ + $(MESAMATHBUILDDIR)m_eval.o \ + $(MESAMATHBUILDDIR)m_matrix.o \ + $(MESAMATHBUILDDIR)m_translate.o \ + $(MESAMATHBUILDDIR)m_vector.o \ + $(MESAMATHBUILDDIR)m_xform.o + +#if defined(DoSharedLib) && DoSharedLib + MESA_MATH_UOBJS = $(MESAMATHBUILDDIR)unshared/m_debug_clip.o \ + $(MESAMATHBUILDDIR)unshared/m_debug_norm.o \ + $(MESAMATHBUILDDIR)unshared/m_debug_xform.o \ + $(MESAMATHBUILDDIR)unshared/m_eval.o \ + $(MESAMATHBUILDDIR)unshared/m_matrix.o \ + $(MESAMATHBUILDDIR)unshared/m_translate.o \ + $(MESAMATHBUILDDIR)unshared/m_vector.o \ + $(MESAMATHBUILDDIR)unshared/m_xform.o +#else + MATH_MESA_UOBJS = $(MESA_MATH_OBJS) +#endif + + MESA_MATH_DOBJS = $(MESAMATHBUILDDIR)debugger/m_debug_clip.o \ + $(MESAMATHBUILDDIR)debugger/m_debug_norm.o \ + $(MESAMATHBUILDDIR)debugger/m_debug_xform.o \ + $(MESAMATHBUILDDIR)debugger/m_eval.o \ + $(MESAMATHBUILDDIR)debugger/m_matrix.o \ + $(MESAMATHBUILDDIR)debugger/m_translate.o \ + $(MESAMATHBUILDDIR)debugger/m_vector.o \ + $(MESAMATHBUILDDIR)debugger/m_xform.o + + MESA_MATH_POBJS = $(MESAMATHBUILDDIR)profiled/m_debug_clip.o \ + $(MESAMATHBUILDDIR)profiled/m_debug_norm.o \ + $(MESAMATHBUILDDIR)profiled/m_debug_xform.o \ + $(MESAMATHBUILDDIR)profiled/m_eval.o \ + $(MESAMATHBUILDDIR)profiled/m_matrix.o \ + $(MESAMATHBUILDDIR)profiled/m_translate.o \ + $(MESAMATHBUILDDIR)profiled/m_vector.o \ + $(MESAMATHBUILDDIR)profiled/m_xform.o + diff --git a/nx-X11/lib/GL/mesa/shader/Imakefile b/nx-X11/lib/GL/mesa/shader/Imakefile new file mode 100644 index 000000000..d46834740 --- /dev/null +++ b/nx-X11/lib/GL/mesa/shader/Imakefile @@ -0,0 +1,107 @@ +XCOMM $XFree86$ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + +#define MesaShaderBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER + DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \ + -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri +#endif + +#if defined(i386Architecture) && MesaUseX86Asm + ASM_DIR = x86 + ASM_SRCS = + ASM_OBJS = +#if MesaUseMMX + MMX_DEFS = -DUSE_MMX_ASM +#endif +#if MesaUse3DNow + 3DNOW_DEFS = -DUSE_3DNOW_ASM +#endif +#if MesaUseSSE + SSE_DEFS = -DUSE_SSE_ASM +#endif + ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS) +#endif + +#ifdef SparcArchitecture + ASM_DIR = sparc + ASM_SRCS = + ASM_OBJS = + ASM_DEFS = -DUSE_SPARC_ASM +#endif + +#ifdef UseCompaqMathLibrary + MATHDEF = -DCCPML +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/math \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader/grammar \ + -I$(MESASRCDIR)/src/mesa/shader/slang \ + -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \ + -I$(MESASRCDIR)/include \ + -I../../../include -I$(XINCLUDESRC) + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF) + INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES) + SRCS = $(MESA_SHADER_SRCS) + OBJS = $(MESA_SHADER_OBJS) + + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +#define IHaveSubdirs +#define PassCDebugFlags + +SUBDIRS = grammar slang + +MakeSubdirs($(SUBDIRS)) +DependSubdirs($(SUBDIRS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/shader/Imakefile.inc b/nx-X11/lib/GL/mesa/shader/Imakefile.inc new file mode 100644 index 000000000..7d0032e56 --- /dev/null +++ b/nx-X11/lib/GL/mesa/shader/Imakefile.inc @@ -0,0 +1,106 @@ +XCOMM $XFree86:$ + +#ifndef MesaShaderBuildDir +#define MesaShaderBuildDir $(GLXLIBSRC)/mesa/shader/ +#endif + +MESASHADERBUILDDIR = MesaShaderBuildDir + + MESA_SHADER_SRCS = $(MESASHADERBUILDDIR)arbprogparse.c \ + $(MESASHADERBUILDDIR)arbprogram.c \ + $(MESASHADERBUILDDIR)arbfragparse.c \ + $(MESASHADERBUILDDIR)arbvertparse.c \ + $(MESASHADERBUILDDIR)atifragshader.c \ + $(MESASHADERBUILDDIR)nvprogram.c \ + $(MESASHADERBUILDDIR)nvfragparse.c \ + $(MESASHADERBUILDDIR)nvvertexec.c \ + $(MESASHADERBUILDDIR)nvvertparse.c \ + $(MESASHADERBUILDDIR)program.c \ + $(MESASHADERBUILDDIR)shaderobjects.c \ + $(MESASHADERBUILDDIR)shaderobjects_3dlabs.c + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(arbprogparse.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(arbprogram.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(arbfragparse.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(arbvertparse.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(arbfragparse.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(arbprogparse.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(arbprogram.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(arbprogram_syn.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(arbvertparse.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(atifragshader.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(atifragshader.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(nvfragparse.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(nvfragprog.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(nvprogram.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(nvprogram.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(nvfragparse.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(nvvertexec.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(nvvertexec.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(nvvertparse.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(nvvertparse.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(nvvertprog.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(program.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(program.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(shaderobjects.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(shaderobjects.h, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(shaderobjects_3dlabs.c, $(MESASRCDIR)/src/mesa/shader) +LinkSourceFile(shaderobjects_3dlabs.h, $(MESASRCDIR)/src/mesa/shader) +#endif + + MESA_SHADER_OBJS = $(MESASHADERBUILDDIR)arbprogparse.o \ + $(MESASHADERBUILDDIR)arbprogram.o \ + $(MESASHADERBUILDDIR)arbfragparse.o \ + $(MESASHADERBUILDDIR)arbvertparse.o \ + $(MESASHADERBUILDDIR)atifragshader.o \ + $(MESASHADERBUILDDIR)nvprogram.o \ + $(MESASHADERBUILDDIR)nvfragparse.o \ + $(MESASHADERBUILDDIR)nvvertexec.o \ + $(MESASHADERBUILDDIR)nvvertparse.o \ + $(MESASHADERBUILDDIR)program.o \ + $(MESASHADERBUILDDIR)shaderobjects.o \ + $(MESASHADERBUILDDIR)shaderobjects_3dlabs.o + +#if defined(DoSharedLib) && DoSharedLib + MESA_SHADER_UOBJS = $(MESASHADERBUILDDIR)unshared/arbprogparse.o \ + $(MESASHADERBUILDDIR)unshared/arbprogram.o \ + $(MESASHADERBUILDDIR)unshared/arbfragparse.o \ + $(MESASHADERBUILDDIR)unshared/arbvertparse.o \ + $(MESASHADERBUILDDIR)unshared/atifragshader.o \ + $(MESASHADERBUILDDIR)unshared/nvprogram.o \ + $(MESASHADERBUILDDIR)unshared/nvfragparse.o \ + $(MESASHADERBUILDDIR)unshared/nvvertexec.o \ + $(MESASHADERBUILDDIR)unshared/nvvertparse.o \ + $(MESASHADERBUILDDIR)unshared/program.o \ + $(MESASHADERBUILDDIR)unshared/shaderobjects.o \ + $(MESASHADERBUILDDIR)unshared/shaderobjects_3dlabs.o +#else + MESA_SHADER_UOBJS = $(MESA_SHADER_OBJS) +#endif + + MESA_SHADER_DOBJS = $(MESASHADERBUILDDIR)debugger/arbprogparse.o \ + $(MESASHADERBUILDDIR)debugger/arbprogram.o \ + $(MESASHADERBUILDDIR)debugger/arbfragparse.o \ + $(MESASHADERBUILDDIR)debugger/arbvertparse.o \ + $(MESASHADERBUILDDIR)debugger/atifragshader.o \ + $(MESASHADERBUILDDIR)debugger/nvprogram.o \ + $(MESASHADERBUILDDIR)debugger/nvfragparse.o \ + $(MESASHADERBUILDDIR)debugger/nvvertexec.o \ + $(MESASHADERBUILDDIR)debugger/nvvertparse.o \ + $(MESASHADERBUILDDIR)debugger/program.o \ + $(MESASHADERBUILDDIR)debugger/shaderobjects.o \ + $(MESASHADERBUILDDIR)debugger/shaderobjects_3dlabs.o + + MESA_SHADER_POBJS = $(MESASHADERBUILDDIR)profiled/arbprogparse.o \ + $(MESASHADERBUILDDIR)profiled/arbprogram.o \ + $(MESASHADERBUILDDIR)profiled/arbfragparse.o \ + $(MESASHADERBUILDDIR)profiled/arbvertparse.o \ + $(MESASHADERBUILDDIR)profiled/atifragshader.o \ + $(MESASHADERBUILDDIR)profiled/nvprogram.o \ + $(MESASHADERBUILDDIR)profiled/nvfragparse.o \ + $(MESASHADERBUILDDIR)profiled/nvvertexec.o \ + $(MESASHADERBUILDDIR)profiled/nvvertparse.o \ + $(MESASHADERBUILDDIR)profiled/program.o \ + $(MESASHADERBUILDDIR)profiled/shaderobjects.o \ + $(MESASHADERBUILDDIR)profiled/shaderobjects_3dlabs.o diff --git a/nx-X11/lib/GL/mesa/shader/grammar/Imakefile b/nx-X11/lib/GL/mesa/shader/grammar/Imakefile new file mode 100644 index 000000000..bbdec9764 --- /dev/null +++ b/nx-X11/lib/GL/mesa/shader/grammar/Imakefile @@ -0,0 +1,98 @@ +XCOMM $XFree86$ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + +#define MesaGrammarBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER + DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \ + -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri +#endif + +#if defined(i386Architecture) && MesaUseX86Asm + ASM_DIR = x86 + ASM_SRCS = + ASM_OBJS = +#if MesaUseMMX + MMX_DEFS = -DUSE_MMX_ASM +#endif +#if MesaUse3DNow + 3DNOW_DEFS = -DUSE_3DNOW_ASM +#endif +#if MesaUseSSE + SSE_DEFS = -DUSE_SSE_ASM +#endif + ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS) +#endif + +#ifdef SparcArchitecture + ASM_DIR = sparc + ASM_SRCS = + ASM_OBJS = + ASM_DEFS = -DUSE_SPARC_ASM +#endif + +#ifdef UseCompaqMathLibrary + MATHDEF = -DCCPML +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/math \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader/grammar \ + -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \ + -I$(MESASRCDIR)/include \ + -I../../../include -I$(XINCLUDESRC) + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF) + INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES) + SRCS = $(MESA_GRAMMAR_SRCS) + OBJS = $(MESA_GRAMMAR_OBJS) + + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/shader/grammar/Imakefile.inc b/nx-X11/lib/GL/mesa/shader/grammar/Imakefile.inc new file mode 100644 index 000000000..b2e885f89 --- /dev/null +++ b/nx-X11/lib/GL/mesa/shader/grammar/Imakefile.inc @@ -0,0 +1,29 @@ +XCOMM $XFree86$ + +#ifndef MesaGrammarBuildDir +#define MesaGrammarBuildDir $(GLXLIBSRC)/mesa/shader/grammar/ +#endif + +MESAGRAMMARBUILDDIR=MesaGrammarBuildDir + + MESA_GRAMMAR_SRCS = $(MESAGRAMMARBUILDDIR)grammar_mesa.c + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(grammar.c, $(MESASRCDIR)/src/mesa/shader/grammar) +LinkSourceFile(grammar.h, $(MESASRCDIR)/src/mesa/shader/grammar) +LinkSourceFile(grammar_syn.h, $(MESASRCDIR)/src/mesa/shader/grammar) +LinkSourceFile(grammar_mesa.c, $(MESASRCDIR)/src/mesa/shader/grammar) +LinkSourceFile(grammar_mesa.h, $(MESASRCDIR)/src/mesa/shader/grammar) +#endif + + MESA_GRAMMAR_OBJS = $(MESAGRAMMARBUILDDIR)grammar_mesa.o + +#if defined(DoSharedLib) && DoSharedLib + MESA_GRAMMAR_UOBJS = $(MESAGRAMMARBUILDDIR)unshared/grammar_mesa.o +#else + MESA_GRAMMAR_UOBJS = $(MESA_GRAMMAR_OBJS) +#endif + + MESA_GRAMMAR_DOBJS = $(MESAGRAMMARBUILDDIR)debugger/grammar_mesa.o + + MESA_GRAMMAR_POBJS = $(MESAGRAMMARBUILDDIR)profiled/grammar_mesa.o diff --git a/nx-X11/lib/GL/mesa/shader/slang/Imakefile b/nx-X11/lib/GL/mesa/shader/slang/Imakefile new file mode 100644 index 000000000..096a8ea63 --- /dev/null +++ b/nx-X11/lib/GL/mesa/shader/slang/Imakefile @@ -0,0 +1,108 @@ +XCOMM $XFree86$ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + +#define MesaSlangBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER + DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \ + -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri +#endif + +#if defined(i386Architecture) && MesaUseX86Asm + ASM_DIR = x86 + ASM_SRCS = + ASM_OBJS = +#if MesaUseMMX + MMX_DEFS = -DUSE_MMX_ASM +#endif +#if MesaUse3DNow + 3DNOW_DEFS = -DUSE_3DNOW_ASM +#endif +#if MesaUseSSE + SSE_DEFS = -DUSE_SSE_ASM +#endif + ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS) +#endif + +#ifdef SparcArchitecture + ASM_DIR = sparc + ASM_SRCS = + ASM_OBJS = + ASM_DEFS = -DUSE_SPARC_ASM +#endif + +#ifdef UseCompaqMathLibrary + MATHDEF = -DCCPML +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/math \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader/grammar \ + -I$(MESASRCDIR)/src/mesa/shader/slang \ + -I$(MESASRCDIR)/src/mesa/shader/slang/library \ + -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \ + -I$(MESASRCDIR)/include \ + -I../../../include -I$(XINCLUDESRC) + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF) + INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES) + SRCS = $(MESA_SLANG_SRCS) + OBJS = $(MESA_SLANG_OBJS) + + +#include <Library.tmpl> + +#define IHaveSubdirs +#define PassCDebugFlags + +SUBDIRS = library + +MakeSubdirs($(SUBDIRS)) +DependSubdirs($(SUBDIRS)) + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/shader/slang/Imakefile.inc b/nx-X11/lib/GL/mesa/shader/slang/Imakefile.inc new file mode 100644 index 000000000..d824ca797 --- /dev/null +++ b/nx-X11/lib/GL/mesa/shader/slang/Imakefile.inc @@ -0,0 +1,90 @@ +XCOMM $XFree86$ + +#ifndef MesaSlangBuildDir +#define MesaSlangBuildDir $(GLXLIBSRC)/mesa/shader/slang/ +#endif + +MESASLANGBUILDDIR=MesaSlangBuildDir + + MESA_SLANG_SRCS = $(MESASLANGBUILDDIR)slang_assemble_assignment.c \ + $(MESASLANGBUILDDIR)slang_assemble.c \ + $(MESASLANGBUILDDIR)slang_assemble_conditional.c \ + $(MESASLANGBUILDDIR)slang_assemble_constructor.c \ + $(MESASLANGBUILDDIR)slang_assemble_typeinfo.c \ + $(MESASLANGBUILDDIR)slang_compile.c \ + $(MESASLANGBUILDDIR)slang_execute.c \ + $(MESASLANGBUILDDIR)slang_preprocess.c \ + $(MESASLANGBUILDDIR)slang_storage.c \ + $(MESASLANGBUILDDIR)slang_utility.c + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(slang_assemble_assignment.c, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_assemble_assignment.h, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_assemble.c, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_assemble.h, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_assemble_conditional.c, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_assemble_conditional.h, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_assemble_constructor.c, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_assemble_constructor.h, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_assemble_typeinfo.c, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_assemble_typeinfo.h, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_compile.c, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_compile.h, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_execute.c, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_execute.h, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_preprocess.c, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_preprocess.h, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_storage.c, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_storage.h, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_utility.c, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(slang_utility.h, $(MESASRCDIR)/src/mesa/shader/slang) +LinkSourceFile(traverse_wrap.h, $(MESASRCDIR)/src/mesa/shader/slang) +#endif + + MESA_SLANG_OBJS = $(MESASLANGBUILDDIR)slang_assemble_assignment.o \ + $(MESASLANGBUILDDIR)slang_assemble.o \ + $(MESASLANGBUILDDIR)slang_assemble_conditional.o \ + $(MESASLANGBUILDDIR)slang_assemble_constructor.o \ + $(MESASLANGBUILDDIR)slang_assemble_typeinfo.o \ + $(MESASLANGBUILDDIR)slang_compile.o \ + $(MESASLANGBUILDDIR)slang_execute.o \ + $(MESASLANGBUILDDIR)slang_preprocess.o \ + $(MESASLANGBUILDDIR)slang_storage.o \ + $(MESASLANGBUILDDIR)slang_utility.o + +#if defined(DoSharedLib) && DoSharedLib + MESA_SLANG_UOBJS = $(MESASLANGBUILDDIR)unshared/slang_assemble_assignment.o \ + $(MESASLANGBUILDDIR)unshared/slang_assemble.o \ + $(MESASLANGBUILDDIR)unshared/slang_assemble_conditional.o \ + $(MESASLANGBUILDDIR)unshared/slang_assemble_constructor.o \ + $(MESASLANGBUILDDIR)unshared/slang_assemble_typeinfo.o \ + $(MESASLANGBUILDDIR)unshared/slang_compile.o \ + $(MESASLANGBUILDDIR)unshared/slang_execute.o \ + $(MESASLANGBUILDDIR)unshared/slang_preprocess.o \ + $(MESASLANGBUILDDIR)unshared/slang_storage.o \ + $(MESASLANGBUILDDIR)unshared/slang_utility.o +#else + MESA_SLANG_UOBJS = $(MESA_SLANG_OBJS) +#endif + + MESA_SLANG_DOBJS = $(MESASLANGBUILDDIR)debuggerslang_assemble_assignment.o \ + $(MESASLANGBUILDDIR)debuggerslang_assemble.o \ + $(MESASLANGBUILDDIR)debuggerslang_assemble_conditional.o \ + $(MESASLANGBUILDDIR)debuggerslang_assemble_constructor.o \ + $(MESASLANGBUILDDIR)debuggerslang_assemble_typeinfo.o \ + $(MESASLANGBUILDDIR)debuggerslang_compile.o \ + $(MESASLANGBUILDDIR)debuggerslang_execute.o \ + $(MESASLANGBUILDDIR)debuggerslang_preprocess.o \ + $(MESASLANGBUILDDIR)debuggerslang_storage.o \ + $(MESASLANGBUILDDIR)debuggerslang_utility.o + + MESA_SLANG_POBJS = $(MESASLANGBUILDDIR)profiled/slang_assemble_assignment.o \ + $(MESASLANGBUILDDIR)profiled/slang_assemble.o \ + $(MESASLANGBUILDDIR)profiled/slang_assemble_conditional.o \ + $(MESASLANGBUILDDIR)profiled/slang_assemble_constructor.o \ + $(MESASLANGBUILDDIR)profiled/slang_assemble_typeinfo.o \ + $(MESASLANGBUILDDIR)profiled/slang_compile.o \ + $(MESASLANGBUILDDIR)profiled/slang_execute.o \ + $(MESASLANGBUILDDIR)profiled/slang_preprocess.o \ + $(MESASLANGBUILDDIR)profiled/slang_storage.o \ + $(MESASLANGBUILDDIR)profiled/slang_utility.o diff --git a/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile b/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile new file mode 100644 index 000000000..de32171ae --- /dev/null +++ b/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile @@ -0,0 +1,97 @@ +XCOMM $XFree86$ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + +#define MesaShaderBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER + DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I.. \ + -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri +#endif + +#if defined(i386Architecture) && MesaUseX86Asm + ASM_DIR = x86 + ASM_SRCS = + ASM_OBJS = +#if MesaUseMMX + MMX_DEFS = -DUSE_MMX_ASM +#endif +#if MesaUse3DNow + 3DNOW_DEFS = -DUSE_3DNOW_ASM +#endif +#if MesaUseSSE + SSE_DEFS = -DUSE_SSE_ASM +#endif + ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS) +#endif + +#ifdef SparcArchitecture + ASM_DIR = sparc + ASM_SRCS = + ASM_OBJS = + ASM_DEFS = -DUSE_SPARC_ASM +#endif + +#ifdef UseCompaqMathLibrary + MATHDEF = -DCCPML +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/math \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/shader/slang \ + -I$(MESASRCDIR)/src/mesa/shader/slang/library \ + -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \ + -I$(MESASRCDIR)/include \ + -I../../../include -I$(XINCLUDESRC) + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF) + INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES) + SRCS = $(MESA_SLANG_SRCS) + OBJS = $(MESA_SLANG_OBJS) + + +#include <Library.tmpl> + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile.inc b/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile.inc new file mode 100644 index 000000000..3489b7a28 --- /dev/null +++ b/nx-X11/lib/GL/mesa/shader/slang/library/Imakefile.inc @@ -0,0 +1,14 @@ +XCOMM $XFree86:$ + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(slang_common_builtin_gc_bin.h, $(MESASRCDIR)/src/mesa/shader/slang/library) +LinkSourceFile(slang_common_builtin_gc.h, $(MESASRCDIR)/src/mesa/shader/slang/library) +LinkSourceFile(slang_core_gc_bin.h, $(MESASRCDIR)/src/mesa/shader/slang/library) +LinkSourceFile(slang_core_gc.h, $(MESASRCDIR)/src/mesa/shader/slang/library) +LinkSourceFile(slang_fragment_builtin_gc_bin.h, $(MESASRCDIR)/src/mesa/shader/slang/library) +LinkSourceFile(slang_fragment_builtin_gc.h, $(MESASRCDIR)/src/mesa/shader/slang/library) +LinkSourceFile(slang_shader_syn.h, $(MESASRCDIR)/src/mesa/shader/slang/library) +LinkSourceFile(slang_version_syn.h, $(MESASRCDIR)/src/mesa/shader/slang/library) +LinkSourceFile(slang_vertex_builtin_gc_bin.h, $(MESASRCDIR)/src/mesa/shader/slang/library) +LinkSourceFile(slang_vertex_builtin_gc.h, $(MESASRCDIR)/src/mesa/shader/slang/library) +#endif diff --git a/nx-X11/lib/GL/mesa/sparc/Imakefile b/nx-X11/lib/GL/mesa/sparc/Imakefile new file mode 100644 index 000000000..8cd9c9f8b --- /dev/null +++ b/nx-X11/lib/GL/mesa/sparc/Imakefile @@ -0,0 +1,68 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/SPARC/Imakefile,v 1.3 2002/11/22 22:55:58 tsi Exp $ +XCOMM $XdotOrg: xc/lib/GL/mesa/sparc/Imakefile,v 1.3 2004/11/13 04:39:16 gisburn Exp $ + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#define MesaSPARCBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + DEFINES = $(ALLOC_DEFINES) GlxDefines $(MESA_ASM_DEFINES) + INCLUDES = -I$(INCLUDESRC) -I$(EXTINCSRC) -I$(MESASRCDIR)/src \ + -I$(MESASRCDIR)/src/SPARC \ + -I../../../include \ + -I$(MESASRCDIR)/include \ + -I$(GLXLIBSRC)/include \ + -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/sparc \ + -I$(MESASRCDIR)/src/mesa/glapi + + SRCS = $(MESA_ASM_SRCS) + OBJS = $(MESA_ASM_OBJS) + +#include <Library.tmpl> + +LibraryObjectRule() + +STD_CPP_DEFINES = StandardDefines $(PROJECT_DEFINES) + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +ObjectFromAsmSource(xform, NullParameter) +ObjectFromAsmSource(clip, NullParameter) +ObjectFromAsmSource(norm, NullParameter) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/sparc/Imakefile.inc b/nx-X11/lib/GL/mesa/sparc/Imakefile.inc new file mode 100644 index 000000000..6bd006749 --- /dev/null +++ b/nx-X11/lib/GL/mesa/sparc/Imakefile.inc @@ -0,0 +1,58 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/SPARC/Imakefile.inc,v 1.2 2002/11/14 21:01:16 tsi Exp $ + +#ifndef MesaSPARCBuildDir +#define MesaSPARCBuildDir $(GLXLIBSRC)/mesa/sparc/ +#endif + +MESASPARCBUILDDIR = MesaSPARCBuildDir + +MESA_SPARC_SRCS = $(MESASPARCBUILDDIR)sparc.c \ + $(MESASPARCBUILDDIR)xform.S \ + $(MESASPARCBUILDDIR)clip.S + +#ifdef NeedToLinkMesaSrc +/* If $(MESASRCDIR)/src/mesa/sparc isn't in the INCLUDES, it should be. */ +LinkSourceFile(sparc.c, $(MESASRCDIR)/src/mesa/sparc) +LinkSourceFile(xform.S, $(MESASRCDIR)/src/mesa/sparc) +LinkSourceFile(clip.S, $(MESASRCDIR)/src/mesa/sparc) +LinkSourceFile(norm.S, $(MESASRCDIR)/src/mesa/sparc) +#endif + +MESA_SPARC_OBJS = $(MESASPARCBUILDDIR)sparc.o \ + $(MESASPARCBUILDDIR)xform.o \ + $(MESASPARCBUILDDIR)clip.o \ + $(MESASPARCBUILDDIR)norm.o + +#if defined(DoSharedLib) && DoSharedLib +MESA_SPARC_UOBJS = $(MESASPARCBUILDDIR)unshared/sparc.o \ + $(MESASPARCBUILDDIR)xform.o \ + $(MESASPARCBUILDDIR)clip.o \ + $(MESASPARCBUILDDIR)norm.o +#else +MESA_SPARC_UOBJS = $(MESA_SPARC_OBJS) +#endif + +MESA_SPARC_DOBJS = $(MESASPARCBUILDDIR)debugger/sparc.o \ + $(MESASPARCBUILDDIR)xform.o \ + $(MESASPARCBUILDDIR)clip.o \ + $(MESASPARCBUILDDIR)norm.o + +MESA_SPARC_POBJS = $(MESAX86BUILDDIR)profiled/sparc.o \ + $(MESAX86BUILDDIR)xform.o \ + $(MESAX86BUILDDIR)clip.o \ + $(MESAX86BUILDDIR)norm.o + +MESA_SPARC_DEFS = -DUSE_SPARC_ASM + +MESA_ASM_SRCS = $(MESA_SPARC_SRCS) + +MESA_ASM_OBJS = $(MESA_SPARC_OBJS) + +MESA_ASM_UOBJS = $(MESA_SPARC_UOBJS) + +MESA_ASM_DOBJS = $(MESA_SPARC_DOBJS) + +MESA_ASM_POBJS = $(MESA_SPARC_POBJS) + +MESA_ASM_DEFINES = $(MESA_SPARC_DEFS) + diff --git a/nx-X11/lib/GL/mesa/swrast/Imakefile b/nx-X11/lib/GL/mesa/swrast/Imakefile new file mode 100644 index 000000000..105615b82 --- /dev/null +++ b/nx-X11/lib/GL/mesa/swrast/Imakefile @@ -0,0 +1,100 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/swrast/Imakefile,v 1.8 2002/11/25 12:58:55 tsi Exp $ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + +#define MesaSwrastBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER + DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \ + -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri +#endif + +#if defined(i386Architecture) && MesaUseX86Asm + ASM_DIR = x86 + ASM_SRCS = + ASM_OBJS = +#if MesaUseMMX + MMX_DEFS = -DUSE_MMX_ASM +#endif +#if MesaUse3DNow + 3DNOW_DEFS = -DUSE_3DNOW_ASM +#endif +#if MesaUseSSE + SSE_DEFS = -DUSE_SSE_ASM +#endif + ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS) +#endif + +#ifdef SparcArchitecture + ASM_DIR = sparc + ASM_SRCS = + ASM_OBJS = + ASM_DEFS = -DUSE_SPARC_ASM +#endif + +#ifdef UseCompaqMathLibrary + MATHDEF = -DCCPML +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/array_cache \ + -I$(MESASRCDIR)/src/mesa/math \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/swrast \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \ + -I$(MESASRCDIR)/include \ + -I../../../include -I$(XINCLUDESRC) + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF) + INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES) + SRCS = $(MESA_SWRAST_SRCS) + OBJS = $(MESA_SWRAST_OBJS) + + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/swrast/Imakefile.inc b/nx-X11/lib/GL/mesa/swrast/Imakefile.inc new file mode 100644 index 000000000..683b8f0a7 --- /dev/null +++ b/nx-X11/lib/GL/mesa/swrast/Imakefile.inc @@ -0,0 +1,218 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/swrast/Imakefile.inc,v 1.1tsi Exp $ + +#ifndef MesaSwrastBuildDir +#define MesaSwrastBuildDir $(GLXLIBSRC)/mesa/swrast/ +#endif + +MESASWRASTBUILDDIR = MesaSwrastBuildDir + + MESA_SWRAST_SRCS = $(MESASWRASTBUILDDIR)s_aaline.c \ + $(MESASWRASTBUILDDIR)s_aatriangle.c \ + $(MESASWRASTBUILDDIR)s_accum.c \ + $(MESASWRASTBUILDDIR)s_alpha.c \ + $(MESASWRASTBUILDDIR)s_atifragshader.c \ + $(MESASWRASTBUILDDIR)s_bitmap.c \ + $(MESASWRASTBUILDDIR)s_blend.c \ + $(MESASWRASTBUILDDIR)s_buffers.c \ + $(MESASWRASTBUILDDIR)s_context.c \ + $(MESASWRASTBUILDDIR)s_copypix.c \ + $(MESASWRASTBUILDDIR)s_depth.c \ + $(MESASWRASTBUILDDIR)s_drawpix.c \ + $(MESASWRASTBUILDDIR)s_feedback.c \ + $(MESASWRASTBUILDDIR)s_fog.c \ + $(MESASWRASTBUILDDIR)s_imaging.c \ + $(MESASWRASTBUILDDIR)s_lines.c \ + $(MESASWRASTBUILDDIR)s_logic.c \ + $(MESASWRASTBUILDDIR)s_masking.c \ + $(MESASWRASTBUILDDIR)s_nvfragprog.c \ + $(MESASWRASTBUILDDIR)s_pixeltex.c \ + $(MESASWRASTBUILDDIR)s_points.c \ + $(MESASWRASTBUILDDIR)s_readpix.c \ + $(MESASWRASTBUILDDIR)s_span.c \ + $(MESASWRASTBUILDDIR)s_stencil.c \ + $(MESASWRASTBUILDDIR)s_texstore.c \ + $(MESASWRASTBUILDDIR)s_texture.c \ + $(MESASWRASTBUILDDIR)s_triangle.c \ + $(MESASWRASTBUILDDIR)s_zoom.c + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(s_aaline.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_aaline.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_aalinetemp.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_aatriangle.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_aatriangle.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_aatritemp.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_accum.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_accum.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_alpha.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_alpha.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_atifragshader.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_atifragshader.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_bitmap.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_blend.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_blend.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_buffers.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_context.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_context.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_copypix.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_depth.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_depth.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_drawpix.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_drawpix.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_feedback.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_feedback.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_fog.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_fog.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_imaging.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_lines.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_lines.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_linetemp.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_logic.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_logic.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_masking.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_masking.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_nvfragprog.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_nvfragprog.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_pixeltex.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_pixeltex.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_points.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_points.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_pointtemp.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_readpix.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_span.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_span.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_spantemp.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_stencil.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_stencil.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_texstore.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_texture.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_texture.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_triangle.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_triangle.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_trispan.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_tritemp.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_zoom.c, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(s_zoom.h, $(MESASRCDIR)/src/mesa/swrast) +LinkSourceFile(swrast.h, $(MESASRCDIR)/src/mesa/swrast) +#endif + + MESA_SWRAST_OBJS = $(MESASWRASTBUILDDIR)s_aaline.o \ + $(MESASWRASTBUILDDIR)s_aatriangle.o \ + $(MESASWRASTBUILDDIR)s_accum.o \ + $(MESASWRASTBUILDDIR)s_alpha.o \ + $(MESASWRASTBUILDDIR)s_atifragshader.o \ + $(MESASWRASTBUILDDIR)s_bitmap.o \ + $(MESASWRASTBUILDDIR)s_blend.o \ + $(MESASWRASTBUILDDIR)s_buffers.o \ + $(MESASWRASTBUILDDIR)s_context.o \ + $(MESASWRASTBUILDDIR)s_copypix.o \ + $(MESASWRASTBUILDDIR)s_depth.o \ + $(MESASWRASTBUILDDIR)s_drawpix.o \ + $(MESASWRASTBUILDDIR)s_feedback.o \ + $(MESASWRASTBUILDDIR)s_fog.o \ + $(MESASWRASTBUILDDIR)s_imaging.o \ + $(MESASWRASTBUILDDIR)s_lines.o \ + $(MESASWRASTBUILDDIR)s_logic.o \ + $(MESASWRASTBUILDDIR)s_masking.o \ + $(MESASWRASTBUILDDIR)s_nvfragprog.o \ + $(MESASWRASTBUILDDIR)s_pixeltex.o \ + $(MESASWRASTBUILDDIR)s_points.o \ + $(MESASWRASTBUILDDIR)s_readpix.o \ + $(MESASWRASTBUILDDIR)s_span.o \ + $(MESASWRASTBUILDDIR)s_stencil.o \ + $(MESASWRASTBUILDDIR)s_texstore.o \ + $(MESASWRASTBUILDDIR)s_texture.o \ + $(MESASWRASTBUILDDIR)s_triangle.o \ + $(MESASWRASTBUILDDIR)s_zoom.o + +#if defined(DoSharedLib) && DoSharedLib + MESA_SWRAST_UOBJS = $(MESASWRASTBUILDDIR)unshared/s_aaline.o \ + $(MESASWRASTBUILDDIR)unshared/s_aatriangle.o \ + $(MESASWRASTBUILDDIR)unshared/s_accum.o \ + $(MESASWRASTBUILDDIR)unshared/s_alpha.o \ + $(MESASWRASTBUILDDIR)unshared/s_atifragshader.o \ + $(MESASWRASTBUILDDIR)unshared/s_bitmap.o \ + $(MESASWRASTBUILDDIR)unshared/s_blend.o \ + $(MESASWRASTBUILDDIR)unshared/s_buffers.o \ + $(MESASWRASTBUILDDIR)unshared/s_context.o \ + $(MESASWRASTBUILDDIR)unshared/s_copypix.o \ + $(MESASWRASTBUILDDIR)unshared/s_depth.o \ + $(MESASWRASTBUILDDIR)unshared/s_drawpix.o \ + $(MESASWRASTBUILDDIR)unshared/s_feedback.o \ + $(MESASWRASTBUILDDIR)unshared/s_fog.o \ + $(MESASWRASTBUILDDIR)unshared/s_imaging.o \ + $(MESASWRASTBUILDDIR)unshared/s_lines.o \ + $(MESASWRASTBUILDDIR)unshared/s_logic.o \ + $(MESASWRASTBUILDDIR)unshared/s_masking.o \ + $(MESASWRASTBUILDDIR)unshared/s_nvfragprog.o \ + $(MESASWRASTBUILDDIR)unshared/s_pixeltex.o \ + $(MESASWRASTBUILDDIR)unshared/s_points.o \ + $(MESASWRASTBUILDDIR)unshared/s_readpix.o \ + $(MESASWRASTBUILDDIR)unshared/s_span.o \ + $(MESASWRASTBUILDDIR)unshared/s_stencil.o \ + $(MESASWRASTBUILDDIR)unshared/s_texstore.o \ + $(MESASWRASTBUILDDIR)unshared/s_texture.o \ + $(MESASWRASTBUILDDIR)unshared/s_triangle.o \ + $(MESASWRASTBUILDDIR)unshared/s_zoom.o +#else + MESA_SWRAST_UOBJS = $(MESA_SWRAST_OBJS) +#endif + + MESA_SWRAST_DOBJS = $(MESASWRASTBUILDDIR)debugger/s_aaline.o \ + $(MESASWRASTBUILDDIR)debugger/s_aatriangle.o \ + $(MESASWRASTBUILDDIR)debugger/s_accum.o \ + $(MESASWRASTBUILDDIR)debugger/s_alpha.o \ + $(MESASWRASTBUILDDIR)debugger/s_atifragshader.o \ + $(MESASWRASTBUILDDIR)debugger/s_bitmap.o \ + $(MESASWRASTBUILDDIR)debugger/s_blend.o \ + $(MESASWRASTBUILDDIR)debugger/s_buffers.o \ + $(MESASWRASTBUILDDIR)debugger/s_context.o \ + $(MESASWRASTBUILDDIR)debugger/s_copypix.o \ + $(MESASWRASTBUILDDIR)debugger/s_depth.o \ + $(MESASWRASTBUILDDIR)debugger/s_drawpix.o \ + $(MESASWRASTBUILDDIR)debugger/s_feedback.o \ + $(MESASWRASTBUILDDIR)debugger/s_fog.o \ + $(MESASWRASTBUILDDIR)debugger/s_imaging.o \ + $(MESASWRASTBUILDDIR)debugger/s_lines.o \ + $(MESASWRASTBUILDDIR)debugger/s_logic.o \ + $(MESASWRASTBUILDDIR)debugger/s_masking.o \ + $(MESASWRASTBUILDDIR)debugger/s_nvfragprog.o \ + $(MESASWRASTBUILDDIR)debugger/s_pixeltex.o \ + $(MESASWRASTBUILDDIR)debugger/s_points.o \ + $(MESASWRASTBUILDDIR)debugger/s_readpix.o \ + $(MESASWRASTBUILDDIR)debugger/s_span.o \ + $(MESASWRASTBUILDDIR)debugger/s_stencil.o \ + $(MESASWRASTBUILDDIR)debugger/s_texstore.o \ + $(MESASWRASTBUILDDIR)debugger/s_texture.o \ + $(MESASWRASTBUILDDIR)debugger/s_triangle.o \ + $(MESASWRASTBUILDDIR)debugger/s_zoom.o + + MESA_SWRAST_POBJS = $(MESASWRASTBUILDDIR)profiled/s_aaline.o \ + $(MESASWRASTBUILDDIR)profiled/s_aatriangle.o \ + $(MESASWRASTBUILDDIR)profiled/s_accum.o \ + $(MESASWRASTBUILDDIR)profiled/s_alpha.o \ + $(MESASWRASTBUILDDIR)profiled/s_atifragshader.o \ + $(MESASWRASTBUILDDIR)profiled/s_bitmap.o \ + $(MESASWRASTBUILDDIR)profiled/s_blend.o \ + $(MESASWRASTBUILDDIR)profiled/s_buffers.o \ + $(MESASWRASTBUILDDIR)profiled/s_context.o \ + $(MESASWRASTBUILDDIR)profiled/s_copypix.o \ + $(MESASWRASTBUILDDIR)profiled/s_depth.o \ + $(MESASWRASTBUILDDIR)profiled/s_drawpix.o \ + $(MESASWRASTBUILDDIR)profiled/s_feedback.o \ + $(MESASWRASTBUILDDIR)profiled/s_fog.o \ + $(MESASWRASTBUILDDIR)profiled/s_imaging.o \ + $(MESASWRASTBUILDDIR)profiled/s_lines.o \ + $(MESASWRASTBUILDDIR)profiled/s_logic.o \ + $(MESASWRASTBUILDDIR)profiled/s_masking.o \ + $(MESASWRASTBUILDDIR)profiled/s_nvfragprog.o \ + $(MESASWRASTBUILDDIR)profiled/s_pixeltex.o \ + $(MESASWRASTBUILDDIR)profiled/s_points.o \ + $(MESASWRASTBUILDDIR)profiled/s_readpix.o \ + $(MESASWRASTBUILDDIR)profiled/s_span.o \ + $(MESASWRASTBUILDDIR)profiled/s_stencil.o \ + $(MESASWRASTBUILDDIR)profiled/s_texstore.o \ + $(MESASWRASTBUILDDIR)profiled/s_texture.o \ + $(MESASWRASTBUILDDIR)profiled/s_triangle.o \ + $(MESASWRASTBUILDDIR)profiled/s_zoom.o + diff --git a/nx-X11/lib/GL/mesa/swrast_setup/Imakefile b/nx-X11/lib/GL/mesa/swrast_setup/Imakefile new file mode 100644 index 000000000..58766149d --- /dev/null +++ b/nx-X11/lib/GL/mesa/swrast_setup/Imakefile @@ -0,0 +1,99 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/swrast_setup/Imakefile,v 1.8 2002/11/25 12:58:55 tsi Exp $ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + + +#define MesaSwrastSetupBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER + DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \ + -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri +#endif + +#if defined(i386Architecture) && MesaUseX86Asm + ASM_DIR = x86 + ASM_SRCS = + ASM_OBJS = +#if MesaUseMMX + MMX_DEFS = -DUSE_MMX_ASM +#endif +#if MesaUse3DNow + 3DNOW_DEFS = -DUSE_3DNOW_ASM +#endif +#if MesaUseSSE + SSE_DEFS = -DUSE_SSE_ASM +#endif + ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS) +#endif + +#ifdef SparcArchitecture + ASM_DIR = sparc + ASM_SRCS = + ASM_OBJS = + ASM_DEFS = -DUSE_SPARC_ASM +#endif + +#ifdef UseCompaqMathLibrary + MATHDEF = -DCCPML +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \ + -I$(MESASRCDIR)/src/mesa/math \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/swrast_setup \ + -I$(MESASRCDIR)/src/mesa/tnl \ + -I$(MESASRCDIR)/include \ + -I../../../include -I$(XINCLUDESRC) + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF) + INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES) + SRCS = $(MESA_SWR_SETUP_SRCS) + OBJS = $(MESA_SWR_SETUP_OBJS) + + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/swrast_setup/Imakefile.inc b/nx-X11/lib/GL/mesa/swrast_setup/Imakefile.inc new file mode 100644 index 000000000..8d32aedb3 --- /dev/null +++ b/nx-X11/lib/GL/mesa/swrast_setup/Imakefile.inc @@ -0,0 +1,36 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/swrast_setup/Imakefile.inc,v 1.1tsi Exp $ + +#ifndef MesaSwrastSetupBuildDir +#define MesaSwrastSetupBuildDir $(GLXLIBSRC)/mesa/swrast_setup/ +#endif + +MESASWRSETUPDIR = MesaSwrastSetupBuildDir + + MESA_SWR_SETUP_SRCS = $(MESASWRSETUPDIR)ss_context.c \ + $(MESASWRSETUPDIR)ss_triangle.c + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(ss_context.c, $(MESASRCDIR)/src/mesa/swrast_setup) +LinkSourceFile(ss_context.h, $(MESASRCDIR)/src/mesa/swrast_setup) +LinkSourceFile(ss_triangle.c, $(MESASRCDIR)/src/mesa/swrast_setup) +LinkSourceFile(ss_triangle.h, $(MESASRCDIR)/src/mesa/swrast_setup) +LinkSourceFile(ss_tritmp.h, $(MESASRCDIR)/src/mesa/swrast_setup) +LinkSourceFile(swrast_setup.h, $(MESASRCDIR)/src/mesa/swrast_setup) +#endif + + MESA_SWR_SETUP_OBJS = $(MESASWRSETUPDIR)ss_context.o \ + $(MESASWRSETUPDIR)ss_triangle.o + +#if defined(DoSharedLib) && DoSharedLib +MESA_SWR_SETUP_UOBJS = $(MESASWRSETUPDIR)unshared/ss_context.o \ + $(MESASWRSETUPDIR)unshared/ss_triangle.o +#else +MESA_SWR_SETUP_UOBJS = $(MESA_SWR_SETUP_OBJS) +#endif + +MESA_SWR_SETUP_DOBJS = $(MESASWRSETUPDIR)debugger/ss_context.o \ + $(MESASWRSETUPDIR)debugger/ss_triangle.o + +MESA_SWR_SETUP_POBJS = $(MESASWRSETUPDIR)profiled/ss_context.o \ + $(MESASWRSETUPDIR)profiled/ss_triangle.o + diff --git a/nx-X11/lib/GL/mesa/tnl/Imakefile b/nx-X11/lib/GL/mesa/tnl/Imakefile new file mode 100644 index 000000000..99ec7525c --- /dev/null +++ b/nx-X11/lib/GL/mesa/tnl/Imakefile @@ -0,0 +1,101 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/tnl/Imakefile,v 1.8 2002/11/25 12:58:55 tsi Exp $ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if BuildOSMesaLib || (BuildXF86DRI && (GlxDriverUsesMesa || GlxBuiltInXMesa)) +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + +#define MesaTnlBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER + DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \ + -I$(INCLUDESRC)/GL -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri +#endif + +#if defined(i386Architecture) && MesaUseX86Asm + ASM_DIR = x86 + ASM_SRCS = + ASM_OBJS = +#if MesaUseMMX + MMX_DEFS = -DUSE_MMX_ASM +#endif +#if MesaUse3DNow + 3DNOW_DEFS = -DUSE_3DNOW_ASM +#endif +#if MesaUseSSE + SSE_DEFS = -DUSE_SSE_ASM +#endif + ASM_DEFS = -DUSE_X86_ASM $(MMX_DEFS) $(3DNOW_DEFS) $(SSE_DEFS) +#endif + +#ifdef SparcArchitecture + ASM_DIR = sparc + ASM_SRCS = + ASM_OBJS = + ASM_DEFS = -DUSE_SPARC_ASM +#endif + +#ifdef UseCompaqMathLibrary + MATHDEF = -DCCPML +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/src/mesa/$(ASM_DIR) \ + -I$(MESASRCDIR)/src/mesa/array_cache \ + -I$(MESASRCDIR)/src/mesa/math \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/glapi \ + -I$(MESASRCDIR)/src/mesa/swrast_setup \ + -I$(MESASRCDIR)/src/mesa/shader \ + -I$(MESASRCDIR)/src/mesa/tnl \ + -I$(MESASRCDIR)/include \ + -I../../../include -I$(XINCLUDESRC) + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF) + INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES) + SRCS = $(MESA_TNL_SRCS) + OBJS = $(MESA_TNL_OBJS) + + +#include <Library.tmpl> + +LibraryObjectRule() + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/tnl/Imakefile.inc b/nx-X11/lib/GL/mesa/tnl/Imakefile.inc new file mode 100644 index 000000000..a294a6fbf --- /dev/null +++ b/nx-X11/lib/GL/mesa/tnl/Imakefile.inc @@ -0,0 +1,225 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/tnl/Imakefile.inc,v 1.1tsi Exp $ + +#ifndef MesaTnlBuildDir +#define MesaTnlBuildDir $(GLXLIBSRC)/mesa/tnl/ +#endif + +MESATNLBUILDDIR = MesaTnlBuildDir + + MESA_TNL_SRCS = $(MESATNLBUILDDIR)t_array_api.c \ + $(MESATNLBUILDDIR)t_array_import.c \ + $(MESATNLBUILDDIR)t_context.c \ + $(MESATNLBUILDDIR)t_pipeline.c \ + $(MESATNLBUILDDIR)t_save_api.c \ + $(MESATNLBUILDDIR)t_save_loopback.c \ + $(MESATNLBUILDDIR)t_save_playback.c \ + $(MESATNLBUILDDIR)t_vb_arbprogram.c \ + $(MESATNLBUILDDIR)t_vb_arbprogram_sse.c \ + $(MESATNLBUILDDIR)t_vb_fog.c \ + $(MESATNLBUILDDIR)t_vb_cull.c \ + $(MESATNLBUILDDIR)t_vb_light.c \ + $(MESATNLBUILDDIR)t_vb_normals.c \ + $(MESATNLBUILDDIR)t_vb_points.c \ + $(MESATNLBUILDDIR)t_vb_program.c \ + $(MESATNLBUILDDIR)t_vb_render.c \ + $(MESATNLBUILDDIR)t_vb_texgen.c \ + $(MESATNLBUILDDIR)t_vb_texmat.c \ + $(MESATNLBUILDDIR)t_vb_vertex.c \ + $(MESATNLBUILDDIR)t_vertex.c \ + $(MESATNLBUILDDIR)t_vertex_generic.c \ + $(MESATNLBUILDDIR)t_vertex_sse.c \ + $(MESATNLBUILDDIR)t_vp_build.c \ + $(MESATNLBUILDDIR)t_vtx_api.c \ + $(MESATNLBUILDDIR)t_vtx_eval.c \ + $(MESATNLBUILDDIR)t_vtx_exec.c \ + $(MESATNLBUILDDIR)t_vtx_generic.c + +#if defined(i386Architecture) && MesaUseX86Asm + MESA_TNL_SRCS += MesaTnlAsmSrcs $(MESATNLBUILDDIR)t_vtx_x86.c \ + $(MESATNLBUILDDIR)t_vtx_x86_gcc.S +#endif + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(t_array_api.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_array_api.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_array_import.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_array_import.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_context.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_context.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(tnl.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_pipeline.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_pipeline.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_save_api.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_save_api.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_save_loopback.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_save_playback.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_arbprogram.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_arbprogram.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_arbprogram_sse.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_cliptmp.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_fog.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_cull.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_light.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_lighttmp.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_normals.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_points.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_program.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_render.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_rendertmp.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_texgen.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_texmat.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vb_vertex.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vertex.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vertex.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vertex_generic.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vertex_sse.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vp_build.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vp_build.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vtx_api.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vtx_api.h, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vtx_eval.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vtx_exec.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vtx_generic.c, $(MESASRCDIR)/src/mesa/tnl) +#if defined(i386Architecture) && MesaUseX86Asm +LinkSourceFile(t_vtx_x86.c, $(MESASRCDIR)/src/mesa/tnl) +LinkSourceFile(t_vtx_x86_gcc.S, $(MESASRCDIR)/src/mesa/tnl) +#endif +#endif + + MESA_TNL_OBJS = $(MESATNLBUILDDIR)t_array_api.o \ + $(MESATNLBUILDDIR)t_array_import.o \ + $(MESATNLBUILDDIR)t_context.o \ + $(MESATNLBUILDDIR)t_pipeline.o \ + $(MESATNLBUILDDIR)t_save_api.o \ + $(MESATNLBUILDDIR)t_save_loopback.o \ + $(MESATNLBUILDDIR)t_save_playback.o \ + $(MESATNLBUILDDIR)t_vb_arbprogram.o \ + $(MESATNLBUILDDIR)t_vb_arbprogram_sse.o \ + $(MESATNLBUILDDIR)t_vb_fog.o \ + $(MESATNLBUILDDIR)t_vb_cull.o \ + $(MESATNLBUILDDIR)t_vb_light.o \ + $(MESATNLBUILDDIR)t_vb_normals.o \ + $(MESATNLBUILDDIR)t_vb_points.o \ + $(MESATNLBUILDDIR)t_vb_program.o \ + $(MESATNLBUILDDIR)t_vb_render.o \ + $(MESATNLBUILDDIR)t_vb_texgen.o \ + $(MESATNLBUILDDIR)t_vb_texmat.o \ + $(MESATNLBUILDDIR)t_vb_vertex.o \ + $(MESATNLBUILDDIR)t_vertex.o \ + $(MESATNLBUILDDIR)t_vertex_generic.o \ + $(MESATNLBUILDDIR)t_vertex_sse.o \ + $(MESATNLBUILDDIR)t_vp_build.o \ + $(MESATNLBUILDDIR)t_vtx_api.o \ + $(MESATNLBUILDDIR)t_vtx_eval.o \ + $(MESATNLBUILDDIR)t_vtx_exec.o \ + $(MESATNLBUILDDIR)t_vtx_generic.o + +#if defined(i386Architecture) && MesaUseX86Asm + MESA_TNL_OBJS += $(MESATNLBUILDDIR)t_vtx_x86.o \ + $(MESATNLBUILDDIR)t_vtx_x86_gcc.o +#endif + +#if defined(DoSharedLib) && DoSharedLib + MESA_TNL_UOBJS = $(MESATNLBUILDDIR)unshared/t_array_api.o \ + $(MESATNLBUILDDIR)unshared/t_array_import.o \ + $(MESATNLBUILDDIR)unshared/t_context.o \ + $(MESATNLBUILDDIR)unshared/t_pipeline.o \ + $(MESATNLBUILDDIR)unshared/t_save_api.o \ + $(MESATNLBUILDDIR)unshared/t_save_loopback.o \ + $(MESATNLBUILDDIR)unshared/t_save_playback.o \ + $(MESATNLBUILDDIR)unshared/t_vb_arbprogram.o \ + $(MESATNLBUILDDIR)unshared/t_vb_arbprogram_sse.o \ + $(MESATNLBUILDDIR)unshared/t_vb_fog.o \ + $(MESATNLBUILDDIR)unshared/t_vb_cull.o \ + $(MESATNLBUILDDIR)unshared/t_vb_light.o \ + $(MESATNLBUILDDIR)unshared/t_vb_normals.o \ + $(MESATNLBUILDDIR)unshared/t_vb_points.o \ + $(MESATNLBUILDDIR)unshared/t_vb_program.o \ + $(MESATNLBUILDDIR)unshared/t_vb_render.o \ + $(MESATNLBUILDDIR)unshared/t_vb_texgen.o \ + $(MESATNLBUILDDIR)unshared/t_vb_texmat.o \ + $(MESATNLBUILDDIR)unshared/t_vb_vertex.o \ + $(MESATNLBUILDDIR)unshared/t_vertex.o \ + $(MESATNLBUILDDIR)unshared/t_vertex_generic.o \ + $(MESATNLBUILDDIR)unshared/t_vertex_sse.o \ + $(MESATNLBUILDDIR)unshared/t_vp_build.o \ + $(MESATNLBUILDDIR)unshared/t_vtx_api.o \ + $(MESATNLBUILDDIR)unshared/t_vtx_eval.o \ + $(MESATNLBUILDDIR)unshared/t_vtx_exec.o \ + $(MESATNLBUILDDIR)unshared/t_vtx_generic.o + +#if defined(i386Architecture) && MesaUseX86Asm + MESA_TNL_UOBJS += $(MESATNLBUILDDIR)unshared/t_vtx_x86.o \ + $(MESATNLBUILDDIR)t_vtx_x86_gcc.o +#endif + +#else + MESA_TNL_UOBJS = $(MESA_TNL_OBJS) +#endif + + MESA_TNL_DOBJS = $(MESATNLBUILDDIR)debugger/t_array_api.o \ + $(MESATNLBUILDDIR)debugger/t_array_import.o \ + $(MESATNLBUILDDIR)debugger/t_context.o \ + $(MESATNLBUILDDIR)debugger/t_pipeline.o \ + $(MESATNLBUILDDIR)debugger/t_save_api.o \ + $(MESATNLBUILDDIR)debugger/t_save_loopback.o \ + $(MESATNLBUILDDIR)debugger/t_save_playback.o \ + $(MESATNLBUILDDIR)debugger/t_vb_arbprogram.o \ + $(MESATNLBUILDDIR)debugger/t_vb_arbprogram_sse.o \ + $(MESATNLBUILDDIR)debugger/t_vb_fog.o \ + $(MESATNLBUILDDIR)debugger/t_vb_cull.o \ + $(MESATNLBUILDDIR)debugger/t_vb_light.o \ + $(MESATNLBUILDDIR)debugger/t_vb_normals.o \ + $(MESATNLBUILDDIR)debugger/t_vb_points.o \ + $(MESATNLBUILDDIR)debugger/t_vb_program.o \ + $(MESATNLBUILDDIR)debugger/t_vb_render.o \ + $(MESATNLBUILDDIR)debugger/t_vb_texgen.o \ + $(MESATNLBUILDDIR)debugger/t_vb_texmat.o \ + $(MESATNLBUILDDIR)debugger/t_vb_vertex.o \ + $(MESATNLBUILDDIR)debugger/t_vertex.o \ + $(MESATNLBUILDDIR)debugger/t_vertex_generic.o \ + $(MESATNLBUILDDIR)debugger/t_vertex_sse.o \ + $(MESATNLBUILDDIR)debugger/t_vp_build.o \ + $(MESATNLBUILDDIR)debugger/t_vtx_api.o \ + $(MESATNLBUILDDIR)debugger/t_vtx_eval.o \ + $(MESATNLBUILDDIR)debugger/t_vtx_exec.o \ + $(MESATNLBUILDDIR)debugger/t_vtx_generic.o + +#if defined(i386Architecture) && MesaUseX86Asm + MESA_TNL_DOBJS += $(MESATNLBUILDDIR)debugger/t_vtx_x86.o \ + $(MESATNLBUILDDIR)debugger/t_vtx_x86_gcc.o +#endif + + MESA_TNL_POBJS = $(MESATNLBUILDDIR)profiled/t_array_api.o \ + $(MESATNLBUILDDIR)profiled/t_array_import.o \ + $(MESATNLBUILDDIR)profiled/t_context.o \ + $(MESATNLBUILDDIR)profiled/t_pipeline.o \ + $(MESATNLBUILDDIR)profiled/t_save_api.o \ + $(MESATNLBUILDDIR)profiled/t_save_loopback.o \ + $(MESATNLBUILDDIR)profiled/t_save_playback.o \ + $(MESATNLBUILDDIR)profiled/t_vb_arbprogram.o \ + $(MESATNLBUILDDIR)profiled/t_vb_arbprogram_sse.o \ + $(MESATNLBUILDDIR)profiled/t_vb_fog.o \ + $(MESATNLBUILDDIR)profiled/t_vb_cull.o \ + $(MESATNLBUILDDIR)profiled/t_vb_light.o \ + $(MESATNLBUILDDIR)profiled/t_vb_normals.o \ + $(MESATNLBUILDDIR)profiled/t_vb_points.o \ + $(MESATNLBUILDDIR)profiled/t_vb_program.o \ + $(MESATNLBUILDDIR)profiled/t_vb_render.o \ + $(MESATNLBUILDDIR)profiled/t_vb_texgen.o \ + $(MESATNLBUILDDIR)profiled/t_vb_texmat.o \ + $(MESATNLBUILDDIR)profiled/t_vb_vertex.o \ + $(MESATNLBUILDDIR)profiled/t_vertex.o \ + $(MESATNLBUILDDIR)profiled/t_vertex_generic.o \ + $(MESATNLBUILDDIR)profiled/t_vertex_sse.o \ + $(MESATNLBUILDDIR)profiled/t_vp_build.o \ + $(MESATNLBUILDDIR)profiled/t_vtx_api.o \ + $(MESATNLBUILDDIR)profiled/t_vtx_eval.o \ + $(MESATNLBUILDDIR)profiled/t_vtx_exec.o \ + $(MESATNLBUILDDIR)profiled/t_vtx_generic.o + +#if defined(i386Architecture) && MesaUseX86Asm + MESA_TNL_POBJS += $(MESATNLBUILDDIR)profiled/t_vtx_x86.o \ + $(MESATNLBUILDDIR)profiled/t_vtx_x86_gcc.o +#endif + diff --git a/nx-X11/lib/GL/mesa/tnl_dd/Imakefile b/nx-X11/lib/GL/mesa/tnl_dd/Imakefile new file mode 100644 index 000000000..93b8c8877 --- /dev/null +++ b/nx-X11/lib/GL/mesa/tnl_dd/Imakefile @@ -0,0 +1,63 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/tnl_dd/Imakefile,v 1.6 2002/11/25 12:58:55 tsi Exp $ + +#include <Threads.tmpl> + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + +/* Large PIC tables needed for Solaris SPARC builds */ +#if (defined(SunArchitecture) && defined(SparcArchitecture)) +# define LargePICTable YES +#endif + +#define MesaTnlDdBuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#if BuildXF86DRI + DRI_DEFINES = GlxDefines -DIN_DRI_DRIVER + DRI_INCLUDES = -I../../../dri -I../../../glx -I../../dri -I../../../include \ + -I$(XINCLUDESRC) -I$(INCLUDESRC)/GL \ + -I$(XF86OSSRC) -I$(SERVERSRC)/GL/dri +#endif + +MESA_INCLUDES = -I$(MESASRCDIR)/src \ + -I$(MESASRCDIR)/src/math \ + -I$(MESASRCDIR)/src/tnl_dd \ + -I$(MESASRCDIR)/include \ + -I../../../include + + INCLUDES = $(MESA_INCLUDES) $(DRI_INCLUDES) + + DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES) $(ASM_DEFS) $(MATHDEF) + +#include <Library.tmpl> + +LibraryObjectRule() + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/tnl_dd/Imakefile.inc b/nx-X11/lib/GL/mesa/tnl_dd/Imakefile.inc new file mode 100644 index 000000000..8d5d3da2d --- /dev/null +++ b/nx-X11/lib/GL/mesa/tnl_dd/Imakefile.inc @@ -0,0 +1,40 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/tnl_dd/Imakefile.inc,v 1.1tsi Exp $ + +#ifndef MesaTnlDdBuildDir +#define MesaTnlDdBuildDir $(GLXLIBSRC)/mesa/tnl_dd/ +#endif + +MESATNLDDBUILDDIR = MesaTnlDdBuildDir + + MESA_TNL_DD_SRCS = $(MESATNLDDBUILDDIR)t_dd.c \ + $(MESATNLDDBUILDDIR)t_dd_vb.c + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(t_dd.c, $(MESASRCDIR)/src/mesa/tnl_dd) +LinkSourceFile(t_dd_vb.c, $(MESASRCDIR)/src/mesa/tnl_dd) +LinkSourceFile(t_dd_dmatmp2.h, $(MESASRCDIR)/src/mesa/tnl_dd) +LinkSourceFile(t_dd_dmatmp.h, $(MESASRCDIR)/src/mesa/tnl_dd) +LinkSourceFile(t_dd_rendertmp.h, $(MESASRCDIR)/src/mesa/tnl_dd) +LinkSourceFile(t_dd_triemit.h, $(MESASRCDIR)/src/mesa/tnl_dd) +LinkSourceFile(t_dd_tritmp.h, $(MESASRCDIR)/src/mesa/tnl_dd) +LinkSourceFile(t_dd_unfilled.h, $(MESASRCDIR)/src/mesa/tnl_dd) +LinkSourceFile(t_dd_vbtmp.h, $(MESASRCDIR)/src/mesa/tnl_dd) +LinkSourceFile(t_dd_vertex.h, $(MESASRCDIR)/src/mesa/tnl_dd) +#endif + + MESA_TNL_DD_OBJS = $(MESATNLDDBUILDDIR)t_dd.o \ + $(MESATNLDDBUILDDIR)t_dd_vb.o + +#if defined(DoSharedLib) && DoSharedLib +MESA_TNL_DD_UOBJS = $(MESATNLDDBUILDDIR)unshared/t_dd.o \ + $(MESATNLDDBUILDDIR)unshared/t_dd_vb.o +#else +MESA_TNL_DD_UOBJS = $(MESA_TNL_DD_OBJS) +#endif + +MESA_TNL_DD_DOBJS = $(MESATNLDDBUILDDIR)debugger/t_dd.o \ + $(MESATNLDDBUILDDIR)debugger/t_dd_vb.o + +MESA_TNL_DD_POBJS = $(MESATNLDDBUILDDIR)profiled/t_dd.o \ + $(MESATNLDDBUILDDIR)profiled/t_dd_vb.o + diff --git a/nx-X11/lib/GL/mesa/x86/Imakefile b/nx-X11/lib/GL/mesa/x86/Imakefile new file mode 100644 index 000000000..543c05143 --- /dev/null +++ b/nx-X11/lib/GL/mesa/x86/Imakefile @@ -0,0 +1,108 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/X86/Imakefile,v 1.23 2002/07/14 17:08:16 alanh Exp $ + +/* + * Need both shared and unshared Mesa objects in the following cases: + * GlxDriverUsesMesa + * GlxBuiltInXMesa + * BuildOSMesaLib + * + * In other cases, only the shared version is needed to link in to loadable + * driver modules. + */ + +#if GlxDriverUsesMesa || GlxBuiltInXMesa || BuildOSMesaLib +#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC) +#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC) +#define DoExtraLib SharedLibGlx +#define DoDebugLib DebugLibGlx +#define DoProfileLib ProfileLibGlx +#else +#define DoNormalLib SharedLibGlxWithoutPIC +#define DoSharedLib !SharedLibGlxWithoutPIC +#define DoExtraLib NO +#define DoDebugLib NO +#define DoProfileLib NO +#endif + + +#if Malloc0ReturnsNull +ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL +#endif + +#define MesaX86BuildDir /**/ +#define NeedToLinkMesaSrc +#include "Imakefile.inc" + + DEFINES = $(ALLOC_DEFINES) GlxDefines -DIN_DRI_DRIVER $(MESA_ASM_DEFINES) + INCLUDES = /*-I$(INCLUDESRC) -I$(EXTINCSRC)*/ -I$(MESASRCDIR)/src/mesa \ + -I$(MESASRCDIR)/include \ + -I$(GLXLIBSRC)/include \ + -I$(MESASRCDIR)/src/mesa/main \ + -I$(MESASRCDIR)/src/mesa/x86 \ + -I$(MESASRCDIR)/src/mesa/glapi + + SRCS = $(MESA_ASM_SRCS) gen_matypes.c + OBJS = $(MESA_ASM_OBJS) + +#include <Library.tmpl> + +LibraryObjectRule() + +STD_CPP_DEFINES = StandardDefines $(PROJECT_DEFINES) + +SubdirLibraryRule($(OBJS)) +NormalLintTarget($(SRCS)) + +ObjectFromAsmSource(common_x86_asm, NullParameter) +ObjectFromAsmSource(read_rgba_span_x86, NullParameter) +ObjectFromAsmSource(x86_cliptest, NullParameter) +ObjectFromAsmSource(x86_xform2, NullParameter) +ObjectFromAsmSource(x86_xform3, NullParameter) +ObjectFromAsmSource(x86_xform4, NullParameter) + +#if MesaUseMMX +ObjectFromAsmSource(mmx_blend, NullParameter) +#endif + +#if MesaUse3DNow +ObjectFromAsmSource(3dnow_normal, NullParameter) +ObjectFromAsmSource(3dnow_xform1, NullParameter) +ObjectFromAsmSource(3dnow_xform2, NullParameter) +ObjectFromAsmSource(3dnow_xform3, NullParameter) +ObjectFromAsmSource(3dnow_xform4, NullParameter) +#endif + +#if MesaUseSSE +ObjectFromAsmSource(sse_normal, NullParameter) +ObjectFromAsmSource(sse_xform1, NullParameter) +ObjectFromAsmSource(sse_xform2, NullParameter) +ObjectFromAsmSource(sse_xform3, NullParameter) +ObjectFromAsmSource(sse_xform4, NullParameter) +#endif + +LinkSourceFile(gen_matypes.c, $(MESASRCDIR)/src/mesa/x86) + +#if CrossCompiling +HOST_CFLAGS=$(TOP_INCLUDES) $(INCLUDES) $(BOOTSTRAPCFLAGS) \ + $(CROSSCOMPILEDEFINES) $(CROSSCOMPILEBOOTSTRAPDEFINES) +#else +HOST_CFLAGS=$(CFLAGS) +#endif + +MATYPES = ./gen_matypes + +matypes.h: gen_matypes.c + RemoveFiles($@ HostProgramTargetName(gen_matypes)) + -HostLinkRule(HostProgramTargetName(gen_matypes),$(HOST_CFLAGS) $(LOCAL_LDFLAGS),gen_matypes.c,$(LDLIBS)) + RunProgram(MATYPES,> matypes_h) + $(MV) matypes_h $@ + RemoveFiles(HostProgramTargetName(gen_matypes)) + +includes:: matypes.h + +depend:: matypes.h + +clean:: + RemoveFiles(matypes.h HostProgramTargetName(gen_matypes)) + +DependTarget() diff --git a/nx-X11/lib/GL/mesa/x86/Imakefile.inc b/nx-X11/lib/GL/mesa/x86/Imakefile.inc new file mode 100644 index 000000000..b21c6f659 --- /dev/null +++ b/nx-X11/lib/GL/mesa/x86/Imakefile.inc @@ -0,0 +1,217 @@ +XCOMM $XFree86: xc/lib/GL/mesa/src/X86/Imakefile.inc,v 1.5 2002/11/14 21:01:16 tsi Exp $ + +#ifndef MesaX86BuildDir +#define MesaX86BuildDir $(GLXLIBSRC)/mesa/x86/ +#endif + +MESAX86BUILDDIR = MesaX86BuildDir + +MESA_X86_SRCS = $(MESAX86BUILDDIR)common_x86.c \ + $(MESAX86BUILDDIR)common_x86_asm.S \ + $(MESAX86BUILDDIR)glapi_x86.S \ + $(MESAX86BUILDDIR)read_rgba_span_x86.S \ + $(MESAX86BUILDDIR)x86.c \ + $(MESAX86BUILDDIR)x86_cliptest.S \ + $(MESAX86BUILDDIR)x86_xform2.S \ + $(MESAX86BUILDDIR)x86_xform3.S \ + $(MESAX86BUILDDIR)x86_xform4.S \ + $(MESAX86BUILDDIR)x86sse.c + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(common_x86.c, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(common_x86_asm.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(glapi_x86.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(read_rgba_span_x86.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(read_rgba_span_x86.h, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(x86.c, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(x86_cliptest.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(x86_xform2.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(x86_xform3.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(x86_xform4.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(x86sse.c, $(MESASRCDIR)/src/mesa/x86/rtasm) +LinkSourceFile(x86sse.h, $(MESASRCDIR)/src/mesa/x86/rtasm) +#endif + +MESA_X86_OBJS = $(MESAX86BUILDDIR)common_x86.o \ + $(MESAX86BUILDDIR)common_x86_asm.o \ + $(MESAX86BUILDDIR)read_rgba_span_x86.o \ + $(MESAX86BUILDDIR)x86.o \ + $(MESAX86BUILDDIR)x86_cliptest.o \ + $(MESAX86BUILDDIR)x86_xform2.o \ + $(MESAX86BUILDDIR)x86_xform3.o \ + $(MESAX86BUILDDIR)x86_xform4.o \ + $(MESAX86BUILDDIR)x86sse.o + +#if defined(DoSharedLib) && DoSharedLib +MESA_X86_UOBJS = $(MESAX86BUILDDIR)unshared/common_x86.o \ + $(MESAX86BUILDDIR)common_x86_asm.o \ + $(MESAX86BUILDDIR)read_rgba_span_x86.o \ + $(MESAX86BUILDDIR)unshared/x86.o \ + $(MESAX86BUILDDIR)x86_cliptest.o \ + $(MESAX86BUILDDIR)x86_xform2.o \ + $(MESAX86BUILDDIR)x86_xform3.o \ + $(MESAX86BUILDDIR)x86_xform4.o \ + $(MESAX86BUILDDIR)x86sse.o +#else +MESA_X86_UOBJS = $(MESA_X86_OBJS) +#endif + +MESA_X86_DOBJS = $(MESAX86BUILDDIR)debugger/common_x86.o \ + $(MESAX86BUILDDIR)common_x86_asm.o \ + $(MESAX86BUILDDIR)read_rgba_span_x86.o \ + $(MESAX86BUILDDIR)debugger/x86.o \ + $(MESAX86BUILDDIR)x86_cliptest.o \ + $(MESAX86BUILDDIR)x86_xform2.o \ + $(MESAX86BUILDDIR)x86_xform3.o \ + $(MESAX86BUILDDIR)x86_xform4.o \ + $(MESAX86BUILDDIR)x86sse.o + +MESA_X86_POBJS = $(MESAX86BUILDDIR)profiled/common_x86.o \ + $(MESAX86BUILDDIR)common_x86_asm.o \ + $(MESAX86BUILDDIR)read_rgba_span_x86.o \ + $(MESAX86BUILDDIR)profiled/x86.o \ + $(MESAX86BUILDDIR)x86_cliptest.o \ + $(MESAX86BUILDDIR)x86_xform2.o \ + $(MESAX86BUILDDIR)x86_xform3.o \ + $(MESAX86BUILDDIR)x86_xform4.o \ + $(MESAX86BUILDDIR)x86sse.o + +MESA_X86_DEFS = -DUSE_X86_ASM + + +#if MesaUseMMX +MESA_MMX_SRCS = $(MESAX86BUILDDIR)mmx_blend.S + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(mmx_blend.S, $(MESASRCDIR)/src/mesa/x86) +#endif + +MESA_MMX_OBJS = $(MESAX86BUILDDIR)mmx_blend.o + +MESA_MMX_UOBJS = $(MESA_MMX_OBJS) +MESA_MMX_DOBJS = $(MESA_MMX_OBJS) +MESA_MMX_POBJS = $(MESA_MMX_OBJS) + +MESA_MMX_DEFS = -DUSE_MMX_ASM +#endif + +#if MesaUse3DNow +MESA_3DNOW_SRCS = $(MESAX86BUILDDIR)3dnow.c \ + $(MESAX86BUILDDIR)3dnow_normal.S \ + $(MESAX86BUILDDIR)3dnow_xform1.S \ + $(MESAX86BUILDDIR)3dnow_xform2.S \ + $(MESAX86BUILDDIR)3dnow_xform3.S \ + $(MESAX86BUILDDIR)3dnow_xform4.S + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(3dnow.c, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(3dnow_normal.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(3dnow_xform1.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(3dnow_xform2.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(3dnow_xform3.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(3dnow_xform4.S, $(MESASRCDIR)/src/mesa/x86) +#endif +MESA_3DNOW_OBJS = $(MESAX86BUILDDIR)3dnow.o \ + $(MESAX86BUILDDIR)3dnow_normal.o \ + $(MESAX86BUILDDIR)3dnow_xform1.o \ + $(MESAX86BUILDDIR)3dnow_xform2.o \ + $(MESAX86BUILDDIR)3dnow_xform3.o \ + $(MESAX86BUILDDIR)3dnow_xform4.o + +#if defined(DoSharedLib) && DoSharedLib +MESA_3DNOW_UOBJS = $(MESAX86BUILDDIR)unshared/3dnow.o \ + $(MESAX86BUILDDIR)3dnow_normal.o \ + $(MESAX86BUILDDIR)3dnow_xform1.o \ + $(MESAX86BUILDDIR)3dnow_xform2.o \ + $(MESAX86BUILDDIR)3dnow_xform3.o \ + $(MESAX86BUILDDIR)3dnow_xform4.o +#else +MESA_3DNOW_UOBJS = $(MESA_3DNOW_OBJS) +#endif + +MESA_3DNOW_DOBJS = $(MESAX86BUILDDIR)debugger/3dnow.o \ + $(MESAX86BUILDDIR)3dnow_normal.o \ + $(MESAX86BUILDDIR)3dnow_xform1.o \ + $(MESAX86BUILDDIR)3dnow_xform2.o \ + $(MESAX86BUILDDIR)3dnow_xform3.o \ + $(MESAX86BUILDDIR)3dnow_xform4.o + +MESA_3DNOW_POBJS = $(MESAX86BUILDDIR)profiled/3dnow.o \ + $(MESAX86BUILDDIR)3dnow_normal.o \ + $(MESAX86BUILDDIR)3dnow_xform1.o \ + $(MESAX86BUILDDIR)3dnow_xform2.o \ + $(MESAX86BUILDDIR)3dnow_xform3.o \ + $(MESAX86BUILDDIR)3dnow_xform4.o + +MESA_3DNOW_DEFS = -DUSE_3DNOW_ASM +#endif + +#if MesaUseSSE +MESA_SSE_SRCS = $(MESAX86BUILDDIR)sse.c \ + $(MESAX86BUILDDIR)sse_normal.S \ + $(MESAX86BUILDDIR)sse_xform1.S \ + $(MESAX86BUILDDIR)sse_xform2.S \ + $(MESAX86BUILDDIR)sse_xform3.S \ + $(MESAX86BUILDDIR)sse_xform4.S + +#ifdef NeedToLinkMesaSrc +LinkSourceFile(sse.c, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(sse_normal.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(sse_xform1.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(sse_xform2.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(sse_xform3.S, $(MESASRCDIR)/src/mesa/x86) +LinkSourceFile(sse_xform4.S, $(MESASRCDIR)/src/mesa/x86) +#endif + +MESA_SSE_OBJS = $(MESAX86BUILDDIR)sse.o \ + $(MESAX86BUILDDIR)sse_normal.o \ + $(MESAX86BUILDDIR)sse_xform1.o \ + $(MESAX86BUILDDIR)sse_xform2.o \ + $(MESAX86BUILDDIR)sse_xform3.o \ + $(MESAX86BUILDDIR)sse_xform4.o + +#if defined(DoSharedLib) && DoSharedLib +MESA_SSE_UOBJS = $(MESAX86BUILDDIR)unshared/sse.o \ + $(MESAX86BUILDDIR)sse_normal.o \ + $(MESAX86BUILDDIR)sse_xform1.o \ + $(MESAX86BUILDDIR)sse_xform2.o \ + $(MESAX86BUILDDIR)sse_xform3.o \ + $(MESAX86BUILDDIR)sse_xform4.o +#else +MESA_SSE_UOBJS = $(MESA_SSE_OBJS) +#endif + +MESA_SSE_DOBJS = $(MESAX86BUILDDIR)debugger/sse.o \ + $(MESAX86BUILDDIR)sse_normal.o \ + $(MESAX86BUILDDIR)sse_xform1.o \ + $(MESAX86BUILDDIR)sse_xform2.o \ + $(MESAX86BUILDDIR)sse_xform3.o \ + $(MESAX86BUILDDIR)sse_xform4.o + +MESA_SSE_POBJS = $(MESAX86BUILDDIR)profiled/sse.o \ + $(MESAX86BUILDDIR)sse_normal.o \ + $(MESAX86BUILDDIR)sse_xform1.o \ + $(MESAX86BUILDDIR)sse_xform2.o \ + $(MESAX86BUILDDIR)sse_xform3.o \ + $(MESAX86BUILDDIR)sse_xform4.o + +MESA_SSE_DEFS = -DUSE_SSE_ASM +#endif + +MESA_ASM_SRCS = $(MESA_X86_SRCS) $(MESA_MMX_SRCS) $(MESA_3DNOW_SRCS) \ + $(MESA_SSE_SRCS) + +MESA_ASM_OBJS = $(MESA_X86_OBJS) $(MESA_MMX_OBJS) $(MESA_3DNOW_OBJS) \ + $(MESA_SSE_OBJS) + +MESA_ASM_UOBJS = $(MESA_X86_UOBJS) $(MESA_MMX_UOBJS) $(MESA_3DNOW_UOBJS) \ + $(MESA_SSE_UOBJS) + +MESA_ASM_DOBJS = $(MESA_X86_DOBJS) $(MESA_MMX_DOBJS) $(MESA_3DNOW_DOBJS) \ + $(MESA_SSE_DOBJS) + +MESA_ASM_POBJS = $(MESA_X86_POBJS) $(MESA_MMX_POBJS) $(MESA_3DNOW_POBJS) \ + $(MESA_SSE_POBJS) + +MESA_ASM_DEFINES = $(MESA_X86_DEFS) $(MESA_MMX_DEFS) $(MESA_3DNOW_DEFS) $(MESA_SSE_DEFS) + |