gallium: remove unnecessary guards on qs->next
This commit is contained in:
@@ -84,7 +84,6 @@ 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);
|
||||
}
|
||||
|
||||
|
@@ -726,7 +726,6 @@ 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);
|
||||
}
|
||||
|
||||
|
@@ -43,7 +43,6 @@ 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);
|
||||
}
|
||||
|
||||
|
@@ -87,7 +87,6 @@ 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);
|
||||
}
|
||||
|
||||
|
@@ -65,7 +65,6 @@ 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);
|
||||
}
|
||||
|
||||
|
@@ -253,7 +253,6 @@ 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);
|
||||
}
|
||||
|
||||
|
@@ -56,19 +56,15 @@ earlyz_quad(
|
||||
quad->outputs.depth[2] = z0 + dzdy;
|
||||
quad->outputs.depth[3] = z0 + dzdx + dzdy;
|
||||
|
||||
if (qs->next) {
|
||||
qs->next->run( qs->next, quad );
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
earlyz_begin(
|
||||
struct quad_stage *qs )
|
||||
{
|
||||
if (qs->next) {
|
||||
qs->next->begin( qs->next );
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
earlyz_destroy(
|
||||
|
@@ -304,7 +304,6 @@ static void shade_begin(struct quad_stage *qs)
|
||||
}
|
||||
}
|
||||
|
||||
if (qs->next)
|
||||
qs->next->begin(qs->next);
|
||||
}
|
||||
|
||||
|
@@ -52,14 +52,12 @@ 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);
|
||||
}
|
||||
|
||||
|
||||
static void occlusion_begin(struct quad_stage *qs)
|
||||
{
|
||||
if (qs->next)
|
||||
qs->next->begin(qs->next);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@@ -334,7 +334,6 @@ 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);
|
||||
}
|
||||
|
||||
|
@@ -60,7 +60,6 @@ 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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user