Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>tags/19.2-branchpoint
@@ -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); |
@@ -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); |
@@ -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); |