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
|
else
|
||||||
assert(0);
|
assert(0);
|
||||||
|
|
||||||
|
mtx_lock(&previous_stage_sel->mutex);
|
||||||
ok = si_check_missing_main_part(sscreen,
|
ok = si_check_missing_main_part(sscreen,
|
||||||
previous_stage_sel,
|
previous_stage_sel,
|
||||||
compiler_state, &shader1_key);
|
compiler_state, &shader1_key);
|
||||||
|
mtx_unlock(&previous_stage_sel->mutex);
|
||||||
} else {
|
} else {
|
||||||
ok = si_check_missing_main_part(sscreen, sel,
|
ok = si_check_missing_main_part(sscreen, sel,
|
||||||
compiler_state, key);
|
compiler_state, key);
|
||||||
|
|
Loading…
Reference in New Issue