fix qs->next tests

This commit is contained in:
Brian 2007-08-08 12:02:18 -06:00
parent e4eb97318c
commit c8cc1e86f6
11 changed files with 13 additions and 11 deletions

View file

@ -84,7 +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->begin)
if (qs->next)
qs->next->begin(qs->next);
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -323,9 +323,11 @@ static void shade_begin(struct quad_stage *qs)
qss->samplers[i].get_sample = sp_get_sample;
qss->samplers[i].pipe = &softpipe->pipe;
/* init cache info here */
qss->samplers[i].cache_x =
qss->samplers[i].cache_y = -1;
}
if (qs->next->begin)
if (qs->next)
qs->next->begin(qs->next);
}

View file

@ -58,7 +58,7 @@ occlusion_count_quad(struct quad_stage *qs, struct quad_header *quad)
static void occlusion_begin(struct quad_stage *qs)
{
if (qs->next->begin)
if (qs->next)
qs->next->begin(qs->next);
}

View file

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

View file

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

View file

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