/* run shader */
#if defined(__i386__) || defined(__386__)
/* XXX: Generated code effectively unusable until it handles quad->mask */
- if( !quad->mask ) {
+ if( !quad->mask && softpipe->use_sse ) {
codegen_function func = (codegen_function) x86_get_func( &softpipe->fs->sse2_program );
func(
machine->Inputs,
#if defined(__i386__) || defined(__386__)
if (softpipe->use_sse) {
x86_init_func( &state->sse2_program );
-
tgsi_emit_sse2_fs( state->shader.tokens, &state->sse2_program );
}
#endif
void softpipe_delete_fs_state(struct pipe_context *pipe,
void *shader)
{
-#if defined(__i386__) || defined(__386__)
struct sp_fragment_shader_state *state = shader;
+#if defined(__i386__) || defined(__386__)
x86_release_func( &state->sse2_program );
#endif
- free(shader);
+ free( state );
}