Files
metal2vulkan/crates
Anees Iqbal 492ac7b946 rt tests: a commit with nothing for the GPU takes the Managed ranges named before it
Two device tests over one helper. In each, a Managed buffer is written and named, then a command
buffer with nothing for the GPU is committed and waited for. Test (i) encodes no commands. Test
(ii) encodes one dispatch over the buffer of a kernel that writes no memory, which records nothing
(it asserts dispatches_without_effects rose by 1).

Each test asserts, on a device that keeps two copies:
- At the commit, captured == 256, submissions == 1 and runtime_command_buffers == 1: the copy-in
  is its one submission.
- The command buffer reads Completed with no error, and its GPU start == end > 0.
- The next commit captures nothing, and it reads the bytes from the device copy.

On a unified device the same tests expect nothing captured or submitted.

quiet_step (the step kernel under has_effects false) moves into the compute tests' helpers. The
existing no-effects test uses it.

This commit holds the tests alone, ahead of the fix, so that a run of this commit shows them
failing on a two-copy device without the fix.
2026-11-21 01:49:33 -08:00
..