gallium: Introduce PIPE_ARCH_SSE define for SSE support.

Besides meaning x86 and x86-64 architecture, it also depends on SSE2
support enabled on gcc.

This fixes the linux-debug build.
This commit is contained in:
José Fonseca
2008-10-07 14:25:09 +09:00
parent 8e8208d6db
commit 4d7394f892
5 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
#include "draw_vs.h"
#if defined(PIPE_ARCH_X86)
#if defined(PIPE_ARCH_X86) && defined(PIPE_ARCH_SSE)
#include "pipe/p_shader_tokens.h"
+1 -1
View File
@@ -27,7 +27,7 @@
#include "pipe/p_config.h"
#ifdef PIPE_ARCH_X86
#if defined(PIPE_ARCH_X86) && defined(PIPE_ARCH_SSE)
#include "pipe/p_debug.h"
#include "pipe/p_shader_tokens.h"
+1 -1
View File
@@ -39,7 +39,7 @@
#include "pipe/p_config.h"
#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
#if defined(PIPE_ARCH_SSE)
#include <xmmintrin.h>
#include <emmintrin.h>
+1 -1
View File
@@ -40,7 +40,7 @@
#include "tgsi/tgsi_sse2.h"
#ifdef PIPE_ARCH_X86
#if defined(PIPE_ARCH_X86) && defined(PIPE_ARCH_SSE)
#include "rtasm/rtasm_x86sse.h"
+8
View File
@@ -85,6 +85,14 @@
#define PIPE_ARCH_X86_64
#endif
#if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
#if defined(PIPE_CC_GCC) && !defined(__SSE2__)
/* #warning SSE2 support requires -msse -msse2 compiler options */
#else
#define PIPE_ARCH_SSE
#endif
#endif
#if 0 /* FIXME */
#define PIPE_ARCH_PPC
#endif