diff options
author | michal <michal@michal-laptop.(none)> | 2007-10-27 18:53:38 +0100 |
---|---|---|
committer | michal <michal@michal-laptop.(none)> | 2007-10-27 19:04:20 +0100 |
commit | f93b9dc09a8f9289d7bd5c0f99c935f28016691e (patch) | |
tree | 0df34e15a9b10d76ca43517c7cdc18157651914c | |
parent | a846d7d0273e879371b69f1bbcb8a6698a24a903 (diff) |
Use FREE instead of free. Fix newlines.
-rw-r--r-- | src/mesa/pipe/p_util.h | 2 | ||||
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_alpha_test.c | 6 | ||||
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_blend.c | 6 | ||||
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_bufloop.c | 6 | ||||
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_colormask.c | 6 | ||||
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_coverage.c | 6 | ||||
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_depth_test.c | 6 | ||||
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_fs.c | 6 | ||||
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_occlusion.c | 6 | ||||
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_output.c | 6 | ||||
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_stencil.c | 6 | ||||
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_stipple.c | 6 |
12 files changed, 37 insertions, 31 deletions
diff --git a/src/mesa/pipe/p_util.h b/src/mesa/pipe/p_util.h index 436bda2139..319bb790ae 100644 --- a/src/mesa/pipe/p_util.h +++ b/src/mesa/pipe/p_util.h @@ -32,6 +32,8 @@ #define CALLOC_STRUCT(T) (struct T *) calloc(1, sizeof(struct T)) +#define FREE( PTR ) free( PTR ) + #define CLAMP( X, MIN, MAX ) ( (X)<(MIN) ? (MIN) : ((X)>(MAX) ? (MAX) : (X)) ) #define MIN2( A, B ) ( (A)<(B) ? (A) : (B) ) #define MAX2( A, B ) ( (A)>(B) ? (A) : (B) ) diff --git a/src/mesa/pipe/softpipe/sp_quad_alpha_test.c b/src/mesa/pipe/softpipe/sp_quad_alpha_test.c index d9b914d896..6a9cf29e47 100644 --- a/src/mesa/pipe/softpipe/sp_quad_alpha_test.c +++ b/src/mesa/pipe/softpipe/sp_quad_alpha_test.c @@ -88,9 +88,9 @@ static void alpha_test_begin(struct quad_stage *qs) } -static void alpha_test_destroy(struct quad_stage *qs)
-{
- free( qs );
+static void alpha_test_destroy(struct quad_stage *qs) +{ + FREE( qs ); } diff --git a/src/mesa/pipe/softpipe/sp_quad_blend.c b/src/mesa/pipe/softpipe/sp_quad_blend.c index cecf8af29b..696e252af1 100644 --- a/src/mesa/pipe/softpipe/sp_quad_blend.c +++ b/src/mesa/pipe/softpipe/sp_quad_blend.c @@ -727,9 +727,9 @@ static void blend_begin(struct quad_stage *qs) } -static void blend_destroy(struct quad_stage *qs)
-{
- free( qs );
+static void blend_destroy(struct quad_stage *qs) +{ + FREE( qs ); } diff --git a/src/mesa/pipe/softpipe/sp_quad_bufloop.c b/src/mesa/pipe/softpipe/sp_quad_bufloop.c index bdf491d4b1..aac70e2b04 100644 --- a/src/mesa/pipe/softpipe/sp_quad_bufloop.c +++ b/src/mesa/pipe/softpipe/sp_quad_bufloop.c @@ -50,9 +50,9 @@ static void cbuf_loop_begin(struct quad_stage *qs) } -static void cbuf_loop_destroy(struct quad_stage *qs)
-{
- free( qs );
+static void cbuf_loop_destroy(struct quad_stage *qs) +{ + FREE( qs ); } diff --git a/src/mesa/pipe/softpipe/sp_quad_colormask.c b/src/mesa/pipe/softpipe/sp_quad_colormask.c index f0aa657e95..c585aa3edd 100644 --- a/src/mesa/pipe/softpipe/sp_quad_colormask.c +++ b/src/mesa/pipe/softpipe/sp_quad_colormask.c @@ -90,9 +90,9 @@ static void colormask_begin(struct quad_stage *qs) } -static void colormask_destroy(struct quad_stage *qs)
-{
- free( qs );
+static void colormask_destroy(struct quad_stage *qs) +{ + FREE( qs ); } diff --git a/src/mesa/pipe/softpipe/sp_quad_coverage.c b/src/mesa/pipe/softpipe/sp_quad_coverage.c index 25e7b033b9..9dfad7c580 100644 --- a/src/mesa/pipe/softpipe/sp_quad_coverage.c +++ b/src/mesa/pipe/softpipe/sp_quad_coverage.c @@ -69,9 +69,9 @@ static void coverage_begin(struct quad_stage *qs) } -static void coverage_destroy(struct quad_stage *qs)
-{
- free( qs );
+static void coverage_destroy(struct quad_stage *qs) +{ + FREE( qs ); } diff --git a/src/mesa/pipe/softpipe/sp_quad_depth_test.c b/src/mesa/pipe/softpipe/sp_quad_depth_test.c index c24232bf1e..9cb01d7b2f 100644 --- a/src/mesa/pipe/softpipe/sp_quad_depth_test.c +++ b/src/mesa/pipe/softpipe/sp_quad_depth_test.c @@ -231,9 +231,9 @@ static void depth_test_begin(struct quad_stage *qs) } -static void depth_test_destroy(struct quad_stage *qs)
-{
- free( qs );
+static void depth_test_destroy(struct quad_stage *qs) +{ + FREE( qs ); } diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c index 43c4d58ac6..81e405d3db 100644 --- a/src/mesa/pipe/softpipe/sp_quad_fs.c +++ b/src/mesa/pipe/softpipe/sp_quad_fs.c @@ -198,7 +198,11 @@ static void shade_begin(struct quad_stage *qs) static void shade_destroy(struct quad_stage *qs) { - free( qs ); + struct quad_shade_stage *qss = (struct quad_shade_stage *) qs; + + FREE( qss->inputs ); + FREE( qss->outputs ); + FREE( qs ); } diff --git a/src/mesa/pipe/softpipe/sp_quad_occlusion.c b/src/mesa/pipe/softpipe/sp_quad_occlusion.c index 18a36e8286..028d30c92f 100644 --- a/src/mesa/pipe/softpipe/sp_quad_occlusion.c +++ b/src/mesa/pipe/softpipe/sp_quad_occlusion.c @@ -64,9 +64,9 @@ static void occlusion_begin(struct quad_stage *qs) } -static void occlusion_destroy(struct quad_stage *qs)
-{
- free( qs );
+static void occlusion_destroy(struct quad_stage *qs) +{ + FREE( qs ); } diff --git a/src/mesa/pipe/softpipe/sp_quad_output.c b/src/mesa/pipe/softpipe/sp_quad_output.c index 09194c14a6..cebfec18f7 100644 --- a/src/mesa/pipe/softpipe/sp_quad_output.c +++ b/src/mesa/pipe/softpipe/sp_quad_output.c @@ -70,9 +70,9 @@ static void output_begin(struct quad_stage *qs) } -static void output_destroy(struct quad_stage *qs)
-{
- free( qs );
+static void output_destroy(struct quad_stage *qs) +{ + FREE( qs ); } diff --git a/src/mesa/pipe/softpipe/sp_quad_stencil.c b/src/mesa/pipe/softpipe/sp_quad_stencil.c index 14aa7df279..831ad8bad0 100644 --- a/src/mesa/pipe/softpipe/sp_quad_stencil.c +++ b/src/mesa/pipe/softpipe/sp_quad_stencil.c @@ -323,9 +323,9 @@ static void stencil_begin(struct quad_stage *qs) } -static void stencil_destroy(struct quad_stage *qs)
-{
- free( qs );
+static void stencil_destroy(struct quad_stage *qs) +{ + FREE( qs ); } diff --git a/src/mesa/pipe/softpipe/sp_quad_stipple.c b/src/mesa/pipe/softpipe/sp_quad_stipple.c index 7916dcd0ca..fcbbf00c7d 100644 --- a/src/mesa/pipe/softpipe/sp_quad_stipple.c +++ b/src/mesa/pipe/softpipe/sp_quad_stipple.c @@ -65,9 +65,9 @@ static void stipple_begin(struct quad_stage *qs) } -static void stipple_destroy(struct quad_stage *qs)
-{
- free( qs );
+static void stipple_destroy(struct quad_stage *qs) +{ + FREE( qs ); } |