diff options
author | Nicolai Hähnle <nhaehnle@gmail.com> | 2009-07-29 19:41:07 +0200 |
---|---|---|
committer | Nicolai Hähnle <nhaehnle@gmail.com> | 2009-07-29 21:15:00 +0200 |
commit | d3a1fc62f47f1a7f4422585c8c60bf8dcb0dfe4b (patch) | |
tree | 28087828d46ec6400353308e94330e51a23a9280 /src/mesa/drivers/dri/r300/compiler | |
parent | 88ebf514a41ae460dad08a4585a61541864a4432 (diff) |
r300/compiler: Adapt AllocateHwInputs interface to common usage pattern
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler')
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/radeon_compiler.h | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/radeon_program_pair.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h index 5bdc075447..e63ab8840a 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h +++ b/src/mesa/drivers/dri/r300/compiler/radeon_compiler.h @@ -86,7 +86,7 @@ struct r300_fragment_program_compiler { void * UserData; void (*AllocateHwInputs)( - void * yourdata, + struct r300_fragment_program_compiler * c, void (*allocate)(void * data, unsigned input, unsigned hwreg), void * mydata); }; diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_program_pair.c b/src/mesa/drivers/dri/r300/compiler/radeon_program_pair.c index 8cf1f1aaac..48616ac461 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_program_pair.c +++ b/src/mesa/drivers/dri/r300/compiler/radeon_program_pair.c @@ -848,7 +848,7 @@ void radeonPairProgram( _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)) { |