gallium: fix uninitialized variable warning

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 54deb1010f)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10379>
This commit is contained in:
Michel Zou 2021-04-15 22:38:44 +02:00 committed by Eric Engestrom
parent 19ed21fba9
commit 0fff844cf9
2 changed files with 2 additions and 2 deletions

View file

@ -6709,7 +6709,7 @@
"description": "gallium: fix uninitialized variable warning",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"master_sha": null,
"because_sha": null
},

View file

@ -305,7 +305,7 @@ static void lp_exec_default(struct lp_exec_mask *mask,
LLVMBuilderRef builder = mask->bld->gallivm->builder;
struct function_ctx *ctx = func_ctx(mask);
int default_exec_pc;
int default_exec_pc = 0;
boolean default_is_last;
if (ctx->switch_stack_size > LP_MAX_TGSI_NESTING) {