From f989a024b45fdb228313328a8989f7fa797bf261 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 13 Sep 2019 13:18:29 +0700 Subject: [PATCH] lima/gpir: Fix compiler warning Reviewed-by: Vasily Khoruzhick --- src/gallium/drivers/lima/ir/gp/nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/lima/ir/gp/nir.c b/src/gallium/drivers/lima/ir/gp/nir.c index 567d2aa1896..6dcb4d88f02 100644 --- a/src/gallium/drivers/lima/ir/gp/nir.c +++ b/src/gallium/drivers/lima/ir/gp/nir.c @@ -246,7 +246,7 @@ static bool gpir_emit_load_const(gpir_block *block, nir_instr *ni) { nir_load_const_instr *instr = nir_instr_as_load_const(ni); gpir_const_node *node = - gpir_node_create_ssa(block, gpir_op_const, &instr->def); + gpir_node_to_const(gpir_node_create_ssa(block, gpir_op_const, &instr->def)); if (unlikely(!node)) return false; -- 2.30.2