radeonCompilerDump(&compiler.compiler);
}
- if (!r500FragmentProgramEmit(&compiler))
- fp->error = GL_TRUE;
+ fp->translated = r500FragmentProgramEmit(&compiler);
radeonCompilerCleanup(&compiler.compiler);
r300UpdateStateParameters(r300->radeon.glCtx, _NEW_PROGRAM);
- fp->translated = GL_TRUE;
if (RADEON_DEBUG & DEBUG_PIXEL) {
fprintf(stderr, "Mesa program:\n");
fprintf(stderr, "-------------\n");
_mesa_print_program(&fp->mesa_program.Base);
fflush(stdout);
- dump_program(&fp->code);
+ if (fp->translated)
+ dump_program(&fp->code);
}
}
fpi = clause->Instructions + ip;
counter = do_inst(cs, fpi, counter);
- if (cs->compiler->fp->error == GL_TRUE)
+ if (cs->compiler->fp->error)
return GL_FALSE;
}
}