mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 23:00:11 +01:00
radeonsi: reset more fields in si_llvm_context_set_ir to fix reusing ctx
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3095>
This commit is contained in:
parent
1436c261e9
commit
8edf3df3e4
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue