void * UserData;
void (*AllocateHwInputs)(
- void * yourdata,
+ struct r300_fragment_program_compiler * c,
void (*allocate)(void * data, unsigned input, unsigned hwreg),
void * mydata);
};
_mesa_printf("Emit paired program\n");
scan_instructions(&s);
- s.Compiler->AllocateHwInputs(s.Compiler->UserData, &alloc_helper, &s);
+ s.Compiler->AllocateHwInputs(s.Compiler, &alloc_helper, &s);
while(!s.Compiler->Base.Error &&
(s.ReadyTEX || s.ReadyRGB || s.ReadyAlpha || s.ReadyFullALU)) {
* @note This allocation is performed explicitly, because the order of inputs
* is determined by the RS hardware.
*/
-static void allocate_hw_inputs(void * yourdata, void (*allocate)(void * data, unsigned input, unsigned hwreg), void * mydata)
+static void allocate_hw_inputs(
+ struct r300_fragment_program_compiler * c,
+ void (*allocate)(void * data, unsigned input, unsigned hwreg),
+ void * mydata)
{
- struct r300_fragment_program_compiler * c = yourdata;
GLuint InputsRead = c->Base.Program.InputsRead;
int i;
GLuint hwindex = 0;
compiler.OutputDepth = FRAG_RESULT_DEPTH;
compiler.OutputColor = FRAG_RESULT_COLOR;
compiler.AllocateHwInputs = &allocate_hw_inputs;
- compiler.UserData = &compiler;
if (compiler.Base.Debug) {
fflush(stdout);