diff options
author | Marek Olšák <[email protected]> | 2019-09-26 13:37:45 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-10-07 20:05:07 -0400 |
commit | eec7b0a8659977cdaa59fa91962f543b6f5a9668 (patch) | |
tree | c5b1b55046ab6c321c07b46d96f95bd5f6e6dabb /src/gallium/drivers/radeonsi/si_compute.c | |
parent | 5498a8d23c9e9074ab36d2456e16bba66d7e139a (diff) |
radeonsi: use simple_mtx_t instead of mtx_t
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_compute.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index 9fe2bb5cf4b..e9876ef9b69 100644 --- a/src/gallium/drivers/radeonsi/si_compute.c +++ b/src/gallium/drivers/radeonsi/si_compute.c @@ -150,11 +150,11 @@ static void si_create_compute_state_async(void *job, int thread_index) void *ir_binary = si_get_ir_binary(sel, false, false); /* Try to load the shader from the shader cache. */ - mtx_lock(&sscreen->shader_cache_mutex); + simple_mtx_lock(&sscreen->shader_cache_mutex); if (ir_binary && si_shader_cache_load_shader(sscreen, ir_binary, shader)) { - mtx_unlock(&sscreen->shader_cache_mutex); + simple_mtx_unlock(&sscreen->shader_cache_mutex); si_shader_dump_stats_for_shader_db(sscreen, shader, debug); si_shader_dump(sscreen, shader, debug, stderr, true); @@ -162,7 +162,7 @@ static void si_create_compute_state_async(void *job, int thread_index) if (!si_shader_binary_upload(sscreen, shader, 0)) program->shader.compilation_failed = true; } else { - mtx_unlock(&sscreen->shader_cache_mutex); + simple_mtx_unlock(&sscreen->shader_cache_mutex); if (!si_shader_create(sscreen, compiler, &program->shader, debug)) { program->shader.compilation_failed = true; @@ -202,10 +202,10 @@ static void si_create_compute_state_async(void *job, int thread_index) S_00B84C_LDS_SIZE(shader->config.lds_size); if (ir_binary) { - mtx_lock(&sscreen->shader_cache_mutex); + simple_mtx_lock(&sscreen->shader_cache_mutex); if (!si_shader_cache_insert_shader(sscreen, ir_binary, shader, true)) FREE(ir_binary); - mtx_unlock(&sscreen->shader_cache_mutex); + simple_mtx_unlock(&sscreen->shader_cache_mutex); } } |