mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
radeonsi: don't crash on NULL images in si_check_needs_implicit_sync
This fixes CTS test: KHR-GL46.arrays_of_arrays_gl.AtomicUsage
Fixes: bddc0e023c "radeonsi: fix read from compute / write from draw sync"
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9361>
This commit is contained in:
parent
f9e6c7a220
commit
db67d9c0d1
1 changed files with 1 additions and 1 deletions
|
|
@ -850,7 +850,7 @@ static bool si_check_needs_implicit_sync(struct si_context *sctx)
|
|||
}
|
||||
|
||||
struct si_images *images = &sctx->images[PIPE_SHADER_COMPUTE];
|
||||
mask = u_bit_consecutive(0, info->base.num_images);
|
||||
mask = u_bit_consecutive(0, info->base.num_images) & images->enabled_mask;
|
||||
|
||||
while (mask) {
|
||||
int i = u_bit_scan(&mask);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue