summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_alpha_test.c3
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_blend.c3
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_bufloop.c3
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_colormask.c3
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_coverage.c3
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_depth_test.c3
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_earlyz.c8
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_fs.c3
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_occlusion.c6
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_output.c3
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_stencil.c3
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_stipple.c3
12 files changed, 14 insertions, 30 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_alpha_test.c b/src/mesa/pipe/softpipe/sp_quad_alpha_test.c
index 7b56bceba2d..d056abe98d9 100644
--- a/src/mesa/pipe/softpipe/sp_quad_alpha_test.c
+++ b/src/mesa/pipe/softpipe/sp_quad_alpha_test.c
@@ -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);
}
diff --git a/src/mesa/pipe/softpipe/sp_quad_blend.c b/src/mesa/pipe/softpipe/sp_quad_blend.c
index 1843e206842..17f3ecd0b83 100644
--- a/src/mesa/pipe/softpipe/sp_quad_blend.c
+++ b/src/mesa/pipe/softpipe/sp_quad_blend.c
@@ -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);
}
diff --git a/src/mesa/pipe/softpipe/sp_quad_bufloop.c b/src/mesa/pipe/softpipe/sp_quad_bufloop.c
index e704b4043cf..2ae4e22a7de 100644
--- a/src/mesa/pipe/softpipe/sp_quad_bufloop.c
+++ b/src/mesa/pipe/softpipe/sp_quad_bufloop.c
@@ -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);
}
diff --git a/src/mesa/pipe/softpipe/sp_quad_colormask.c b/src/mesa/pipe/softpipe/sp_quad_colormask.c
index 867cc0725a2..1f09d900ca8 100644
--- a/src/mesa/pipe/softpipe/sp_quad_colormask.c
+++ b/src/mesa/pipe/softpipe/sp_quad_colormask.c
@@ -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);
}
diff --git a/src/mesa/pipe/softpipe/sp_quad_coverage.c b/src/mesa/pipe/softpipe/sp_quad_coverage.c
index cca2b9f79b7..b3d3fae22fd 100644
--- a/src/mesa/pipe/softpipe/sp_quad_coverage.c
+++ b/src/mesa/pipe/softpipe/sp_quad_coverage.c
@@ -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);
}
diff --git a/src/mesa/pipe/softpipe/sp_quad_depth_test.c b/src/mesa/pipe/softpipe/sp_quad_depth_test.c
index 93ea1196f99..1b8a2960af8 100644
--- a/src/mesa/pipe/softpipe/sp_quad_depth_test.c
+++ b/src/mesa/pipe/softpipe/sp_quad_depth_test.c
@@ -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);
}
diff --git a/src/mesa/pipe/softpipe/sp_quad_earlyz.c b/src/mesa/pipe/softpipe/sp_quad_earlyz.c
index 89fab2dd359..3abd1f1fb98 100644
--- a/src/mesa/pipe/softpipe/sp_quad_earlyz.c
+++ b/src/mesa/pipe/softpipe/sp_quad_earlyz.c
@@ -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
diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c
index 1aba54d12aa..75576a9bde8 100644
--- a/src/mesa/pipe/softpipe/sp_quad_fs.c
+++ b/src/mesa/pipe/softpipe/sp_quad_fs.c
@@ -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);
}
diff --git a/src/mesa/pipe/softpipe/sp_quad_occlusion.c b/src/mesa/pipe/softpipe/sp_quad_occlusion.c
index 028d30c92f5..d65fdbdab72 100644
--- a/src/mesa/pipe/softpipe/sp_quad_occlusion.c
+++ b/src/mesa/pipe/softpipe/sp_quad_occlusion.c
@@ -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);
}
diff --git a/src/mesa/pipe/softpipe/sp_quad_output.c b/src/mesa/pipe/softpipe/sp_quad_output.c
index bfd7baa9466..cfe8f118081 100644
--- a/src/mesa/pipe/softpipe/sp_quad_output.c
+++ b/src/mesa/pipe/softpipe/sp_quad_output.c
@@ -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);
}
diff --git a/src/mesa/pipe/softpipe/sp_quad_stencil.c b/src/mesa/pipe/softpipe/sp_quad_stencil.c
index b8c199204df..3f3eca078b0 100644
--- a/src/mesa/pipe/softpipe/sp_quad_stencil.c
+++ b/src/mesa/pipe/softpipe/sp_quad_stencil.c
@@ -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);
}
diff --git a/src/mesa/pipe/softpipe/sp_quad_stipple.c b/src/mesa/pipe/softpipe/sp_quad_stipple.c
index fcbbf00c7db..04d95989c40 100644
--- a/src/mesa/pipe/softpipe/sp_quad_stipple.c
+++ b/src/mesa/pipe/softpipe/sp_quad_stipple.c
@@ -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);
}