lima: fix pipe_debug_callback warnings
authorErico Nunes <nunes.erico@gmail.com>
Tue, 6 Aug 2019 17:51:44 +0000 (19:51 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Tue, 6 Aug 2019 18:29:53 +0000 (20:29 +0200)
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/ir/gp/nir.c
src/gallium/drivers/lima/ir/lima_ir.h
src/gallium/drivers/lima/ir/pp/nir.c

index c208d735b9d98b0ef5d9e8b8f4057efe9b172681..5a619d8d148e90b97620e9fcfebc07cfbe4c4d0c 100644 (file)
@@ -420,7 +420,7 @@ static void gpir_print_shader_db(struct nir_shader *nir, gpir_compiler *comp,
 }
 
 bool gpir_compile_nir(struct lima_vs_shader_state *prog, struct nir_shader *nir,
-                      const struct pipe_debug_callback *debug)
+                      struct pipe_debug_callback *debug)
 {
    nir_function_impl *func = nir_shader_get_entrypoint(nir);
    gpir_compiler *comp = gpir_compiler_create(prog, func->reg_alloc, func->ssa_alloc);
index 70b81e468a366ffa1f646a0d64c5a0aabfde0fda..a02aa932b76501e16ab7abb64bde0b09cbba7dcc 100644 (file)
@@ -54,13 +54,13 @@ struct lima_fs_shader_state;
 
 /* gpir interface */
 bool gpir_compile_nir(struct lima_vs_shader_state *prog, struct nir_shader *nir,
-                      const struct pipe_debug_callback *debug);
+                      struct pipe_debug_callback *debug);
 
 
 /* ppir interface */
 bool ppir_compile_nir(struct lima_fs_shader_state *prog, struct nir_shader *nir,
                       struct ra_regs *ra,
-                      const struct pipe_debug_callback *debug);
+                      struct pipe_debug_callback *debug);
 struct ra_regs *ppir_regalloc_init(void *mem_ctx);
 
 void lima_nir_lower_uniform_to_scalar(nir_shader *shader);
index e73a7967dc9f933eb3e25cb5c95220f67774973d..7c8352cb82c3203e8e3b906747efe8800d69fc6f 100644 (file)
@@ -565,7 +565,7 @@ static void ppir_add_ordering_deps(ppir_compiler *comp)
 }
 
 static void ppir_print_shader_db(struct nir_shader *nir, ppir_compiler *comp,
-                                 const struct pipe_debug_callback *debug)
+                                 struct pipe_debug_callback *debug)
 {
    const struct shader_info *info = &nir->info;
    char *shaderdb;
@@ -587,7 +587,7 @@ static void ppir_print_shader_db(struct nir_shader *nir, ppir_compiler *comp,
 
 bool ppir_compile_nir(struct lima_fs_shader_state *prog, struct nir_shader *nir,
                       struct ra_regs *ra,
-                      const struct pipe_debug_callback *debug)
+                      struct pipe_debug_callback *debug)
 {
    nir_function_impl *func = nir_shader_get_entrypoint(nir);
    ppir_compiler *comp = ppir_compiler_create(prog, func->reg_alloc, func->ssa_alloc);