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;
if ( get_msc_rate == NULL ) {
- get_msc_rate = (PFNGLXGETMSCRATEOMLPROC)
+ get_msc_rate = (glXGetMscRateOML_t)
glXGetProcAddress( (const GLubyte *) "glXGetMscRateOML" );
}
}
return usage;
+#else
+ return 0;
+#endif
}
/*@}*/
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_ */
swdd->ReadDepthPixels = mach64ReadDepthPixels_16;
swdd->WriteDepthPixels = mach64WriteDepthPixels_16;
#endif
+#if 0
/* No hardware stencil buffer */
swdd->ReadStencilSpan = NULL;
swdd->WriteStencilSpan = NULL;
swdd->WriteMonoCIPixels = NULL;
swdd->ReadCI32Span = NULL;
swdd->ReadCI32Pixels = NULL;
+#endif
swdd->SpanRenderStart = mach64SpanRenderStart;
swdd->SpanRenderFinish = mach64SpanRenderFinish;
}
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;
}
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.
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;
}