diff options
author | Nicolai Hähnle <[email protected]> | 2017-10-22 17:38:39 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-11-09 11:53:19 +0100 |
commit | dd7c273e873f20474e2af1959ab2928292020941 (patch) | |
tree | 8ce56e6db117c8380ab43436f27a093a6499ee32 /src/gallium/drivers/radeonsi/si_compute.c | |
parent | 185061aef41401bead9e5d15aa00ffa2fcf7ef8c (diff) |
radeonsi: move pipe debug callback to si_context
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_compute.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index 942750b2256..e55988af4cc 100644 --- a/src/gallium/drivers/radeonsi/si_compute.c +++ b/src/gallium/drivers/radeonsi/si_compute.c @@ -168,12 +168,12 @@ static void *si_create_compute_state( } program->compiler_ctx_state.tm = sctx->tm; - program->compiler_ctx_state.debug = sctx->b.debug; + program->compiler_ctx_state.debug = sctx->debug; program->compiler_ctx_state.is_debug_context = sctx->is_debug; p_atomic_inc(&sscreen->b.num_shaders_created); util_queue_fence_init(&program->ready); - if ((sctx->b.debug.debug_message && !sctx->b.debug.async) || + if ((sctx->debug.debug_message && !sctx->debug.async) || sctx->is_debug || si_can_dump_shader(&sscreen->b, PIPE_SHADER_COMPUTE)) si_create_compute_state_async(program, -1); @@ -196,7 +196,7 @@ static void *si_create_compute_state( si_shader_binary_read_config(&program->shader.binary, &program->shader.config, 0); } - si_shader_dump(sctx->screen, &program->shader, &sctx->b.debug, + si_shader_dump(sctx->screen, &program->shader, &sctx->debug, PIPE_SHADER_COMPUTE, stderr, true); if (si_shader_binary_upload(sctx->screen, &program->shader) < 0) { fprintf(stderr, "LLVM failed to upload shader\n"); |