Use sse only if GALLIUM_SSE is defined
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
|
||||
#include "pipe/p_context.h"
|
||||
#include "pipe/p_defines.h"
|
||||
#include "pipe/draw/draw_context.h"
|
||||
#include "pipe/tgsi/mesa/mesa_to_tgsi.h"
|
||||
#include "pipe/tgsi/exec/tgsi_core.h"
|
||||
|
||||
@@ -391,11 +392,13 @@ st_translate_fragment_program(struct st_context *st,
|
||||
tgsi_dump( tokensOut, 0/*TGSI_DUMP_VERBOSE*/ );
|
||||
|
||||
#if defined(__i386__) || defined(__386__)
|
||||
if (stfp->sse2_program.csr == stfp->sse2_program.store)
|
||||
tgsi_emit_sse2_fs( tokensOut, &stfp->sse2_program );
|
||||
if (draw_use_sse(st->draw)) {
|
||||
if (stfp->sse2_program.csr == stfp->sse2_program.store)
|
||||
tgsi_emit_sse2_fs( tokensOut, &stfp->sse2_program );
|
||||
|
||||
if (!cso->state.executable)
|
||||
((struct cso_fragment_shader*)cso)->state.executable = (void *) x86_get_func( &stfp->sse2_program );
|
||||
if (!cso->state.executable)
|
||||
((struct cso_fragment_shader*)cso)->state.executable = (void *) x86_get_func( &stfp->sse2_program );
|
||||
}
|
||||
#endif
|
||||
|
||||
return cso;
|
||||
|
Reference in New Issue
Block a user