lima/gpir: Fix compiler warning
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 13 Sep 2019 06:18:29 +0000 (13:18 +0700)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 24 Sep 2019 06:33:56 +0000 (08:33 +0200)
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/ir/gp/nir.c

index 567d2aa18962a9128eb65d3d858b58cf4fa9c8e3..6dcb4d88f02827a8b0536208edc60f088177ec77 100644 (file)
@@ -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;