Fixed a few places that should have been using GET_SRC_PTR.
authorIan Romanick <idr@us.ibm.com>
Fri, 15 Oct 2004 23:46:53 +0000 (23:46 +0000)
committerIan Romanick <idr@us.ibm.com>
Fri, 15 Oct 2004 23:46:53 +0000 (23:46 +0000)
src/mesa/drivers/dri/common/spantmp2.h

index ce0a66de70211dabbef3d04bb5f314d11add21a4..01d7fea0c528cd8cd9d67cf113614c6d187c2a6c 100644 (file)
@@ -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 );
               }
          }