radeonsi: pass TGSI processor type to si_shader_binary_read 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
3ce0a2fd7f
commit
fd7000bd78
|
@ -136,7 +136,8 @@ static void *si_create_compute_state(
|
|||
* the shader code to the GPU.
|
||||
*/
|
||||
init_scratch_buffer(sctx, program);
|
||||
si_shader_binary_read(sctx->screen, &program->shader, &sctx->b.debug);
|
||||
si_shader_binary_read(sctx->screen, &program->shader, &sctx->b.debug,
|
||||
TGSI_PROCESSOR_COMPUTE);
|
||||
|
||||
#endif
|
||||
program->input_buffer = si_resource_create_custom(sctx->b.b.screen,
|
||||
|
|
|
@ -3888,7 +3888,7 @@ static void si_shader_dump_disassembly(const struct radeon_shader_binary *binary
|
|||
}
|
||||
|
||||
int si_shader_binary_read(struct si_screen *sscreen, struct si_shader *shader,
|
||||
struct pipe_debug_callback *debug)
|
||||
struct pipe_debug_callback *debug, unsigned processor)
|
||||
{
|
||||
const struct radeon_shader_binary *binary = &shader->binary;
|
||||
int r;
|
||||
|
@ -3940,7 +3940,7 @@ int si_compile_llvm(struct si_screen *sscreen, struct si_shader *shader,
|
|||
return r;
|
||||
}
|
||||
|
||||
r = si_shader_binary_read(sscreen, shader, debug);
|
||||
r = si_shader_binary_read(sscreen, shader, debug, processor);
|
||||
|
||||
FREE(shader->binary.config);
|
||||
FREE(shader->binary.rodata);
|
||||
|
|
|
@ -337,7 +337,7 @@ 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);
|
||||
int si_shader_binary_read(struct si_screen *sscreen, struct si_shader *shader,
|
||||
struct pipe_debug_callback *debug);
|
||||
struct pipe_debug_callback *debug, unsigned processor);
|
||||
void si_shader_apply_scratch_relocs(struct si_context *sctx,
|
||||
struct si_shader *shader,
|
||||
uint64_t scratch_va);
|
||||
|
|
Loading…
Reference in New Issue