Merge branch 'gallium-new-formats'
[mesa.git] / src / gallium / auxiliary / translate / translate.c
index b04bc6eefd7086e1fe3a0c3a480f6ef65aa714de..a9b7253bf449dd6ccf05554e1e26e976b84cafaa 100644 (file)
@@ -30,7 +30,7 @@
   *   Keith Whitwell <keith@tungstengraphics.com>
   */
 
-#include "pipe/p_util.h"
+#include "pipe/p_config.h"
 #include "pipe/p_state.h"
 #include "translate.h"
 
@@ -38,10 +38,12 @@ struct translate *translate_create( const struct translate_key *key )
 {
    struct translate *translate = NULL;
 
-#if defined(__i386__) || defined(__386__) || defined(i386)
+#if defined(PIPE_ARCH_X86)
    translate = translate_sse2_create( key );
    if (translate)
       return translate;
+#else
+   (void)translate;
 #endif
 
    return translate_generic_create( key );