aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-12-12 17:13:23 -0500
committerMarge Bot <[email protected]>2019-12-16 20:06:07 +0000
commit8edf3df3e42da12f2bc14afeaaba5852eb05040d (patch)
tree31b1e1685656a0670c4ab90601c5765597ecddee /src
parent1436c261e93a5503042216156884d43fe4fc9b14 (diff)
radeonsi: reset more fields in si_llvm_context_set_ir to fix reusing ctx
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3095>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
index ed3f89c7a25..1443432d593 100644
--- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
+++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c
@@ -1071,6 +1071,8 @@ void si_llvm_context_set_ir(struct si_shader_context *ctx,
/* Re-set these to start with a clean slate. */
ctx->bld_base.num_instructions = 0;
ctx->bld_base.pc = 0;
+ memset(ctx->input_decls, 0, sizeof(ctx->input_decls));
+ memset(ctx->inputs, 0, sizeof(ctx->inputs));
memset(ctx->outputs, 0, sizeof(ctx->outputs));
ctx->bld_base.emit_store = si_llvm_emit_store;