summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-16 10:54:01 -0700
committerBrian Paul <[email protected]>2012-01-24 14:12:05 -0700
commit64be85540f30e904784c6a72f2ba2784d5ccb36d (patch)
tree84d5974a2eaa3d3acdd14c1c844b5cb0fc4427ed /src/mesa/swrast
parent34c353ce463960afdf64fa2be1f155b8b7f6c70c (diff)
swrast: remove unused _swrast_put_row()
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_span.c35
-rw-r--r--src/mesa/swrast/s_span.h5
2 files changed, 0 insertions, 40 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index 8d9f10d9bce..f91b6c25e53 100644
--- a/src/mesa/swrast/s_span.c
+++ b/src/mesa/swrast/s_span.c
@@ -1437,41 +1437,6 @@ _swrast_get_values(struct gl_context *ctx, struct gl_renderbuffer *rb,
/**
- * Wrapper for gl_renderbuffer::PutRow() which does clipping.
- * \param valueSize size of each value (pixel) in bytes
- */
-void
-_swrast_put_row(struct gl_context *ctx, struct gl_renderbuffer *rb,
- GLuint count, GLint x, GLint y,
- const GLvoid *values, GLuint valueSize)
-{
- GLint skip = 0;
-
- if (y < 0 || y >= (GLint) rb->Height)
- return; /* above or below */
-
- if (x + (GLint) count <= 0 || x >= (GLint) rb->Width)
- return; /* entirely left or right */
-
- if ((GLint) (x + count) > (GLint) rb->Width) {
- /* right clip */
- GLint clip = x + count - rb->Width;
- count -= clip;
- }
-
- if (x < 0) {
- /* left clip */
- skip = -x;
- x = 0;
- count -= skip;
- }
-
- rb->PutRow(ctx, rb, count, x, y,
- (const GLubyte *) values + skip * valueSize, NULL);
-}
-
-
-/**
* Wrapper for gl_renderbuffer::GetRow() which does clipping.
* \param valueSize size of each value (pixel) in bytes
*/
diff --git a/src/mesa/swrast/s_span.h b/src/mesa/swrast/s_span.h
index f4d32dd8738..e8f76873d8c 100644
--- a/src/mesa/swrast/s_span.h
+++ b/src/mesa/swrast/s_span.h
@@ -209,11 +209,6 @@ _swrast_get_values(struct gl_context *ctx, struct gl_renderbuffer *rb,
void *values, GLuint valueSize);
extern void
-_swrast_put_row(struct gl_context *ctx, struct gl_renderbuffer *rb,
- GLuint count, GLint x, GLint y,
- const GLvoid *values, GLuint valueSize);
-
-extern void
_swrast_get_row(struct gl_context *ctx, struct gl_renderbuffer *rb,
GLuint count, GLint x, GLint y,
GLvoid *values, GLuint valueSize);