lima: fix compilation of standalone compiler
authorVasily Khoruzhick <anarsoul@gmail.com>
Thu, 15 Aug 2019 05:08:50 +0000 (22:08 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Thu, 15 Aug 2019 23:59:51 +0000 (16:59 -0700)
Fixes: e0aeee946004("lima: add summary report for shader-db")
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/standalone/lima_compiler_cmdline.c

index 7013504c186a212c558215d0349b5a3d3a98f178..aa41517eb8ce52be6d2ff49b46e41c4fa0962e01 100644 (file)
@@ -221,7 +221,7 @@ main(int argc, char **argv)
       nir_print_shader(nir, stdout);
 
       struct lima_vs_shader_state *vs = ralloc(nir, struct lima_vs_shader_state);
-      gpir_compile_nir(vs, nir);
+      gpir_compile_nir(vs, nir, NULL);
       break;
    case MESA_SHADER_FRAGMENT:
       lima_program_optimize_fs_nir(nir);
@@ -230,7 +230,7 @@ main(int argc, char **argv)
 
       struct lima_fs_shader_state *so = rzalloc(NULL, struct lima_fs_shader_state);
       struct ra_regs *ra = ppir_regalloc_init(NULL);
-      ppir_compile_nir(so, nir, ra);
+      ppir_compile_nir(so, nir, ra, NULL);
       break;
    default:
       errx(1, "unhandled shader stage: %d", stage);