diff options
author | Ian Romanick <idr@us.ibm.com> | 2005-05-24 23:03:15 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2005-05-24 23:03:15 +0000 |
commit | e87ab8c05fb08c39432f5838c05df3b50e9a2694 (patch) | |
tree | f7e7359c8510f9c6210d8bd2dc23ccc824c9c020 /src/mesa/drivers/dri/unichrome/via_memcpy.c | |
parent | 6b5afb003645d2cbaabf7d9c0733f1f7891cb0a0 (diff) |
Only use x86 / SSE assembly when USE_X86_ASM / USE_SSE_ASM are defined.
This makes the driver build on x86-64 again.
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/via_memcpy.c')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/via_memcpy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/unichrome/via_memcpy.c b/src/mesa/drivers/dri/unichrome/via_memcpy.c index 351ba26ff2..d7b05bcaaf 100644 --- a/src/mesa/drivers/dri/unichrome/via_memcpy.c +++ b/src/mesa/drivers/dri/unichrome/via_memcpy.c @@ -26,6 +26,7 @@ #include "via_tex.h" +#if defined( USE_SSE_ASM ) #define SSE_PREFETCH " prefetchnta " #define FENCE __asm__ __volatile__ ("sfence":::"memory"); @@ -134,5 +135,4 @@ void via_sse_memcpy(void *to, FENCE; } - - +#endif /* defined( USE_SSE_ASM ) */ |