This code is missing correct barriers which cannot be specified at the HAL level, see https://github.com/flutter/flutter/issues/140798