From: Tapani Pälli Date: Tue, 19 Mar 2019 09:17:18 +0000 (+0200) Subject: iris: initialize num_cbufs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03cbfbd913b947e250221cd09bbff6740189e1d1;p=mesa.git iris: initialize num_cbufs Currently initialized only if 'ish' is non-NULL. CID: 1444106 Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Eric Engestrom Reviewed-by: Kenneth Graunke --- diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c index 6dc3289f6cd..ebddcc2fb58 100644 --- a/src/gallium/drivers/iris/iris_program.c +++ b/src/gallium/drivers/iris/iris_program.c @@ -712,7 +712,7 @@ iris_compile_tcs(struct iris_context *ice, struct brw_stage_prog_data *prog_data = &vue_prog_data->base; enum brw_param_builtin *system_values = NULL; unsigned num_system_values = 0; - unsigned num_cbufs; + unsigned num_cbufs = 0; nir_shader *nir;