From b05c26f54b2c0767d6f6b7301273df7ae22b75ab Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 11 Mar 2025 15:38:19 -0400 Subject: [PATCH] iris: Initialize pointer with NULL, not false Reported by clang's `-Wbool-conversion`. Reviewed-by: Caio Oliveira Part-of: --- src/gallium/drivers/iris/iris_clear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_clear.c b/src/gallium/drivers/iris/iris_clear.c index d390aed9ade..27b97f4c68c 100644 --- a/src/gallium/drivers/iris/iris_clear.c +++ b/src/gallium/drivers/iris/iris_clear.c @@ -649,7 +649,7 @@ clear_depth_stencil(struct iris_context *ice, fast_clear_depth(ice, z_res, level, box, depth); iris_dirty_for_history(ice, res); clear_depth = false; - z_res = false; + z_res = NULL; } /* At this point, we might have fast cleared the depth buffer. So if there's