summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-21 10:50:31 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-22 12:24:13 -0700
commit3c01a6928a9d2999519ed8738197deea6f1a6d45 (patch)
tree711c496825ea249bfb837973ad7e7e27e4daf93b /src/panfrost/midgard
parenta7a9d958bc334b65fff1a7b209c2b865e0ad04b1 (diff)
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 <[email protected]> Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index aacd8e19989..9d11ad25ea8 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -562,7 +562,7 @@ emit_load_const(compiler_context *ctx, nir_load_const_instr *instr)
nir_ssa_def def = instr->def;
float *v = rzalloc_array(NULL, float, 4);
- nir_const_load_to_arr(v, instr, f32);
+ nir_const_value_to_array(v, instr->value, instr->def.num_components, f32);
/* Shifted for SSA, +1 for off-by-one */
_mesa_hash_table_u64_insert(ctx->ssa_constants, (def.index << 1) + 1, v);