summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2002-12-30 15:20:35 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2002-12-30 15:20:35 +0000
commit2c2bcf8268ce78d64f00b587c1cb7124ef411e27 (patch)
tree4940b40ba42bbff66490c5f9677eb2200121481f /src/mesa
parent695b197cb2d7e1d68b81ab1f4daba5a7154fd80e (diff)
Lay ground work for cut-down radeon driver.
NOTE: commented out a couple of places where core mesa calls directly into the swrast module.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/radeon/Makefile7
-rw-r--r--src/mesa/drivers/dri/radeon/server/radeon_dri.c2
-rw-r--r--src/mesa/main/image.c14
-rw-r--r--src/mesa/swrast/swrast.h14
-rw-r--r--src/mesa/tnl/t_context.h5
-rw-r--r--src/mesa/tnl/tnl.h6
6 files changed, 27 insertions, 21 deletions
diff --git a/src/mesa/drivers/dri/radeon/Makefile b/src/mesa/drivers/dri/radeon/Makefile
index 99ef5d2ed5b..4edfebbc6c7 100644
--- a/src/mesa/drivers/dri/radeon/Makefile
+++ b/src/mesa/drivers/dri/radeon/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.1.2.7 2002/12/30 13:15:55 keithw Exp $
+# $Id: Makefile,v 1.1.2.8 2002/12/30 15:20:36 keithw Exp $
# Mesa 3-D graphics library
# Version: 5.0
@@ -12,7 +12,8 @@ MESABUILDDIR = ../..
INCLUDES = -I$(MESABUILDDIR) -I$(MESA)/include -I. -I../common \
-I$(MESABUILDDIR)/miniglx -Iserver
-CFLAGS = $(INCLUDES) -g -MD -DGLX_DIRECT_RENDERING
+DEFINES = -D_HAVE_SWRAST=1 -D_HAVE_SWTNL=1 -D_HAVE_SANITY=1
+CFLAGS = $(INCLUDES) $(DEFINES) -g -MD -DGLX_DIRECT_RENDERING
# The .a files for each mesa module required by this driver:
#
@@ -87,4 +88,4 @@ include $(C_SOURCES:.c=.d)
.SUFFIXES: .c .d
.c.d:
- $(CC) -M $(INCLUDES) $< > $@
+ $(CC) -M $(INCLUDES) $(DEFINES) $< > $@
diff --git a/src/mesa/drivers/dri/radeon/server/radeon_dri.c b/src/mesa/drivers/dri/radeon/server/radeon_dri.c
index d0acf3bc1d8..903d07199d4 100644
--- a/src/mesa/drivers/dri/radeon/server/radeon_dri.c
+++ b/src/mesa/drivers/dri/radeon/server/radeon_dri.c
@@ -179,7 +179,7 @@ static int RADEONEngineRestore( struct MiniGLXDisplayRec *dpy,
OUTREG(RADEON_AUX_SC_CNTL, 0);
/* RADEONWaitForIdleMMIO(dpy); */
- sleep(2);
+/* sleep(2); */
}
/* Compute log base 2 of val */
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c
index 3830b0318ee..7f46b7dbc86 100644
--- a/src/mesa/main/image.c
+++ b/src/mesa/main/image.c
@@ -1,4 +1,4 @@
-/* $Id: image.c,v 1.69 2002/10/24 23:57:21 brianp Exp $ */
+/* $Id: image.c,v 1.69.4.1 2002/12/30 15:20:35 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -938,11 +938,11 @@ _mesa_pack_float_rgba_span( GLcontext *ctx,
}
/* update histogram count */
if (transferOps & IMAGE_HISTOGRAM_BIT) {
- _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba);
+/* _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba); */
}
/* min/max here */
if (transferOps & IMAGE_MIN_MAX_BIT) {
- _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba);
+/* _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba); */
if (ctx->MinMax.Sink) {
UNDEFARRAY(rgbaCopy); /* mac 32k limitation */
return;
@@ -2814,11 +2814,11 @@ _mesa_unpack_chan_color_span( GLcontext *ctx,
}
/* update histogram count */
if (transferOps & IMAGE_HISTOGRAM_BIT) {
- _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba);
+/* _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba); */
}
/* min/max here */
if (transferOps & IMAGE_MIN_MAX_BIT) {
- _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba);
+/* _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba); */
}
}
@@ -3091,11 +3091,11 @@ _mesa_unpack_float_color_span( GLcontext *ctx,
}
/* update histogram count */
if (transferOps & IMAGE_HISTOGRAM_BIT) {
- _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba);
+/* _mesa_update_histogram(ctx, n, (CONST GLfloat (*)[4]) rgba); */
}
/* min/max here */
if (transferOps & IMAGE_MIN_MAX_BIT) {
- _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba);
+/* _mesa_update_minmax(ctx, n, (CONST GLfloat (*)[4]) rgba); */
}
}
diff --git a/src/mesa/swrast/swrast.h b/src/mesa/swrast/swrast.h
index 55c1593246a..83856214097 100644
--- a/src/mesa/swrast/swrast.h
+++ b/src/mesa/swrast/swrast.h
@@ -1,8 +1,8 @@
-/* $Id: swrast.h,v 1.33 2002/11/13 16:47:18 brianp Exp $ */
+/* $Id: swrast.h,v 1.32.4.1 2002/12/30 15:20:37 keithw Exp $ */
/*
* Mesa 3-D graphics library
- * Version: 5.1
+ * Version: 4.1
*
* Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
*
@@ -34,6 +34,10 @@
#ifndef SWRAST_H
#define SWRAST_H
+#if !_HAVE_SWRAST
+#error "_HAVE_SWRAST not set"
+#endif
+
#include "mtypes.h"
/**
@@ -458,8 +462,6 @@ struct swrast_device_driver {
void (*WriteMonoRGBASpan)( const GLcontext *ctx, GLuint n, GLint x, GLint y,
const GLchan color[4], const GLubyte mask[] );
/* Write a horizontal run of RGBA pixels all with the same color.
- * If mask is NULL, draw all pixels.
- * If mask is not null, only draw pixel [i] when mask [i] is true.
*/
void (*WriteRGBAPixels)( const GLcontext *ctx,
@@ -481,16 +483,12 @@ struct swrast_device_driver {
/* Write a horizontal run of CI pixels. One function is for 32bpp
* indexes and the other for 8bpp pixels (the common case). You mus
* implement both for color index mode.
- * If mask is NULL, draw all pixels.
- * If mask is not null, only draw pixel [i] when mask [i] is true.
*/
void (*WriteMonoCISpan)( const GLcontext *ctx, GLuint n, GLint x, GLint y,
GLuint colorIndex, const GLubyte mask[] );
/* Write a horizontal run of color index pixels using the color index
* last specified by the Index() function.
- * If mask is NULL, draw all pixels.
- * If mask is not null, only draw pixel [i] when mask [i] is true.
*/
void (*WriteCI32Pixels)( const GLcontext *ctx,
diff --git a/src/mesa/tnl/t_context.h b/src/mesa/tnl/t_context.h
index db66479dc62..de7adfe7a10 100644
--- a/src/mesa/tnl/t_context.h
+++ b/src/mesa/tnl/t_context.h
@@ -1,4 +1,4 @@
-/* $Id: t_context.h,v 1.43 2002/10/09 19:45:53 brianp Exp $ */
+/* $Id: t_context.h,v 1.43.6.1 2002/12/30 15:20:38 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -40,6 +40,9 @@
#include "math/m_vector.h"
#include "math/m_xform.h"
+#if !_HAVE_SWTNL
+#error "_HAVE_SWTNL not set"
+#endif
#define MAX_PIPELINE_STAGES 30
diff --git a/src/mesa/tnl/tnl.h b/src/mesa/tnl/tnl.h
index 1fe7b451cc4..db0f7b59bb5 100644
--- a/src/mesa/tnl/tnl.h
+++ b/src/mesa/tnl/tnl.h
@@ -1,4 +1,4 @@
-/* $Id: tnl.h,v 1.10 2002/10/29 20:29:04 brianp Exp $ */
+/* $Id: tnl.h,v 1.10.4.1 2002/12/30 15:20:38 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -30,6 +30,10 @@
#ifndef _TNL_H
#define _TNL_H
+#if !_HAVE_SWTNL
+#error "_HAVE_SWTNL not set"
+#endif
+
#include "mtypes.h"