{ &radeonTransformDeriv, 0 },
{ &radeonTransformTrigScale, 0 }
};
- radeonLocalTransform(c->ctx, c->program, 4, transformations);
+ radeonLocalTransform(c->program, 4, transformations);
} else {
struct radeon_program_transformation transformations[] = {
{ &r300_transform_TEX, c },
{ &radeonTransformALU, 0 },
{ &radeonTransformTrigSimple, 0 }
};
- radeonLocalTransform(c->ctx, c->program, 3, transformations);
+ radeonLocalTransform(c->program, 3, transformations);
}
if (c->debug) {
* one instruction at a time.
*/
void radeonLocalTransform(
- GLcontext *Ctx,
struct gl_program *program,
int num_transformations,
struct radeon_program_transformation* transformations)
struct radeon_transform_context ctx;
int ip;
- ctx.Ctx = Ctx;
ctx.Program = program;
ctx.OldInstructions = program->Instructions;
ctx.OldNumInstructions = program->NumInstructions;
* e.g. finding new temporary registers must use @ref radeonFindFreeTemporary
*/
struct radeon_transform_context {
- GLcontext *Ctx;
struct gl_program *Program;
struct prog_instruction *OldInstructions;
GLuint OldNumInstructions;
};
void radeonLocalTransform(
- GLcontext* ctx,
struct gl_program *program,
int num_transformations,
struct radeon_program_transformation* transformations);