summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2004-10-15 23:46:53 +0000
committerIan Romanick <[email protected]>2004-10-15 23:46:53 +0000
commit12b53f207919bd02506bd3b337ab501ee2c8092b (patch)
tree29a69de93b69c28990599349144688d36b820cd8 /src/mesa/drivers/dri
parentea6786b453dfd5d1acf0dffcbe845c70d69debdc (diff)
Fixed a few places that should have been using GET_SRC_PTR.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/common/spantmp2.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/common/spantmp2.h b/src/mesa/drivers/dri/common/spantmp2.h
index ce0a66de702..01d7fea0c52 100644
--- a/src/mesa/drivers/dri/common/spantmp2.h
+++ b/src/mesa/drivers/dri/common/spantmp2.h
@@ -393,7 +393,7 @@ static void TAG2(ReadRGBASpan,_MMX)( const GLcontext *ctx,
CLIPSPAN(x,y,n,x1,n1,i);
{
- const char * src = (read_buf + x1*4 + y*pitch);
+ const char * src = GET_SRC_PTR( x1, y );
_generic_read_RGBA_span_BGRA8888_REV_MMX( src, rgba[i], n1 );
}
}
@@ -427,7 +427,7 @@ static void TAG2(ReadRGBASpan,_SSE2)( const GLcontext *ctx,
CLIPSPAN(x,y,n,x1,n1,i);
{
- const char * src = (read_buf + x1*4 + y*pitch);
+ const char * src = GET_SRC_PTR( x1, y );
_generic_read_RGBA_span_BGRA8888_REV_SSE2( src, rgba[i], n1 );
}
}
@@ -464,7 +464,7 @@ static void TAG2(ReadRGBASpan,_SSE)( const GLcontext *ctx,
CLIPSPAN(x,y,n,x1,n1,i);
{
- const char * src = (read_buf + x1*4 + y*pitch);
+ const char * src = GET_SRC_PTR( x1, y );
_generic_read_RGBA_span_BGRA8888_REV_SSE( src, rgba[i], n1 );
}
}