mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 11:00:27 +01:00
fix qs->next tests
This commit is contained in:
parent
e4eb97318c
commit
c8cc1e86f6
11 changed files with 13 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue