summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgareth <gareth>2001-01-04 08:03:53 +0000
committergareth <gareth>2001-01-04 08:03:53 +0000
commite171dee8880f1f2258cc6d3c02ca1b288f8e8123 (patch)
treea8b76dfb2cad49d7e9cdf5a6aa1dba423686662e
parent733cdb43859f3ee7a8e38643bf5f301faa006f70 (diff)
Update copyright, author information for final merge back to trunk.tdfx-3-0-0-20010104-freeze
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/dri_glide.h34
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.c36
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h34
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_dd.c38
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_dd.h34
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_fastpath.c41
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_fasttmp.h49
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_g3ext.c35
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_g3ext.h34
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_lock.c38
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_lock.h36
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_pipeline.c37
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_pipeline.h35
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_pixels.c38
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_pixels.h36
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c38
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.h39
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_screen.c34
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_screen.h34
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_span.c44
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_span.h35
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_state.c50
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_state.h35
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.c39
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.h37
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_texman.c53
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_texman.h35
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_texstate.c41
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_texstate.h41
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_tris.c52
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_tris.h38
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_tritmp.h60
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_vb.c40
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_vb.h36
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_wrapper.c36
-rw-r--r--xc/lib/GL/mesa/src/drv/tdfx/tdfx_xmesa.c35
36 files changed, 1177 insertions, 230 deletions
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/dri_glide.h b/xc/lib/GL/mesa/src/drv/tdfx/dri_glide.h
index 6d5b1758a..83223b07c 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/dri_glide.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/dri_glide.h
@@ -1,10 +1,36 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.c
index 051889f63..ae509044d 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.c
@@ -1,11 +1,37 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
- * Brian Paul <brianp@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h
index 7aafedd4f..d630184bd 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_context.h
@@ -1,10 +1,36 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_dd.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_dd.c
index ad3b4d8b2..ec5b25871 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_dd.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_dd.c
@@ -1,11 +1,37 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
- * Brian Paul <brianp@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
*/
@@ -19,7 +45,7 @@
#include "pb.h"
-#define TDFX_DATE "20001214"
+#define TDFX_DATE "20010104"
/* These are used in calls to FX_grColorMaskv() */
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_dd.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_dd.h
index 58a76a598..1bb037a0f 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_dd.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_dd.h
@@ -1,10 +1,36 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_fastpath.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_fastpath.c
index 0badb9a5c..f41d86b3c 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_fastpath.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_fastpath.c
@@ -1,10 +1,37 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Keith Whitwell <keithw@valinux.com>
*
*/
@@ -31,7 +58,7 @@ struct tdfx_fast_tab {
#define POINT(x) tdfx_draw_point( fxMesa, &vert[x], psize )
#define LINE(x,y) tdfx_draw_line( fxMesa, &vert[x], &vert[y], lwidth )
-#define TRI(x,y,z) grDrawTriangle( &vert[x], &vert[y], &vert[z] );
+#define TRI(x,y,z) grDrawTriangle( &vert[x], &vert[y], &vert[z] );
#define INDIRECT_TRI(x,y,z) \
@@ -451,7 +478,7 @@ static void tdfx_render_elements_direct( struct vertex_buffer *VB )
if ( fxMesa->new_state )
tdfxDDUpdateHwState( ctx );
-
+
BEGIN_CLIP_LOOP( fxMesa );
do {
func( VB, 0, nr, 0 );
@@ -537,7 +564,7 @@ void tdfxDDFastPath( struct vertex_buffer *VB )
gl_prepare_arrays_cva( VB ); /* still need this */
/* Reserve enough space for the pathological case */
- if ( VB->EltPtr->count * 12 > fxVB->size )
+ if ( VB->EltPtr->count * 12 > fxVB->size )
tdfxDDResizeVB( VB, VB->EltPtr->count * 12 );
tab->build_vertices( VB, 1 ); /* object->clip space */
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_fasttmp.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_fasttmp.h
index bfd33e752..24abcb4eb 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_fasttmp.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_fasttmp.h
@@ -1,10 +1,37 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Keith Whitwell <keithw@valinux.com>
*
*/
@@ -29,7 +56,7 @@ static void TAG(tdfx_setup_full)( struct vertex_buffer *VB,
GLuint count = VB->Count;
if (0) fprintf(stderr, "%s\n", __FUNCTION__);
-
+
gl_xform_points3_v16_general( TDFX_DRIVER_DATA(VB)->verts[start].f,
m,
VB->ObjPtr->start,
@@ -111,7 +138,7 @@ static void TAG(tdfx_setup_full)( struct vertex_buffer *VB,
#else
*(unsigned int *)(f+CLIP_S1) = *(unsigned int *)tex1_data;
*(unsigned int *)(f+CLIP_T1) = *(unsigned int *)(tex1_data+1);
-#endif
+#endif
}
if ( TYPE & TDFX_RGBA_BIT ) color += color_stride;
if ( TYPE & TDFX_TEX0_BIT ) STRIDE_F( tex0_data, tex0_stride );
@@ -190,13 +217,13 @@ static void TAG(tdfx_project_vertices)( struct vertex_buffer *VB )
for ( f = first ; f != last ; f += 16) {
- const GLfloat oow = f[3];
-
+ const GLfloat oow = f[3];
+
if (TYPE & TDFX_TEX0_BIT) {
f[CLIP_S0] *= sScale0 * oow;
f[CLIP_T0] *= tScale0 * oow;
}
-
+
if (TYPE & TDFX_TEX1_BIT) {
f[CLIP_S1] *= sScale1 * oow;
f[CLIP_T1] *= tScale1 * oow;
@@ -238,12 +265,12 @@ static void TAG(tdfx_project_clipped_vertices)( struct vertex_buffer *VB )
for ( f = first ; f != last ; f += 16, mask++) {
if (!*mask) {
- const GLfloat oow = f[3];
+ const GLfloat oow = f[3];
if (TYPE & TDFX_TEX0_BIT) {
f[CLIP_S0] *= sScale0 * oow;
f[CLIP_T0] *= tScale0 * oow;
}
-
+
if (TYPE & TDFX_TEX1_BIT) {
f[CLIP_S1] *= sScale1 * oow;
f[CLIP_T1] *= tScale1 * oow;
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_g3ext.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_g3ext.c
index de33a2eab..1f49142be 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_g3ext.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_g3ext.c
@@ -1,11 +1,38 @@
-/*
- * Authors:
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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:
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * 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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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$ */
+/*
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
+ *
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ *
+ */
#include <stdlib.h>
#include <string.h>
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_g3ext.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_g3ext.h
index 7512b01c5..29cfc0907 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_g3ext.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_g3ext.h
@@ -1,10 +1,36 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_lock.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_lock.c
index d760432d3..f63541be9 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_lock.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_lock.c
@@ -1,10 +1,36 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
*
*/
@@ -62,8 +88,8 @@ void tdfxGetLock( tdfxContextPtr fxMesa )
/* Detect if we have swapped between 1 and >1 cliprects, and change
* triangle funcs if necessary.
- */
- if (one_rect != (fxMesa->numClipRects <= 1))
+ */
+ if (one_rect != (fxMesa->numClipRects <= 1))
tdfxDDToggleTriCliprects( fxMesa->glCtx );
DEBUG_LOCK();
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_lock.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_lock.h
index dbc9f2dca..3cfa52c0e 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_lock.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_lock.h
@@ -1,10 +1,36 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
*
*/
@@ -93,7 +119,7 @@ extern void tdfxGetLock( tdfxContextPtr fxMesa );
#define BEGIN_CLIP_LOOP(fxMesa) \
do { \
LOCK_HARDWARE( fxMesa ); \
- BEGIN_CLIP_LOOP_LOCKED( fxMesa )
+ BEGIN_CLIP_LOOP_LOCKED( fxMesa )
#define BEGIN_CLIP_LOOP_LOCKED(fxMesa) \
do { \
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pipeline.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pipeline.c
index 60f6e1415..b26e174c8 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pipeline.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pipeline.c
@@ -1,10 +1,37 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Keith Whitwell <keithw@valinux.com>
*
*/
@@ -135,7 +162,7 @@ GLuint tdfxDDRegisterPipelineStages( struct gl_pipeline_stage *out,
case PIPE_OP_RENDER:
out[o] = in[i];
- if (in[i].type == PIPE_PRECALC)
+ if (in[i].type == PIPE_PRECALC)
out[o].run = tdfxDDRenderElements;
o++;
break;
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pipeline.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pipeline.h
index c15356b00..a87a8cf74 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pipeline.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pipeline.h
@@ -1,10 +1,37 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Keith Whitwell <keithw@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pixels.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pixels.c
index 01429ef3c..e650e6615 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pixels.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pixels.c
@@ -1,10 +1,38 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
+ * Nathan Hand <nhand@valinux.com>
*
*/
@@ -74,7 +102,7 @@ inClipRects_Region(tdfxContextPtr fxMesa, int x, int y, int width, int height)
if (ymin < y1) ymin = y1;
if (xmax > x2) xmax = x2;
if (ymax > y2) ymax = y2;
-
+
pixelsleft -= (xmax-xmin+1) * (ymax-ymin+1);
}
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pixels.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pixels.h
index e1a5949c7..655f03bd1 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pixels.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_pixels.h
@@ -1,10 +1,38 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
+ * Nathan Hand <nhand@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c
index c182693e6..97931a351 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.c
@@ -1,3 +1,39 @@
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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$ */
+
+/*
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
+ *
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
+ *
+ */
#include "dri_glide.h"
#include "tdfx_context.h"
@@ -541,7 +577,7 @@ static void uploadTextureSource( tdfxContextPtr fxMesa )
if (src->Info) {
/*
printf(" smallLodLog2=%d largeLodLog2=%d ar=%d format=%d data=%p\n",
- src->Info->smallLodLog2, src->Info->largeLodLog2,
+ src->Info->smallLodLog2, src->Info->largeLodLog2,
src->Info->aspectRatioLog2, src->Info->format,
src->Info->data);
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.h
index 610cd1ddc..9d1c25069 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_render.h
@@ -1,10 +1,36 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
*
*/
@@ -24,6 +50,5 @@ extern void tdfxUploadClipping( tdfxContextPtr fxMesa );
#define FLUSH_BATCH( fxMesa )
-#endif /* GLX_DIRECT_RENDERING */
-
-#endif /* __TDFX_RENDER_H__ */
+#endif
+#endif
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_screen.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_screen.c
index cba1c7592..801cf42e0 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_screen.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_screen.c
@@ -1,10 +1,36 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_screen.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_screen.h
index 0c3eee12a..330c394a6 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_screen.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_screen.h
@@ -1,10 +1,36 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_span.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_span.c
index 0e401605a..61dafe3a8 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_span.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_span.c
@@ -1,10 +1,38 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
+ * Keith Whitwell <keithw@valinux.com>
*
*/
@@ -61,7 +89,7 @@
#define HW_WRITE_UNLOCK() \
grLfbUnlock( GR_LFB_WRITE_ONLY, fxMesa->DrawBuffer ); \
- }
+ }
#define HW_READ_LOCK() \
@@ -77,7 +105,7 @@
#define HW_READ_UNLOCK() \
grLfbUnlock( GR_LFB_READ_ONLY, fxMesa->ReadBuffer ); \
- }
+ }
#define HW_WRITE_CLIPLOOP() \
@@ -336,7 +364,7 @@ visible_pixel(const tdfxContextPtr fxMesa, int scrX, int scrY)
? "depth buffer" \
: "unknown buffer"), \
target_buffer); \
- }
+ }
#define WRITE_FB_SPAN_LOCK(fxMesa, info, target_buffer, write_mode) \
UNLOCK_HARDWARE(fxMesa); \
@@ -359,7 +387,7 @@ visible_pixel(const tdfxContextPtr fxMesa, int scrX, int scrY)
? "depth buffer" \
: "unknown buffer"), \
target_buffer); \
- }
+ }
/*
* Because the Linear Frame Buffer is not necessarily aligned
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_span.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_span.h
index e9fb31aac..47303c600 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_span.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_span.h
@@ -1,10 +1,37 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_state.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_state.c
index 90afbf3c5..c5e1a5dfc 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_state.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_state.c
@@ -1,11 +1,37 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
- * Brian Paul <brianp@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
*/
@@ -949,7 +975,7 @@ static void tdfxDDEnable( GLcontext *ctx, GLenum cap, GLboolean state )
case GL_STENCIL_TEST:
FLUSH_BATCH( fxMesa );
- if (fxMesa->haveHwStencil)
+ if (fxMesa->haveHwStencil)
fxMesa->new_state |= TDFX_NEW_STENCIL;
else if (state)
fxMesa->Fallback |= TDFX_FALLBACK_STENCIL;
@@ -1042,8 +1068,8 @@ static void tdfxDDSetReadBuffer( GLcontext *ctx,
}
/* =============================================================
- * Polygon stipple
- */
+ * Polygon stipple
+ */
static void tdfxDDPolygonStipple( GLcontext *ctx, const GLubyte *mask )
{
@@ -1065,7 +1091,7 @@ static void tdfxDDPolygonStipple( GLcontext *ctx, const GLubyte *mask )
q[3] = mask[12];
for (k = 0 ; k < 8 ; k++)
- for (j = 0 ; j < 4; j++)
+ for (j = 0 ; j < 4; j++)
for (i = 0 ; i < 4 ; i++,m++) {
if (*m != q[j]) {
ctx->Driver.TriangleCaps &= ~DD_TRI_STIPPLE;
@@ -1078,7 +1104,7 @@ static void tdfxDDPolygonStipple( GLcontext *ctx, const GLubyte *mask )
fxMesa->Stipple.Pattern = ( (q[0] << 0) |
(q[1] << 8) |
(q[2] << 16) |
- (q[3] << 24) );
+ (q[3] << 24) );
fxMesa->dirty |= TDFX_UPLOAD_STIPPLE;
}
@@ -1209,12 +1235,12 @@ void tdfxDDUpdateHwState( GLcontext *ctx )
static void tdfxDDRenderStart( GLcontext *ctx )
{
tdfxDDUpdateHwState( ctx );
- LOCK_HARDWARE( TDFX_CONTEXT(ctx) );
+ LOCK_HARDWARE( TDFX_CONTEXT(ctx) );
}
static void tdfxDDRenderFinish( GLcontext *ctx )
{
- UNLOCK_HARDWARE( TDFX_CONTEXT(ctx) );
+ UNLOCK_HARDWARE( TDFX_CONTEXT(ctx) );
}
#define INTERESTED (~(NEW_MODELVIEW | \
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_state.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_state.h
index 57022f602..735c858b4 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_state.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_state.h
@@ -1,10 +1,37 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.c
index 5b583ecaa..8d5b627f5 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.c
@@ -1,15 +1,40 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
- * Brian Paul <brianp@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
*/
-
#include "image.h"
#include "texutil.h"
#include "tdfx_context.h"
@@ -930,7 +955,7 @@ tdfxDDTexSubImage2D(GLcontext * ctx, GLenum target, GLint level,
texImage->IntFormat, format, type, xoffset, yoffset, width, height,
texImage->Width, texImage->Height);
*/
-
+
ti = TDFX_TEXTURE_DATA(texObj);
mml = &ti->mipmapLevel[level];
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.h
index 88c369555..95ef3b018 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tex.h
@@ -1,14 +1,40 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
*/
-
#ifndef _TDFX_TEX_H_
#define _TDFX_TEX_H_
@@ -129,4 +155,3 @@ tdfxDDCompressedImageSize(GLcontext *ctx,
#endif
-
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texman.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texman.c
index ee1d23a87..97fe9d4c6 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texman.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texman.c
@@ -1,8 +1,8 @@
-/*
- * Mesa 3-D graphics library
- * Version: 3.3
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
*
- * Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
+ * 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"),
@@ -11,39 +11,30 @@
* 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 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,
+ * 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
- * BRIAN PAUL 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 Mesa / 3Dfx device driver (C) 1999 David Bucciarelli, by the
- * terms stated above.
- *
- * Thank you for your contribution, David!
- *
- * Please make note of the above copyright/license statement. If you
- * contributed code or bug fixes to this code under the previous (GNU
- * Library) license and object to the new license, your code will be
- * removed at your request. Please see the Mesa docs/COPYRIGHT file
- * for more information.
+ * VA LINUX SYSTEMS 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$ */
+
+/*
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Additional Mesa/3Dfx driver developers:
- * Daryll Strauss <daryll@precisioninsight.com>
- * Keith Whitwell <keith@precisioninsight.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
- * See fxapi.h for more revision/author details.
*/
-
-/* fxtexman.c - 3Dfx VooDoo texture memory functions */
-
-
#include "tdfx_context.h"
#include "tdfx_tex.h"
#include "tdfx_texman.h"
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texman.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texman.h
index 38ff3c8f0..1965aaa84 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texman.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texman.h
@@ -1,10 +1,37 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texstate.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texstate.c
index 732671773..9a74cba03 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texstate.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texstate.c
@@ -1,15 +1,40 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
- * Brian Paul <brianp@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
*/
-
#include "tdfx_state.h"
#include "tdfx_tex.h"
#include "tdfx_texman.h"
@@ -780,7 +805,7 @@ SetupTexEnvNapalm(GLcontext *ctx, GLboolean useIteratedRGBA,
fxMesa->dirty |= TDFX_UPLOAD_TEXTURE_ENV;
fxMesa->ColorCombineExt.SourceA = GR_CMBX_TEXTURE_RGB;
- fxMesa->ColorCombineExt.ModeA = GR_FUNC_MODE_X,
+ fxMesa->ColorCombineExt.ModeA = GR_FUNC_MODE_X,
fxMesa->ColorCombineExt.SourceB = GR_CMBX_ZERO;
fxMesa->ColorCombineExt.ModeB = GR_FUNC_MODE_X;
fxMesa->ColorCombineExt.SourceC = GR_CMBX_ZERO;
@@ -1349,7 +1374,7 @@ setupSingleTMU(tdfxContextPtr fxMesa, struct gl_texture_object *tObj)
/* KW: The alternative is to do the download to the other tmu. If
* we get to this point, I think it means we are thrashing the
- * texture memory, so perhaps it's not a good idea.
+ * texture memory, so perhaps it's not a good idea.
*/
if (fxMesa->TexParams[tmu].sClamp != ti->sClamp ||
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texstate.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texstate.h
index f7948bf2e..0c0d4adcb 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texstate.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_texstate.h
@@ -1,11 +1,44 @@
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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$ */
+
+/*
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
+ *
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
+ *
+ */
+
#ifndef __TDFX_TEXSTATE_H__
#define __TDFX_TEXSTATE_H__
-
extern void tdfxUpdateTextureState( GLcontext *ctx );
-
extern void tdfxUpdateTextureBinding( GLcontext *ctx );
-
#endif
-
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tris.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tris.c
index fb1f24da2..21f7cdad3 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tris.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tris.c
@@ -1,10 +1,38 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
+ * Keith Whitwell <keithw@valinux.com>
*
*/
@@ -193,7 +221,7 @@ static void tdfx_render_vb_tri_strip( struct vertex_buffer *VB,
{
tdfxVertexPtr fxVB = TDFX_DRIVER_DATA(VB)->verts;
grDrawVertexArrayContiguous( GR_TRIANGLE_STRIP, count-start, fxVB+start,
- sizeof(*fxVB));
+ sizeof(*fxVB));
(void) parity;
}
@@ -270,7 +298,7 @@ do { \
#include "render_tmp.h"
-static void tdfxDDRenderEltsRaw( struct vertex_buffer *VB )
+static void tdfxDDRenderEltsRaw( struct vertex_buffer *VB )
{
GLcontext *ctx = VB->ctx;
tdfxContextPtr fxMesa = TDFX_CONTEXT( ctx );
@@ -413,8 +441,8 @@ void tdfxDDChooseRenderState( GLcontext *ctx )
DD_QUAD_SW_RASTERIZE);
fxMesa->RenderIndex |= TDFX_FALLBACK_BIT;
}
-
- if (flags & (DD_LINE_WIDTH | DD_POINT_SIZE))
+
+ if (flags & (DD_LINE_WIDTH | DD_POINT_SIZE))
fxMesa->RenderVBRawTab = 0;
fxMesa->RenderElementsRaw = gl_render_elts;
@@ -436,8 +464,8 @@ void tdfxDDToggleTriCliprects( GLcontext *ctx )
if (fxMesa->Fallback)
return;
-
- if (fxMesa->numClipRects > 1)
+
+ if (fxMesa->numClipRects > 1)
newidx = (fxMesa->RenderIndex |= TDFX_CLIPRECT_BIT);
else
newidx = (fxMesa->RenderIndex &= ~TDFX_CLIPRECT_BIT);
@@ -469,8 +497,8 @@ void tdfxDDToggleTriCliprects( GLcontext *ctx )
fxMesa->QuadFunc = rast_tab[newidx].quad;
fxMesa->RenderVBRawTab = rast_tab[newidx].render_tab;
- if (newidx == 0 &&
- (ctx->IndirectTriangles & (DD_LINE_WIDTH|DD_POINT_SIZE)) == 0)
+ if (newidx == 0 &&
+ (ctx->IndirectTriangles & (DD_LINE_WIDTH|DD_POINT_SIZE)) == 0)
fxMesa->RenderElementsRaw = tdfxDDRenderEltsRaw;
else
fxMesa->RenderElementsRaw = gl_render_elts;
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tris.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tris.h
index 1e2a98f2c..1de26cefa 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tris.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tris.h
@@ -1,10 +1,38 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
+ * Keith Whitwell <keithw@valinux.com>
*
*/
@@ -135,7 +163,7 @@ static __inline void tdfx_draw_line( tdfxContextPtr fxMesa,
verts[3].v.x = tmp1->v.x - ix;
verts[3].v.y = tmp1->v.y - iy;
- grDrawVertexArrayContiguous( GR_TRIANGLE_FAN, 4, verts,
+ grDrawVertexArrayContiguous( GR_TRIANGLE_FAN, 4, verts,
sizeof(tdfxVertex) );
}
}
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tritmp.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tritmp.h
index fdc9f45c8..a1039c99c 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tritmp.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_tritmp.h
@@ -1,3 +1,39 @@
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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$ */
+
+/*
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
+ *
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Keith Whitwell <keithw@valinux.com>
+ *
+ */
static __inline void TAG(triangle)( GLcontext *ctx,
GLuint e0, GLuint e1, GLuint e2,
@@ -91,7 +127,7 @@ static __inline void TAG(triangle)( GLcontext *ctx,
#if (IND & TDFX_CLIPRECT_BIT)
BEGIN_CLIP_LOOP_LOCKED( fxMesa );
grDrawTriangle( v[0], v[1], v[2] );
- END_CLIP_LOOP_LOCKED( fxMesa );
+ END_CLIP_LOOP_LOCKED( fxMesa );
#else
grDrawTriangle( v[0], v[1], v[2] );
#endif
@@ -130,7 +166,7 @@ static __inline void TAG(quad)( GLcontext *ctx, GLuint e0,
#endif
#if (IND & TDFX_CLIPRECT_BIT)
- tdfxContextPtr fxMesa = TDFX_CONTEXT(ctx);
+ tdfxContextPtr fxMesa = TDFX_CONTEXT(ctx);
#endif
@@ -219,7 +255,7 @@ static __inline void TAG(quad)( GLcontext *ctx, GLuint e0,
/* grDrawVertexArray( GR_TRIANGLE_FAN, 4, v ); */
grDrawTriangle( v[0], v[1], v[3] );
grDrawTriangle( v[1], v[2], v[3] );
- END_CLIP_LOOP_LOCKED( fxMesa );
+ END_CLIP_LOOP_LOCKED( fxMesa );
#else
/* grDrawVertexArray( GR_TRIANGLE_FAN, 4, v ); */
grDrawTriangle( v[0], v[1], v[3] );
@@ -245,7 +281,7 @@ static __inline void TAG(quad)( GLcontext *ctx, GLuint e0,
-static __inline void TAG(line)( GLcontext *ctx, GLuint v0, GLuint v1,
+static __inline void TAG(line)( GLcontext *ctx, GLuint v0, GLuint v1,
GLuint pv )
{
tdfxContextPtr fxMesa = TDFX_CONTEXT( ctx );
@@ -284,7 +320,7 @@ static __inline void TAG(line)( GLcontext *ctx, GLuint v0, GLuint v1,
if (IND & TDFX_CLIPRECT_BIT) {
BEGIN_CLIP_LOOP_LOCKED( fxMesa );
tdfx_draw_line( fxMesa, &fxVB[v0], &fxVB[v1], width );
- END_CLIP_LOOP_LOCKED( fxMesa );
+ END_CLIP_LOOP_LOCKED( fxMesa );
} else
tdfx_draw_line( fxMesa, &fxVB[v0], &fxVB[v1], width );
@@ -310,7 +346,7 @@ static __inline void TAG(points)( GLcontext *ctx, GLuint first, GLuint last )
for ( i = first ; i < last ; i++ ) {
if ( VB->ClipMask[i] == 0 ) {
- if ( IND & (TDFX_TWOSIDE_BIT|TDFX_OFFSET_BIT) )
+ if ( IND & (TDFX_TWOSIDE_BIT|TDFX_OFFSET_BIT) )
{
tdfxVertex tmp0 = fxVB[i];
@@ -327,16 +363,16 @@ static __inline void TAG(points)( GLcontext *ctx, GLuint first, GLuint last )
if (IND & TDFX_CLIPRECT_BIT) {
BEGIN_CLIP_LOOP_LOCKED( fxMesa );
tdfx_draw_point( fxMesa, &tmp0, sz );
- END_CLIP_LOOP_LOCKED( fxMesa );
+ END_CLIP_LOOP_LOCKED( fxMesa );
} else
tdfx_draw_point( fxMesa, &tmp0, sz );
- }
- else if (IND & TDFX_CLIPRECT_BIT)
+ }
+ else if (IND & TDFX_CLIPRECT_BIT)
{
BEGIN_CLIP_LOOP_LOCKED( fxMesa );
tdfx_draw_point( fxMesa, &fxVB[i], sz );
- END_CLIP_LOOP_LOCKED( fxMesa );
- }
+ END_CLIP_LOOP_LOCKED( fxMesa );
+ }
else
tdfx_draw_point( fxMesa, &fxVB[i], sz );
}
@@ -347,7 +383,7 @@ static __inline void TAG(points)( GLcontext *ctx, GLuint first, GLuint last )
/* Accelerate unclipped VB rendering when fxMesa->renderIndex != 0
- *
+ *
* The versions for renderIndex == 0 are further optimized and appear
* in tdfx_tris.c
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_vb.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_vb.c
index f319b31cc..a5cb9b6bc 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_vb.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_vb.c
@@ -1,10 +1,38 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
+ * Keith Whitwell <keithw@valinux.com>
*
*/
@@ -191,7 +219,7 @@ void tdfxDDSetupInit( void )
{
int i;
- for (i = 0; i < Elements(setup_func); i++)
+ for (i = 0; i < Elements(setup_func); i++)
setup_func[i] = rs_invalid;
/* Functions to build vertices from scratch */
@@ -405,7 +433,7 @@ void tdfxDDResizeElts( struct vertex_buffer *VB, GLuint size )
while (fxVB->elt_size < size)
fxVB->elt_size *= 2;
-
+
FREE(fxVB->elts);
fxVB->elts = MALLOC( sizeof(tdfxVertex *) * fxVB->elt_size );
if ( !fxVB->elts ) {
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_vb.h b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_vb.h
index f73a082d4..1f928ea2d 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_vb.h
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_vb.h
@@ -1,10 +1,38 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
+ * Keith Whitwell <keithw@valinux.com>
*
*/
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_wrapper.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_wrapper.c
index 77f48584a..e2abe0800 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_wrapper.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_wrapper.c
@@ -1,14 +1,40 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
*/
-
#include <stdlib.h>
#include <string.h>
diff --git a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_xmesa.c b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_xmesa.c
index c07d8b25c..2ff4abf88 100644
--- a/xc/lib/GL/mesa/src/drv/tdfx/tdfx_xmesa.c
+++ b/xc/lib/GL/mesa/src/drv/tdfx/tdfx_xmesa.c
@@ -1,10 +1,37 @@
-/* $XFree86$ */ /* -*- c-basic-offset: 3 -*- */
+/* -*- mode: c; c-basic-offset: 3 -*-
+ *
+ * Copyright 2000 VA Linux Systems Inc., Fremont, California.
+ *
+ * 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 (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 NONINFRINGEMENT. IN NO EVENT SHALL
+ * VA LINUX SYSTEMS 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:
+ * Original rewrite:
+ * Gareth Hughes <gareth@valinux.com>, 29 Sep - 1 Oct 2000
*
- * Hacked by:
- * Gareth Hughes <gareth@valinux.com>
+ * Authors:
+ * Gareth Hughes <gareth@valinux.com>
+ * Brian Paul <brianp@valinux.com>
*
*/