radeonsi: pass TGSI processor type to si_compile_llvm for dumping
the parameter will be used later Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
dd79034ca6
commit
3ce0a2fd7f
|
@ -123,7 +123,7 @@ static void *si_create_compute_state(
|
|||
LLVMModuleRef mod = radeon_llvm_get_kernel_module(program->llvm_ctx, i,
|
||||
code, header->num_bytes);
|
||||
si_compile_llvm(sctx->screen, &program->kernels[i], sctx->tm,
|
||||
mod, &sctx->b.debug);
|
||||
mod, &sctx->b.debug, TGSI_PROCESSOR_COMPUTE);
|
||||
LLVMDisposeModule(mod);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3921,7 +3921,7 @@ int si_shader_binary_read(struct si_screen *sscreen, struct si_shader *shader,
|
|||
|
||||
int si_compile_llvm(struct si_screen *sscreen, struct si_shader *shader,
|
||||
LLVMTargetMachineRef tm, LLVMModuleRef mod,
|
||||
struct pipe_debug_callback *debug)
|
||||
struct pipe_debug_callback *debug, unsigned processor)
|
||||
{
|
||||
int r = 0;
|
||||
bool dump_asm = r600_can_dump_shader(&sscreen->b,
|
||||
|
@ -4026,7 +4026,7 @@ static int si_generate_gs_copy_shader(struct si_screen *sscreen,
|
|||
|
||||
r = si_compile_llvm(sscreen, si_shader_ctx->shader,
|
||||
si_shader_ctx->tm, bld_base->base.gallivm->module,
|
||||
debug);
|
||||
debug, TGSI_PROCESSOR_GEOMETRY);
|
||||
|
||||
radeon_llvm_dispose(&si_shader_ctx->radeon_bld);
|
||||
|
||||
|
@ -4235,7 +4235,7 @@ int si_shader_create(struct si_screen *sscreen, LLVMTargetMachineRef tm,
|
|||
radeon_llvm_finalize_module(&si_shader_ctx.radeon_bld);
|
||||
|
||||
mod = bld_base->base.gallivm->module;
|
||||
r = si_compile_llvm(sscreen, shader, tm, mod, debug);
|
||||
r = si_compile_llvm(sscreen, shader, tm, mod, debug, si_shader_ctx.type);
|
||||
if (r) {
|
||||
fprintf(stderr, "LLVM failed to compile shader\n");
|
||||
goto out;
|
||||
|
|
|
@ -332,7 +332,7 @@ int si_shader_create(struct si_screen *sscreen, LLVMTargetMachineRef tm,
|
|||
void si_dump_shader_key(unsigned shader, union si_shader_key *key, FILE *f);
|
||||
int si_compile_llvm(struct si_screen *sscreen, struct si_shader *shader,
|
||||
LLVMTargetMachineRef tm, LLVMModuleRef mod,
|
||||
struct pipe_debug_callback *debug);
|
||||
struct pipe_debug_callback *debug, unsigned processor);
|
||||
void si_shader_destroy(struct si_shader *shader);
|
||||
unsigned si_shader_io_get_unique_index(unsigned semantic_name, unsigned index);
|
||||
int si_shader_binary_upload(struct si_screen *sscreen, struct si_shader *shader);
|
||||
|
|
Loading…
Reference in New Issue