Ver código fonte

lima: fix pipe_debug_callback warnings

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
tags/19.2-branchpoint
Erico Nunes 6 anos atrás
pai
commit
b783f9f77e

+ 1
- 1
src/gallium/drivers/lima/ir/gp/nir.c Ver arquivo

@@ -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);

+ 2
- 2
src/gallium/drivers/lima/ir/lima_ir.h Ver arquivo

@@ -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);

+ 2
- 2
src/gallium/drivers/lima/ir/pp/nir.c Ver arquivo

@@ -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);

Carregando…
Cancelar
Salvar