Use HW_READ_LOCK and HW_READ_UNLOCK in assembler-optimized span read
authorFelix Kuehling <fxkuehl@gmx.de>
Sat, 15 Jan 2005 14:35:35 +0000 (14:35 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Sat, 15 Jan 2005 14:35:35 +0000 (14:35 +0000)
functions.

src/mesa/drivers/dri/common/spantmp2.h

index ce48257836dffff088d6954173db2e5d4e41234e..fa737a9623f0d032a7303a1b0df68d6ca6c1642e 100644 (file)
@@ -392,7 +392,7 @@ static void TAG2(ReadRGBASpan,_MMX)( const GLcontext *ctx,
    __asm__ __volatile__( "emms" );
 #endif
 
-   HW_LOCK()
+   HW_READ_LOCK()
      {
        GLint x1,n1;
        LOCAL_VARS;
@@ -418,7 +418,7 @@ static void TAG2(ReadRGBASpan,_MMX)( const GLcontext *ctx,
          }
        HW_ENDCLIPLOOP();
      }
-   HW_UNLOCK();
+   HW_READ_UNLOCK();
 #ifndef USE_INNER_EMMS
    __asm__ __volatile__( "emms" );
 #endif
@@ -433,7 +433,7 @@ static void TAG2(ReadRGBASpan,_SSE2)( const GLcontext *ctx,
                               GLuint n, GLint x, GLint y,
                               GLubyte rgba[][4])
 {
-   HW_LOCK()
+   HW_READ_LOCK()
      {
        GLint x1,n1;
        LOCAL_VARS;
@@ -454,7 +454,7 @@ static void TAG2(ReadRGBASpan,_SSE2)( const GLcontext *ctx,
          }
        HW_ENDCLIPLOOP();
      }
-   HW_UNLOCK();
+   HW_READ_UNLOCK();
 }
 #endif
 
@@ -472,7 +472,7 @@ static void TAG2(ReadRGBASpan,_SSE)( const GLcontext *ctx,
    __asm__ __volatile__( "emms" );
 #endif
 
-   HW_LOCK()
+   HW_READ_LOCK()
      {
        GLint x1,n1;
        LOCAL_VARS;
@@ -493,7 +493,7 @@ static void TAG2(ReadRGBASpan,_SSE)( const GLcontext *ctx,
          }
        HW_ENDCLIPLOOP();
      }
-   HW_UNLOCK();
+   HW_READ_UNLOCK();
 #ifndef USE_INNER_EMMS
    __asm__ __volatile__( "emms" );
 #endif