}
-/* specifies the buffer for swrast span rendering/reading */
-static void
-set_buffer( GLcontext *ctx, GLframebuffer *buffer, GLuint bufferBit )
-{
- /* this is a no-op when using the new gl_renderbuffer span functions. */
-}
-
-
/*
* Generate code for span functions.
*/
DST[BCOMP] = SRC[0]; \
DST[ACOMP] = CHAN_MAX
-#include "swrast/s_spantemp2.h"
+#include "swrast/s_spantemp.h"
/* 32-bit BGRA */
DST[BCOMP] = SRC[0]; \
DST[ACOMP] = SRC[3]
-#include "swrast/s_spantemp2.h"
+#include "swrast/s_spantemp.h"
/* 16-bit BGR (XXX implement dithering someday) */
DST[BCOMP] = ( (((SRC[0]) << 3) & 0xf8) | (((SRC[0]) ) & 0x7) ); \
DST[ACOMP] = CHAN_MAX
-#include "swrast/s_spantemp2.h"
+#include "swrast/s_spantemp.h"
/* 15-bit BGR (XXX implement dithering someday) */
DST[BCOMP] = ( (((SRC[0]) << 3) & 0xf8) | (((SRC[0]) ) & 0x7) ); \
DST[ACOMP] = CHAN_MAX
-#include "swrast/s_spantemp2.h"
+#include "swrast/s_spantemp.h"
/* 8-bit color index */
#define FETCH_PIXEL(DST, SRC) \
DST = SRC[0]
-#include "swrast/s_spantemp2.h"
+#include "swrast/s_spantemp.h"
_swsetup_CreateContext( glctx );
_swsetup_Wakeup( glctx );
- /* swrast init */
- {
- struct swrast_device_driver *swdd;
- swdd = _swrast_GetDeviceDriverReference( glctx );
- swdd->SetBuffer = set_buffer;
-
- /* no longer used */
- swdd->WriteRGBASpan = NULL;
- swdd->WriteRGBSpan = NULL;
- swdd->WriteMonoRGBASpan = NULL;
- swdd->WriteRGBAPixels = NULL;
- swdd->WriteMonoRGBAPixels = NULL;
- swdd->ReadRGBASpan = NULL;
- swdd->ReadRGBAPixels = NULL;
- }
-
/* use default TCL pipeline */
{
TNLcontext *tnl = TNL_CONTEXT(glctx);