iris: initialize num_cbufs
authorTapani Pälli <tapani.palli@intel.com>
Tue, 19 Mar 2019 09:17:18 +0000 (11:17 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 20 Mar 2019 06:20:09 +0000 (08:20 +0200)
Currently initialized only if 'ish' is non-NULL.

CID: 1444106
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_program.c

index 6dc3289f6cdfbcf31a32f7e5ef67a54244a580c7..ebddcc2fb582bb9d0954439c0cedefd12b443cc2 100644 (file)
@@ -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;