gallium: remove unnecessary guards on qs->next

This commit is contained in:
Keith Whitwell
2007-12-10 22:02:04 +00:00
parent e53303ba3b
commit 7c306afdaa
12 changed files with 14 additions and 30 deletions

View File

@@ -84,8 +84,7 @@ alpha_test_quad(struct quad_stage *qs, struct quad_header *quad)
static void alpha_test_begin(struct quad_stage *qs)
{
if (qs->next)
qs->next->begin(qs->next);
qs->next->begin(qs->next);
}

View File

@@ -726,8 +726,7 @@ blend_quad(struct quad_stage *qs, struct quad_header *quad)
static void blend_begin(struct quad_stage *qs)
{
if (qs->next)
qs->next->begin(qs->next);
qs->next->begin(qs->next);
}

View File

@@ -43,8 +43,7 @@ cbuf_loop_quad(struct quad_stage *qs, struct quad_header *quad)
static void cbuf_loop_begin(struct quad_stage *qs)
{
if (qs->next)
qs->next->begin(qs->next);
qs->next->begin(qs->next);
}

View File

@@ -87,8 +87,7 @@ colormask_quad(struct quad_stage *qs, struct quad_header *quad)
static void colormask_begin(struct quad_stage *qs)
{
if (qs->next)
qs->next->begin(qs->next);
qs->next->begin(qs->next);
}

View File

@@ -65,8 +65,7 @@ coverage_quad(struct quad_stage *qs, struct quad_header *quad)
static void coverage_begin(struct quad_stage *qs)
{
if (qs->next)
qs->next->begin(qs->next);
qs->next->begin(qs->next);
}

View File

@@ -253,8 +253,7 @@ depth_test_quad(struct quad_stage *qs, struct quad_header *quad)
static void depth_test_begin(struct quad_stage *qs)
{
if (qs->next)
qs->next->begin(qs->next);
qs->next->begin(qs->next);
}

View File

@@ -56,18 +56,14 @@ earlyz_quad(
quad->outputs.depth[2] = z0 + dzdy;
quad->outputs.depth[3] = z0 + dzdx + dzdy;
if (qs->next) {
qs->next->run( qs->next, quad );
}
qs->next->run( qs->next, quad );
}
static void
earlyz_begin(
struct quad_stage *qs )
{
if (qs->next) {
qs->next->begin( qs->next );
}
qs->next->begin( qs->next );
}
static void

View File

@@ -304,8 +304,7 @@ static void shade_begin(struct quad_stage *qs)
}
}
if (qs->next)
qs->next->begin(qs->next);
qs->next->begin(qs->next);
}

View File

@@ -52,15 +52,13 @@ occlusion_count_quad(struct quad_stage *qs, struct quad_header *quad)
occ->count += (quad->mask >> 2) & 1;
occ->count += (quad->mask >> 3) & 1;
if (quad->mask)
qs->next->run(qs->next, quad);
qs->next->run(qs->next, quad);
}
static void occlusion_begin(struct quad_stage *qs)
{
if (qs->next)
qs->next->begin(qs->next);
qs->next->begin(qs->next);
}

View File

@@ -67,8 +67,7 @@ output_quad(struct quad_stage *qs, struct quad_header *quad)
static void output_begin(struct quad_stage *qs)
{
if (qs->next)
qs->next->begin(qs->next);
assert(qs->next == NULL);
}

View File

@@ -334,8 +334,7 @@ stencil_test_quad(struct quad_stage *qs, struct quad_header *quad)
static void stencil_begin(struct quad_stage *qs)
{
if (qs->next)
qs->next->begin(qs->next);
qs->next->begin(qs->next);
}

View File

@@ -60,8 +60,7 @@ stipple_quad(struct quad_stage *qs, struct quad_header *quad)
static void stipple_begin(struct quad_stage *qs)
{
if (qs->next)
qs->next->begin(qs->next);
qs->next->begin(qs->next);
}