Commit b1b4b901 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig

midgard: Fix nondeterministic segfault

parent b3b85bfc
......@@ -402,7 +402,7 @@ emit_load_const(compiler_context *ctx, nir_load_const_instr *instr)
nir_ssa_def def = instr->def;
float *v = ralloc_array(ctx->ssa_constants, float, 4);
float *v = ralloc_array(NULL, float, 4);
memcpy(v, &instr->value.f32, 4 * sizeof(float));
_mesa_hash_table_u64_insert(ctx->ssa_constants, def.index, v);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment