summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_compute.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2018-11-28 11:32:01 +0100
committerMarek Olšák <[email protected]>2019-06-12 20:28:23 -0400
commit8b1343ca7926ce1f322424da8b7e099b5ee9ddea (patch)
tree01367b261bbc1febb85d2ddb31c5061d51c3cda4 /src/gallium/drivers/radeonsi/si_compute.c
parent77b05cc42df29472a7852b90575a19e8991815cd (diff)
radeonsi: let si_shader_create return a boolean
We didn't really use error codes anyway. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c
index a08ed7d65f5..006fb89a200 100644
--- a/src/gallium/drivers/radeonsi/si_compute.c
+++ b/src/gallium/drivers/radeonsi/si_compute.c
@@ -150,7 +150,7 @@ static void si_create_compute_state_async(void *job, int thread_index)
} else {
mtx_unlock(&sscreen->shader_cache_mutex);
- if (si_shader_create(sscreen, compiler, &program->shader, debug)) {
+ if (!si_shader_create(sscreen, compiler, &program->shader, debug)) {
program->shader.compilation_failed = true;
if (program->ir_type == PIPE_SHADER_IR_TGSI)