Fix: EEVEE-Next: Avoid syncing issues on AMD with cryptomatte

There was a missing barrier, which created
blocky, non-deterministic artifacts in the
cryptomatte render tests.
This commit is contained in:
Clément Foucault
2024-05-13 14:10:13 +02:00
parent e0da623d33
commit ab48b08cde
@@ -506,6 +506,7 @@ void Film::sync()
cryptomatte_post_ps_.push_constant("cryptomatte_samples_per_layer",
inst_.view_layer->cryptomatte_levels);
int2 dispatch_size = math::divide_ceil(int2(cryptomatte_tx_.size()), int2(FILM_GROUP_SIZE));
cryptomatte_post_ps_.barrier(GPU_BARRIER_SHADER_IMAGE_ACCESS);
cryptomatte_post_ps_.dispatch(int3(UNPACK2(dispatch_size), 1));
}
}