aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2005-01-15 14:35:35 +0000
committerFelix Kuehling <[email protected]>2005-01-15 14:35:35 +0000
commitc478a09a5b44fe0aff4851094a00775bf3f33757 (patch)
treec92952bd7bb13a795fc9d3b8f437b8097fabf3ee /src/mesa/drivers/dri
parentdbb3ec35a7acdc795d8d428f2ac35f6167aab464 (diff)
Use HW_READ_LOCK and HW_READ_UNLOCK in assembler-optimized span read
functions.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/common/spantmp2.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/common/spantmp2.h b/src/mesa/drivers/dri/common/spantmp2.h
index ce48257836d..fa737a9623f 100644
--- a/src/mesa/drivers/dri/common/spantmp2.h
+++ b/src/mesa/drivers/dri/common/spantmp2.h
@@ -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