diff options
author | Erico Nunes <[email protected]> | 2019-08-06 19:51:44 +0200 |
---|---|---|
committer | Erico Nunes <[email protected]> | 2019-08-06 20:29:53 +0200 |
commit | b783f9f77ee8787da41d7a675d128de4a8e49857 (patch) | |
tree | 419fc3ecc6db4b6bb9fbbdc52637578f774b2a8e /src/gallium/drivers/lima | |
parent | 5adfc8602c639827af0ba9a1059bd165a3ae49e7 (diff) |
lima: fix pipe_debug_callback warnings
Signed-off-by: Erico Nunes <[email protected]>
Reviewed-by: Vasily Khoruzhick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima')
-rw-r--r-- | src/gallium/drivers/lima/ir/gp/nir.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/lima/ir/lima_ir.h | 4 | ||||
-rw-r--r-- | src/gallium/drivers/lima/ir/pp/nir.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/lima/ir/gp/nir.c b/src/gallium/drivers/lima/ir/gp/nir.c index c208d735b9d..5a619d8d148 100644 --- a/src/gallium/drivers/lima/ir/gp/nir.c +++ b/src/gallium/drivers/lima/ir/gp/nir.c @@ -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); diff --git a/src/gallium/drivers/lima/ir/lima_ir.h b/src/gallium/drivers/lima/ir/lima_ir.h index 70b81e468a3..a02aa932b76 100644 --- a/src/gallium/drivers/lima/ir/lima_ir.h +++ b/src/gallium/drivers/lima/ir/lima_ir.h @@ -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); diff --git a/src/gallium/drivers/lima/ir/pp/nir.c b/src/gallium/drivers/lima/ir/pp/nir.c index e73a7967dc9..7c8352cb82c 100644 --- a/src/gallium/drivers/lima/ir/pp/nir.c +++ b/src/gallium/drivers/lima/ir/pp/nir.c @@ -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); |