summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-11-07 16:20:20 +0000
committerBrian Paul <[email protected]>2002-11-07 16:20:20 +0000
commit42ace1c150429d0c26fd550f48779e1a6ecf43a6 (patch)
tree4dfb2332a556e34bcb0ae40885ddad6e00215d1d /src/mesa
parentcf1c860a344f5845ef8d3bf31b78a2d59d138bd0 (diff)
added missing 1.4 glFogCoord functions
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/glapi/APIspec37
-rw-r--r--src/mesa/glapi/glapitemp.h30
-rw-r--r--src/mesa/main/glprocs.h5
-rw-r--r--src/mesa/sparc/glapi_sparc.S105
-rw-r--r--src/mesa/x86/glapi_x86.S30
5 files changed, 206 insertions, 1 deletions
diff --git a/src/mesa/glapi/APIspec b/src/mesa/glapi/APIspec
index b2978de4dc9..83093805bc0 100644
--- a/src/mesa/glapi/APIspec
+++ b/src/mesa/glapi/APIspec
@@ -1,4 +1,4 @@
-# $Id: APIspec,v 1.11 2002/09/06 03:30:20 brianp Exp $
+# $Id: APIspec,v 1.12 2002/11/07 16:20:20 brianp Exp $
# This file describes all the OpenGL functions.
# We use a number of Python scripts to parse this file and
@@ -5373,6 +5373,8 @@ category GL_EXT_fog_coord
offset 549
+# GL_EXT_coordinate_frame
+
name Tangent3bEXT
return void
param tx GLbyte
@@ -7623,6 +7625,39 @@ category 1.4
alias WindowPos3svMESA
+name FogCoordf
+return void
+param coord GLfloat
+category 1.4
+alias FogCoordfEXT
+
+name FogCoordfv
+return void
+param coord const GLfloat *
+category 1.4
+alias FogCoordfvEXT
+
+name FogCoordd
+return void
+param coord GLdouble
+category 1.4
+alias FogCoorddEXT
+
+name FogCoorddv
+return void
+param coord const GLdouble *
+category 1.4
+alias FogCoorddvEXT
+
+name FogCoordPointer
+return void
+param type GLenum
+param stride GLsizei
+param pointer const GLvoid *
+category 1.4
+alias FogCoordPointerEXT
+
+
# GL_EXT_stencil_two_side
name ActiveStencilFaceEXT
diff --git a/src/mesa/glapi/glapitemp.h b/src/mesa/glapi/glapitemp.h
index 0f76b28750b..a2992e12253 100644
--- a/src/mesa/glapi/glapitemp.h
+++ b/src/mesa/glapi/glapitemp.h
@@ -4179,6 +4179,31 @@ KEYWORD1 void KEYWORD2 NAME(WindowPos3sv)(const GLshort * v)
DISPATCH(WindowPos3svMESA, (v), (F, "glWindowPos3sv(%p);\n", (void *) v));
}
+KEYWORD1 void KEYWORD2 NAME(FogCoordf)(GLfloat coord)
+{
+ DISPATCH(FogCoordfEXT, (coord), (F, "glFogCoordf(%f);\n", coord));
+}
+
+KEYWORD1 void KEYWORD2 NAME(FogCoordfv)(const GLfloat * coord)
+{
+ DISPATCH(FogCoordfvEXT, (coord), (F, "glFogCoordfv(%p);\n", (void *) coord));
+}
+
+KEYWORD1 void KEYWORD2 NAME(FogCoordd)(GLdouble coord)
+{
+ DISPATCH(FogCoorddEXT, (coord), (F, "glFogCoordd(%f);\n", coord));
+}
+
+KEYWORD1 void KEYWORD2 NAME(FogCoorddv)(const GLdouble * coord)
+{
+ DISPATCH(FogCoorddvEXT, (coord), (F, "glFogCoorddv(%p);\n", (void *) coord));
+}
+
+KEYWORD1 void KEYWORD2 NAME(FogCoordPointer)(GLenum type, GLsizei stride, const GLvoid * pointer)
+{
+ DISPATCH(FogCoordPointerEXT, (type, stride, pointer), (F, "glFogCoordPointer(0x%x, %d, %p);\n", type, stride, (void *) pointer));
+}
+
KEYWORD1 void KEYWORD2 NAME(ActiveStencilFaceEXT)(GLenum face)
{
DISPATCH(ActiveStencilFaceEXT, (face), (F, "glActiveStencilFaceEXT(0x%x);\n", face));
@@ -5108,6 +5133,11 @@ void *UNUSED_TABLE_NAME[] = {
TABLE_ENTRY(WindowPos3iv),
TABLE_ENTRY(WindowPos3s),
TABLE_ENTRY(WindowPos3sv),
+ TABLE_ENTRY(FogCoordf),
+ TABLE_ENTRY(FogCoordfv),
+ TABLE_ENTRY(FogCoordd),
+ TABLE_ENTRY(FogCoorddv),
+ TABLE_ENTRY(FogCoordPointer),
};
#endif /*UNUSED_TABLE_NAME*/
diff --git a/src/mesa/main/glprocs.h b/src/mesa/main/glprocs.h
index e63f14e041e..dd8c0f977d8 100644
--- a/src/mesa/main/glprocs.h
+++ b/src/mesa/main/glprocs.h
@@ -801,6 +801,11 @@ static struct name_address_offset static_functions[] = {
{ "glWindowPos3iv", (GLvoid *) glWindowPos3iv, _gloffset_WindowPos3ivMESA },
{ "glWindowPos3s", (GLvoid *) glWindowPos3s, _gloffset_WindowPos3sMESA },
{ "glWindowPos3sv", (GLvoid *) glWindowPos3sv, _gloffset_WindowPos3svMESA },
+ { "glFogCoordf", (GLvoid *) glFogCoordf, _gloffset_FogCoordfEXT },
+ { "glFogCoordfv", (GLvoid *) glFogCoordfv, _gloffset_FogCoordfvEXT },
+ { "glFogCoordd", (GLvoid *) glFogCoordd, _gloffset_FogCoorddEXT },
+ { "glFogCoorddv", (GLvoid *) glFogCoorddv, _gloffset_FogCoorddvEXT },
+ { "glFogCoordPointer", (GLvoid *) glFogCoordPointer, _gloffset_FogCoordPointerEXT },
{ "glActiveStencilFaceEXT", (GLvoid *) glActiveStencilFaceEXT, _gloffset_ActiveStencilFaceEXT },
{ NULL, NULL } /* end of list marker */
};
diff --git a/src/mesa/sparc/glapi_sparc.S b/src/mesa/sparc/glapi_sparc.S
index ebf17b6e792..2bbe8131375 100644
--- a/src/mesa/sparc/glapi_sparc.S
+++ b/src/mesa/sparc/glapi_sparc.S
@@ -16758,6 +16758,111 @@ glWindowPos3sv:
jmpl %g3, %g0
nop
+.globl glFogCoordf
+.type glFogCoordf,#function
+glFogCoordf:
+#ifdef __sparc_v9__
+ sethi %hi(0x00000000), %g2
+ sethi %hi(0x00000000), %g1
+ or %g2, %lo(0x00000000), %g2
+ or %g1, %lo(0x00000000), %g1
+ sllx %g2, 32, %g2
+ ldx [%g1 + %g2], %g1
+ sethi %hi(8 * _gloffset_FogCoordfEXT), %g2
+ or %g2, %lo(8 * _gloffset_FogCoordfEXT), %g2
+ ldx [%g1 + %g2], %g3
+#else
+ sethi %hi(0x00000000), %g1
+ ld [%g1 + %lo(0x00000000)], %g1
+ ld [%g1 + (4 * _gloffset_FogCoordfEXT)], %g3
+#endif
+ jmpl %g3, %g0
+ nop
+
+.globl glFogCoordfv
+.type glFogCoordfv,#function
+glFogCoordfv:
+#ifdef __sparc_v9__
+ sethi %hi(0x00000000), %g2
+ sethi %hi(0x00000000), %g1
+ or %g2, %lo(0x00000000), %g2
+ or %g1, %lo(0x00000000), %g1
+ sllx %g2, 32, %g2
+ ldx [%g1 + %g2], %g1
+ sethi %hi(8 * _gloffset_FogCoordfvEXT), %g2
+ or %g2, %lo(8 * _gloffset_FogCoordfvEXT), %g2
+ ldx [%g1 + %g2], %g3
+#else
+ sethi %hi(0x00000000), %g1
+ ld [%g1 + %lo(0x00000000)], %g1
+ ld [%g1 + (4 * _gloffset_FogCoordfvEXT)], %g3
+#endif
+ jmpl %g3, %g0
+ nop
+
+.globl glFogCoordd
+.type glFogCoordd,#function
+glFogCoordd:
+#ifdef __sparc_v9__
+ sethi %hi(0x00000000), %g2
+ sethi %hi(0x00000000), %g1
+ or %g2, %lo(0x00000000), %g2
+ or %g1, %lo(0x00000000), %g1
+ sllx %g2, 32, %g2
+ ldx [%g1 + %g2], %g1
+ sethi %hi(8 * _gloffset_FogCoorddEXT), %g2
+ or %g2, %lo(8 * _gloffset_FogCoorddEXT), %g2
+ ldx [%g1 + %g2], %g3
+#else
+ sethi %hi(0x00000000), %g1
+ ld [%g1 + %lo(0x00000000)], %g1
+ ld [%g1 + (4 * _gloffset_FogCoorddEXT)], %g3
+#endif
+ jmpl %g3, %g0
+ nop
+
+.globl glFogCoorddv
+.type glFogCoorddv,#function
+glFogCoorddv:
+#ifdef __sparc_v9__
+ sethi %hi(0x00000000), %g2
+ sethi %hi(0x00000000), %g1
+ or %g2, %lo(0x00000000), %g2
+ or %g1, %lo(0x00000000), %g1
+ sllx %g2, 32, %g2
+ ldx [%g1 + %g2], %g1
+ sethi %hi(8 * _gloffset_FogCoorddvEXT), %g2
+ or %g2, %lo(8 * _gloffset_FogCoorddvEXT), %g2
+ ldx [%g1 + %g2], %g3
+#else
+ sethi %hi(0x00000000), %g1
+ ld [%g1 + %lo(0x00000000)], %g1
+ ld [%g1 + (4 * _gloffset_FogCoorddvEXT)], %g3
+#endif
+ jmpl %g3, %g0
+ nop
+
+.globl glFogCoordPointer
+.type glFogCoordPointer,#function
+glFogCoordPointer:
+#ifdef __sparc_v9__
+ sethi %hi(0x00000000), %g2
+ sethi %hi(0x00000000), %g1
+ or %g2, %lo(0x00000000), %g2
+ or %g1, %lo(0x00000000), %g1
+ sllx %g2, 32, %g2
+ ldx [%g1 + %g2], %g1
+ sethi %hi(8 * _gloffset_FogCoordPointerEXT), %g2
+ or %g2, %lo(8 * _gloffset_FogCoordPointerEXT), %g2
+ ldx [%g1 + %g2], %g3
+#else
+ sethi %hi(0x00000000), %g1
+ ld [%g1 + %lo(0x00000000)], %g1
+ ld [%g1 + (4 * _gloffset_FogCoordPointerEXT)], %g3
+#endif
+ jmpl %g3, %g0
+ nop
+
.globl glActiveStencilFaceEXT
.type glActiveStencilFaceEXT,#function
glActiveStencilFaceEXT:
diff --git a/src/mesa/x86/glapi_x86.S b/src/mesa/x86/glapi_x86.S
index 337da91598b..fe1c35e8111 100644
--- a/src/mesa/x86/glapi_x86.S
+++ b/src/mesa/x86/glapi_x86.S
@@ -4804,6 +4804,36 @@ GL_PREFIX(WindowPos3sv):
JMP(GL_OFFSET(_gloffset_WindowPos3svMESA))
ALIGNTEXT16
+GLOBL_FN(GL_PREFIX(FogCoordf))
+GL_PREFIX(FogCoordf):
+ MOV_L(CONTENT(GLNAME(_glapi_Dispatch)), EAX)
+ JMP(GL_OFFSET(_gloffset_FogCoordfEXT))
+
+ALIGNTEXT16
+GLOBL_FN(GL_PREFIX(FogCoordfv))
+GL_PREFIX(FogCoordfv):
+ MOV_L(CONTENT(GLNAME(_glapi_Dispatch)), EAX)
+ JMP(GL_OFFSET(_gloffset_FogCoordfvEXT))
+
+ALIGNTEXT16
+GLOBL_FN(GL_PREFIX(FogCoordd))
+GL_PREFIX(FogCoordd):
+ MOV_L(CONTENT(GLNAME(_glapi_Dispatch)), EAX)
+ JMP(GL_OFFSET(_gloffset_FogCoorddEXT))
+
+ALIGNTEXT16
+GLOBL_FN(GL_PREFIX(FogCoorddv))
+GL_PREFIX(FogCoorddv):
+ MOV_L(CONTENT(GLNAME(_glapi_Dispatch)), EAX)
+ JMP(GL_OFFSET(_gloffset_FogCoorddvEXT))
+
+ALIGNTEXT16
+GLOBL_FN(GL_PREFIX(FogCoordPointer))
+GL_PREFIX(FogCoordPointer):
+ MOV_L(CONTENT(GLNAME(_glapi_Dispatch)), EAX)
+ JMP(GL_OFFSET(_gloffset_FogCoordPointerEXT))
+
+ALIGNTEXT16
GLOBL_FN(GL_PREFIX(ActiveStencilFaceEXT))
GL_PREFIX(ActiveStencilFaceEXT):
MOV_L(CONTENT(GLNAME(_glapi_Dispatch)), EAX)