diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-09-01 01:10:26 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-09-04 18:56:21 +0200 |
commit | cc8f2d559989f516a6896ac137c8a79c7a212fa5 (patch) | |
tree | b4b079a755de9715de6ab463a50eaea1a60166d2 /src/mesa/drivers/dri/r300/compiler/radeon_program.c | |
parent | 56de72c78afdb14d842a8fabbe2613a4d5eebb8f (diff) |
r300/compiler: use null-terminated array of transformation functions
I need to reduce the number of parameters of each compiler pass function.
This is part of a larger cleanup.
Diffstat (limited to 'src/mesa/drivers/dri/r300/compiler/radeon_program.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/compiler/radeon_program.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_program.c b/src/mesa/drivers/dri/r300/compiler/radeon_program.c index a3c41d7bd4..9ab52b64ea 100644 --- a/src/mesa/drivers/dri/r300/compiler/radeon_program.c +++ b/src/mesa/drivers/dri/r300/compiler/radeon_program.c @@ -49,7 +49,6 @@ */ void radeonLocalTransform( struct radeon_compiler * c, - int num_transformations, struct radeon_program_transformation* transformations) { struct rc_instruction * inst = c->Program.Instructions.Next; @@ -60,7 +59,7 @@ void radeonLocalTransform( inst = inst->Next; - for(i = 0; i < num_transformations; ++i) { + for(i = 0; transformations[i].function; ++i) { struct radeon_program_transformation* t = transformations + i; if (t->function(c, current, t->userData)) |