From 811bf72f9fd45a08d00e02c89c41a639c5bbc0a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Tue, 5 Oct 2021 13:16:51 +0300 Subject: [PATCH] intel/blorp: fix a compile warning about uninitialized use MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit warning: ‘bind_offset’ may be used uninitialized in this function Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/blorp/blorp_genX_exec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index 0270ee9..b914972 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -1559,7 +1559,7 @@ blorp_setup_binding_table(struct blorp_batch *batch, const struct blorp_params *params) { const struct isl_device *isl_dev = batch->blorp->isl_dev; - uint32_t surface_offsets[2], bind_offset; + uint32_t surface_offsets[2], bind_offset = 0; void *surface_maps[2]; UNUSED bool has_indirect_clear_color = false; -- 2.7.4