diff options
author | Zack Rusin <[email protected]> | 2007-09-28 07:33:54 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2007-09-28 09:12:20 -0400 |
commit | 57b5d3605745c96ddc2b6de7d50c93db65ba1257 (patch) | |
tree | e1065a99cfd679a4063981524a705886da0a0b52 /src/mesa/pipe/draw/draw_context.c | |
parent | 6dcfddb8e2ec2bfb6187b912807fa65f28da2c5e (diff) |
Use sse only if GALLIUM_SSE is defined
Diffstat (limited to 'src/mesa/pipe/draw/draw_context.c')
-rw-r--r-- | src/mesa/pipe/draw/draw_context.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c index 5efb173228f..3fb667ab1a9 100644 --- a/src/mesa/pipe/draw/draw_context.c +++ b/src/mesa/pipe/draw/draw_context.c @@ -41,6 +41,12 @@ struct draw_context *draw_create( void ) { struct draw_context *draw = CALLOC_STRUCT( draw_context ); +#if defined(__i386__) || defined(__386__) + draw->use_sse = getenv("GALLIUM_SSE") != NULL; +#else + draw->use_sse = false; +#endif + /* create pipeline stages */ draw->pipeline.unfilled = draw_unfilled_stage( draw ); draw->pipeline.twoside = draw_twoside_stage( draw ); @@ -244,4 +250,9 @@ void draw_free_tmps( struct draw_stage *stage ) } } +boolean draw_use_sse(struct draw_context *draw) +{ + return draw->use_sse; +} + |