summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-06-02 04:05:45 +0000
committerBrian Paul <[email protected]>2005-06-02 04:05:45 +0000
commit1516f559bc1d8af1ca3a12c78b23937e9208b5c6 (patch)
tree211d4a41238d8658f3aa34386b58b68ff10dbcde
parentc4fbdb090cb02f57e83e5f679cadf62c22ec286b (diff)
start removing old (pre-renderbuffer) span code
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c8
-rw-r--r--src/mesa/drivers/dri/common/dri_util.h2
-rw-r--r--src/mesa/drivers/dri/mach64/mach64_span.c2
-rw-r--r--src/mesa/drivers/dri/r128/r128_span.c48
-rw-r--r--src/mesa/drivers/dri/savage/savagespan.c59
-rw-r--r--src/mesa/drivers/dri/tdfx/tdfx_span.c66
6 files changed, 10 insertions, 175 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 0c07cc0c148..b633ae0dcef 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -1648,7 +1648,8 @@ float
driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
int64_t current_ust )
{
- static PFNGLXGETMSCRATEOMLPROC get_msc_rate = NULL;
+#if 0
+ static glXGetMscRateOML_t get_msc_rate = NULL;
int32_t n;
int32_t d;
int interval;
@@ -1656,7 +1657,7 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
if ( get_msc_rate == NULL ) {
- get_msc_rate = (PFNGLXGETMSCRATEOMLPROC)
+ get_msc_rate = (glXGetMscRateOML_t)
glXGetProcAddress( (const GLubyte *) "glXGetMscRateOML" );
}
@@ -1685,6 +1686,9 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv, int64_t last_swap_ust,
}
return usage;
+#else
+ return 0;
+#endif
}
/*@}*/
diff --git a/src/mesa/drivers/dri/common/dri_util.h b/src/mesa/drivers/dri/common/dri_util.h
index 6ef1b114f9c..cb4e519d807 100644
--- a/src/mesa/drivers/dri/common/dri_util.h
+++ b/src/mesa/drivers/dri/common/dri_util.h
@@ -568,9 +568,11 @@ driCalculateSwapUsage( __DRIdrawablePrivate *dPriv,
int64_t last_swap_ust, int64_t current_ust );
/* Test for the GLX header glx.h */
+#if 0
#ifndef GLX
extern void
(*glXGetProcAddress(const GLubyte *procname))( void );
#endif
+#endif
#endif /* _DRI_UTIL_H_ */
diff --git a/src/mesa/drivers/dri/mach64/mach64_span.c b/src/mesa/drivers/dri/mach64/mach64_span.c
index 575a3648628..067ffab8edd 100644
--- a/src/mesa/drivers/dri/mach64/mach64_span.c
+++ b/src/mesa/drivers/dri/mach64/mach64_span.c
@@ -239,6 +239,7 @@ void mach64DDInitSpanFuncs( GLcontext *ctx )
swdd->ReadDepthPixels = mach64ReadDepthPixels_16;
swdd->WriteDepthPixels = mach64WriteDepthPixels_16;
#endif
+#if 0
/* No hardware stencil buffer */
swdd->ReadStencilSpan = NULL;
swdd->WriteStencilSpan = NULL;
@@ -252,6 +253,7 @@ void mach64DDInitSpanFuncs( GLcontext *ctx )
swdd->WriteMonoCIPixels = NULL;
swdd->ReadCI32Span = NULL;
swdd->ReadCI32Pixels = NULL;
+#endif
swdd->SpanRenderStart = mach64SpanRenderStart;
swdd->SpanRenderFinish = mach64SpanRenderFinish;
}
diff --git a/src/mesa/drivers/dri/r128/r128_span.c b/src/mesa/drivers/dri/r128/r128_span.c
index 7b02fc60a19..9a2bf742b6b 100644
--- a/src/mesa/drivers/dri/r128/r128_span.c
+++ b/src/mesa/drivers/dri/r128/r128_span.c
@@ -357,54 +357,6 @@ void r128DDInitSpanFuncs( GLcontext *ctx )
struct swrast_device_driver *swdd = _swrast_GetDeviceDriverReference(ctx);
swdd->SetBuffer = r128DDSetBuffer;
-
- switch ( rmesa->r128Screen->cpp ) {
- case 2:
-#if 0
- r128InitPointers_RGB565( swdd );
-#endif
- break;
-
- case 4:
-#if 0
- r128InitPointers_ARGB8888( swdd );
-#endif
- break;
-
- default:
- break;
- }
-
- switch ( rmesa->glCtx->Visual.depthBits ) {
- case 16:
-#if 0
- swdd->ReadDepthSpan = r128ReadDepthSpan_16;
- swdd->WriteDepthSpan = r128WriteDepthSpan_16;
- swdd->ReadDepthPixels = r128ReadDepthPixels_16;
- swdd->WriteDepthPixels = r128WriteDepthPixels_16;
-#endif
- break;
-
- case 24:
-#if 0
- swdd->ReadDepthSpan = r128ReadDepthSpan_24_8;
- swdd->WriteDepthSpan = r128WriteDepthSpan_24_8;
- swdd->ReadDepthPixels = r128ReadDepthPixels_24_8;
- swdd->WriteDepthPixels = r128WriteDepthPixels_24_8;
-#endif
- break;
-
- default:
- break;
- }
-
- swdd->WriteCI8Span = NULL;
- swdd->WriteCI32Span = NULL;
- swdd->WriteMonoCISpan = NULL;
- swdd->WriteCI32Pixels = NULL;
- swdd->WriteMonoCIPixels = NULL;
- swdd->ReadCI32Span = NULL;
- swdd->ReadCI32Pixels = NULL;
swdd->SpanRenderStart = r128SpanRenderStart;
swdd->SpanRenderFinish = r128SpanRenderFinish;
}
diff --git a/src/mesa/drivers/dri/savage/savagespan.c b/src/mesa/drivers/dri/savage/savagespan.c
index acdfde097b5..fef0aeec784 100644
--- a/src/mesa/drivers/dri/savage/savagespan.c
+++ b/src/mesa/drivers/dri/savage/savagespan.c
@@ -305,65 +305,6 @@ void savageDDInitSpanFuncs( GLcontext *ctx )
struct swrast_device_driver *swdd = _swrast_GetDeviceDriverReference(ctx);
swdd->SetBuffer = savageDDSetBuffer;
-
-#if 0
- switch (imesa->savageScreen->cpp)
- {
- case 2: savageInitPointers_565( swdd ); break;
- case 4: savageInitPointers_8888( swdd );
- }
-#endif
-
- switch (imesa->savageScreen->zpp)
- {
- case 2:
-#if 0
- if (imesa->float_depth) {
- swdd->ReadDepthSpan = savageReadDepthSpan_16f;
- swdd->WriteDepthSpan = savageWriteDepthSpan_16f;
- swdd->WriteMonoDepthSpan = savageWriteMonoDepthSpan_16f;
- swdd->ReadDepthPixels = savageReadDepthPixels_16f;
- swdd->WriteDepthPixels = savageWriteDepthPixels_16f;
- } else {
- swdd->ReadDepthSpan = savageReadDepthSpan_16;
- swdd->WriteDepthSpan = savageWriteDepthSpan_16;
- swdd->WriteMonoDepthSpan = savageWriteMonoDepthSpan_16;
- swdd->ReadDepthPixels = savageReadDepthPixels_16;
- swdd->WriteDepthPixels = savageWriteDepthPixels_16;
- }
-#endif
- break;
- case 4:
-#if 0
- if (imesa->float_depth) {
- swdd->ReadDepthSpan = savageReadDepthSpan_8_24f;
- swdd->WriteDepthSpan = savageWriteDepthSpan_8_24f;
- swdd->WriteMonoDepthSpan = savageWriteMonoDepthSpan_8_24f;
- swdd->ReadDepthPixels = savageReadDepthPixels_8_24f;
- swdd->WriteDepthPixels = savageWriteDepthPixels_8_24f;
- } else {
- swdd->ReadDepthSpan = savageReadDepthSpan_8_24;
- swdd->WriteDepthSpan = savageWriteDepthSpan_8_24;
- swdd->WriteMonoDepthSpan = savageWriteMonoDepthSpan_8_24;
- swdd->ReadDepthPixels = savageReadDepthPixels_8_24;
- swdd->WriteDepthPixels = savageWriteDepthPixels_8_24;
- }
- swdd->ReadStencilSpan = savageReadStencilSpan_8_24;
- swdd->WriteStencilSpan = savageWriteStencilSpan_8_24;
- swdd->ReadStencilPixels = savageReadStencilPixels_8_24;
- swdd->WriteStencilPixels = savageWriteStencilPixels_8_24;
-#endif
- break;
-
- }
- swdd->WriteCI8Span =NULL;
- swdd->WriteCI32Span =NULL;
- swdd->WriteMonoCISpan =NULL;
- swdd->WriteCI32Pixels =NULL;
- swdd->WriteMonoCIPixels =NULL;
- swdd->ReadCI32Span =NULL;
- swdd->ReadCI32Pixels =NULL;
-
swdd->SpanRenderStart = savageSpanRenderStart;
/* Pixel path fallbacks.
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_span.c b/src/mesa/drivers/dri/tdfx/tdfx_span.c
index 1fab811b74d..f27af2efcff 100644
--- a/src/mesa/drivers/dri/tdfx/tdfx_span.c
+++ b/src/mesa/drivers/dri/tdfx/tdfx_span.c
@@ -1372,74 +1372,8 @@ static void tdfxDDSetBuffer( GLcontext *ctx,
void tdfxDDInitSpanFuncs( GLcontext *ctx )
{
- tdfxContextPtr fxMesa = TDFX_CONTEXT(ctx);
struct swrast_device_driver *swdd = _swrast_GetDeviceDriverReference( ctx );
-
swdd->SetBuffer = tdfxDDSetBuffer;
-
-#if 0
- if ( VISUAL_EQUALS_RGBA(ctx->Visual, 5, 6, 5, 0) )
- {
- /* 16bpp mode */
- swdd->WriteRGBASpan = tdfxWriteRGBASpan_RGB565;
- swdd->WriteRGBSpan = tdfxWriteRGBSpan_RGB565;
- swdd->WriteMonoRGBASpan = tdfxWriteMonoRGBASpan_RGB565;
- swdd->WriteRGBAPixels = tdfxWriteRGBAPixels_RGB565;
- swdd->WriteMonoRGBAPixels = tdfxWriteMonoRGBAPixels_RGB565;
- swdd->ReadRGBASpan = tdfxReadRGBASpan_RGB565;
- swdd->ReadRGBAPixels = tdfxReadRGBAPixels_RGB565;
- }
- else if ( VISUAL_EQUALS_RGBA(ctx->Visual, 8, 8, 8, 0) )
- {
- /* 24bpp mode */
- swdd->WriteRGBASpan = tdfxWriteRGBASpan_RGB888;
- swdd->WriteRGBSpan = tdfxWriteRGBSpan_RGB888;
- swdd->WriteMonoRGBASpan = tdfxWriteMonoRGBASpan_RGB888;
- swdd->WriteRGBAPixels = tdfxWriteRGBAPixels_RGB888;
- swdd->WriteMonoRGBAPixels = tdfxWriteMonoRGBAPixels_RGB888;
- swdd->ReadRGBASpan = tdfxReadRGBASpan_RGB888;
- swdd->ReadRGBAPixels = tdfxReadRGBAPixels_RGB888;
- }
- else if ( VISUAL_EQUALS_RGBA(ctx->Visual, 8, 8, 8, 8) )
- {
- /* 32bpp mode */
- swdd->WriteRGBASpan = tdfxWriteRGBASpan_ARGB8888;
- swdd->WriteRGBSpan = tdfxWriteRGBSpan_ARGB8888;
- swdd->WriteMonoRGBASpan = tdfxWriteMonoRGBASpan_ARGB8888;
- swdd->WriteRGBAPixels = tdfxWriteRGBAPixels_ARGB8888;
- swdd->WriteMonoRGBAPixels = tdfxWriteMonoRGBAPixels_ARGB8888;
- swdd->ReadRGBAPixels = tdfxReadRGBAPixels_ARGB8888;
- swdd->ReadRGBASpan = tdfxReadRGBASpan_ARGB8888;
- }
- else
- {
- abort();
- }
-#endif
-
- if ( fxMesa->haveHwStencil ) {
-#if 0
- swdd->WriteStencilSpan = write_stencil_span;
- swdd->ReadStencilSpan = read_stencil_span;
- swdd->WriteStencilPixels = write_stencil_pixels;
- swdd->ReadStencilPixels = read_stencil_pixels;
-#endif
- }
-
-#if 0
- swdd->WriteDepthSpan = tdfxDDWriteDepthSpan;
- swdd->WriteDepthPixels = tdfxDDWriteDepthPixels;
- swdd->ReadDepthSpan = tdfxDDReadDepthSpan;
- swdd->ReadDepthPixels = tdfxDDReadDepthPixels;
-#endif
- swdd->WriteCI8Span = NULL;
- swdd->WriteCI32Span = NULL;
- swdd->WriteMonoCISpan = NULL;
- swdd->WriteCI32Pixels = NULL;
- swdd->WriteMonoCIPixels = NULL;
- swdd->ReadCI32Span = NULL;
- swdd->ReadCI32Pixels = NULL;
-
swdd->SpanRenderStart = tdfxSpanRenderStart;
swdd->SpanRenderFinish = tdfxSpanRenderFinish;
}