summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/fbdev/glfbdev.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-01 03:04:41 +0000
committerBrian Paul <[email protected]>2005-09-01 03:04:41 +0000
commitc958a9798a83e4c1924d939e3e5b5d490096066b (patch)
treed98fc6fc8321ba7ad233a40045a876035543501b /src/mesa/drivers/fbdev/glfbdev.c
parent26bb5239c8ee2b469ca09c8fab91d92b37be0f00 (diff)
remove old set_buffer routine and misc code
Diffstat (limited to 'src/mesa/drivers/fbdev/glfbdev.c')
-rw-r--r--src/mesa/drivers/fbdev/glfbdev.c34
1 files changed, 5 insertions, 29 deletions
diff --git a/src/mesa/drivers/fbdev/glfbdev.c b/src/mesa/drivers/fbdev/glfbdev.c
index c8d9375b624..7f66c46fd90 100644
--- a/src/mesa/drivers/fbdev/glfbdev.c
+++ b/src/mesa/drivers/fbdev/glfbdev.c
@@ -164,14 +164,6 @@ viewport(GLcontext *ctx, GLint x, GLint y, GLsizei w, GLsizei h)
}
-/* 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.
*/
@@ -194,7 +186,7 @@ set_buffer( GLcontext *ctx, GLframebuffer *buffer, GLuint bufferBit )
DST[BCOMP] = SRC[0]; \
DST[ACOMP] = CHAN_MAX
-#include "swrast/s_spantemp2.h"
+#include "swrast/s_spantemp.h"
/* 32-bit BGRA */
@@ -216,7 +208,7 @@ set_buffer( GLcontext *ctx, GLframebuffer *buffer, GLuint bufferBit )
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) */
@@ -235,7 +227,7 @@ set_buffer( GLcontext *ctx, GLframebuffer *buffer, GLuint bufferBit )
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) */
@@ -254,7 +246,7 @@ set_buffer( GLcontext *ctx, GLframebuffer *buffer, GLuint bufferBit )
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 */
@@ -270,7 +262,7 @@ set_buffer( GLcontext *ctx, GLframebuffer *buffer, GLuint bufferBit )
#define FETCH_PIXEL(DST, SRC) \
DST = SRC[0]
-#include "swrast/s_spantemp2.h"
+#include "swrast/s_spantemp.h"
@@ -767,22 +759,6 @@ glFBDevCreateContext( const GLFBDevVisualPtr visual, GLFBDevContextPtr share )
_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);