Jonah Williams 11484e2da1 [Impeller] add compute pass API for memory barriers, re-enable for Vulkan. (flutter/engine#49946)
Adds two new APIs that insert memory barriers for compute -> compute dependencies.

```c++
  // |ComputePass|
  void AddBufferMemoryBarrier() override;

  // |ComputePass|
  void AddTextureMemoryBarrier() override;
```

Also makes the ComputePassVK automatically insert a compute -> vertex dependency when encoding.  This change is sufficient to let the GPU compute implementation of draw points work on Pixel and Samsung Android devices.

For more explaination on these specific barriers, see the documentation added in this PR.

Fixes https://github.com/flutter/engine/pull/49946
2024-01-26 21:20:54 +00:00
..