diff options
author | José Fonseca <[email protected]> | 2008-02-19 13:41:38 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-02-19 14:06:11 +0900 |
commit | b0eef0dc2557febea7d425fee1f9c2da382898a6 (patch) | |
tree | 9473c6d0ed76815f13078e6adadac401f69725be /src/gallium/auxiliary/draw/draw_vf_sse.c | |
parent | 90b2beb661f630966788a6e909dc759c99e38973 (diff) |
Add run-time cpu capabilities detection stubs.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vf_sse.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_vf_sse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vf_sse.c b/src/gallium/auxiliary/draw/draw_vf_sse.c index 1e889deeea8..6076f9849d0 100644 --- a/src/gallium/auxiliary/draw/draw_vf_sse.c +++ b/src/gallium/auxiliary/draw/draw_vf_sse.c @@ -35,8 +35,8 @@ #if defined(USE_SSE_ASM) +#include "rtasm/rtasm_cpu.h" #include "rtasm/rtasm_x86sse.h" -#include "x86/common_x86_asm.h" #define X 0 @@ -576,7 +576,7 @@ void draw_vf_generate_sse_emit( struct draw_vertex_fetch *vf ) { struct x86_program p; - if (!cpu_has_xmm) { + if (!rtasm_cpu_has_sse()) { vf->codegen_emit = NULL; return; } @@ -586,7 +586,7 @@ void draw_vf_generate_sse_emit( struct draw_vertex_fetch *vf ) p.vf = vf; p.inputs_safe = 0; /* for now */ p.outputs_safe = 1; /* for now */ - p.have_sse2 = cpu_has_xmm2; + p.have_sse2 = rtasm_cpu_has_sse2(); p.identity = x86_make_reg(file_XMM, 6); p.chan0 = x86_make_reg(file_XMM, 7); |