mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
gallium: remove unnecessary guards on qs->next
This commit is contained in:
parent
e53303ba3b
commit
7c306afdaa
12 changed files with 14 additions and 30 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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,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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue