radeonsi/gfx9: prevent a race when the previous shader's main part is missing
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
b5bc826ead
commit
3effce4fb0
|
@ -1634,9 +1634,11 @@ again:
|
|||
else
|
||||
assert(0);
|
||||
|
||||
mtx_lock(&previous_stage_sel->mutex);
|
||||
ok = si_check_missing_main_part(sscreen,
|
||||
previous_stage_sel,
|
||||
compiler_state, &shader1_key);
|
||||
mtx_unlock(&previous_stage_sel->mutex);
|
||||
} else {
|
||||
ok = si_check_missing_main_part(sscreen, sel,
|
||||
compiler_state, key);
|
||||
|
|
Loading…
Reference in New Issue