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