From cc8f2d559989f516a6896ac137c8a79c7a212fa5 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 1 Sep 2010 01:10:26 +0200 Subject: 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. --- src/mesa/drivers/dri/r300/compiler/radeon_program.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mesa/drivers/dri/r300/compiler/radeon_program.c') 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)) -- cgit v1.2.3