From 3c01a6928a9d2999519ed8738197deea6f1a6d45 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 21 Aug 2019 10:50:31 -0700 Subject: pan/midgard,bifrost: Expand nir_const_load_to_arr Panfrost is the only user of the macro; we are better off expanding than having random stuff in nir.h. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Caio Marcelo de Oliveira Filho --- src/panfrost/bifrost/bifrost_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/panfrost/bifrost') diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 061eab11a9d..5e34b95d308 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -117,7 +117,7 @@ emit_load_const(struct compiler_context *ctx, nir_load_const_instr *instr) nir_ssa_def def = instr->def; float *v = ralloc_array(NULL, float, 1); - nir_const_load_to_arr(v, instr, f32); + nir_const_value_to_array(v, instr->value, instr->def.num_components, f32); _mesa_hash_table_u64_insert(ctx->ssa_constants, def.index + 1, v); } -- cgit v1.2.3