This makes the driver build on x86-64 again.
#include "via_tex.h"
+#if defined( USE_SSE_ASM )
#define SSE_PREFETCH " prefetchnta "
#define FENCE __asm__ __volatile__ ("sfence":::"memory");
FENCE;
}
-
-
+#endif /* defined( USE_SSE_ASM ) */
functions->DeleteTexture = _mesa_delete_texture_object;
functions->FreeTexImageData = viaFreeTextureImageData;
+#if defined( USE_SSE_ASM )
if (getenv("VIA_NO_SSE"))
functions->TextureMemCpy = _mesa_memcpy;
else
functions->TextureMemCpy = via_sse_memcpy;
+#else
+ functions->TextureMemCpy = _mesa_memcpy;
+#endif
functions->UpdateTexturePalette = 0;
functions->IsTextureResident = viaIsTextureResident;
void viaInitTextureFuncs(struct dd_function_table * functions);
GLboolean viaSwapOutWork( struct via_context *vmesa );
+#if defined( USE_SSE_ASM )
void via_sse_memcpy( void *to, const void *from, size_t sz );
+#endif /* defined( USE_SSE_ASM ) */
#endif
vb += vertsize; \
} while (0)
#else
-#if 1
+#if defined( USE_X86_ASM )
#define COPY_DWORDS(vb, vertsize, v) \
do { \
int j; \