summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_blitter.c
diff options
context:
space:
mode:
authorThomas H.P. Andersen <phomes@gmail.com>2021-08-02 23:39:27 +0200
committerMarge Bot <emma+marge@anholt.net>2022-01-10 22:53:32 +0000
commit7daba1fe6544309b02d09e0710a9159049fb8cfa (patch)
tree5a2d3acec15c4dccdb6a2c468363d73519a606ec /src/gallium/auxiliary/util/u_blitter.c
parent60c711833ff5302d7085521db8115b59f53cedf6 (diff)
replace 0 with NULL for NULL pointers
This updates many places where 0 is used as NULL pointer. There are a few warnings left when I build the default configuration but they either relate to code outside of mesa or where "None" is used instead. Found with static analysis (smatch) Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12174>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.c')
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 3eae80e9d8b..593f8951a13 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -2369,7 +2369,7 @@ void util_blitter_clear_render_target(struct blitter_context *blitter,
fb_state.height = dstsurf->height;
fb_state.nr_cbufs = 1;
fb_state.cbufs[0] = dstsurf;
- fb_state.zsbuf = 0;
+ fb_state.zsbuf = NULL;
pipe->set_framebuffer_state(pipe, &fb_state);
pipe->set_sample_mask(pipe, ~0);
if (pipe->set_min_samples)
@@ -2453,7 +2453,7 @@ void util_blitter_clear_depth_stencil(struct blitter_context *blitter,
fb_state.width = dstsurf->width;
fb_state.height = dstsurf->height;
fb_state.nr_cbufs = 0;
- fb_state.cbufs[0] = 0;
+ fb_state.cbufs[0] = NULL;
fb_state.zsbuf = dstsurf;
pipe->set_framebuffer_state(pipe, &fb_state);
pipe->set_sample_mask(pipe, ~0);
@@ -2780,7 +2780,7 @@ void util_blitter_custom_color(struct blitter_context *blitter,
fb_state.height = dstsurf->height;
fb_state.nr_cbufs = 1;
fb_state.cbufs[0] = dstsurf;
- fb_state.zsbuf = 0;
+ fb_state.zsbuf = NULL;
pipe->set_framebuffer_state(pipe, &fb_state);
pipe->set_sample_mask(pipe, ~0);
if (pipe->set_min_samples)