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>
}
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);