The 3090 run of the race fix (a392521bff) still read the wrong bytes, on one
queue as on two: 48 rounds of a Managed buffer, each writing its byte, naming
the range and committing a copy of it, read the last round of the buffer's
bytes in rounds 1 and 2 of each four (3 read 7, 5 read 7; never the 0xee each
round writes after its commit). Each commit staged its own bytes, but the
scheduler submitted the earlier rounds after the CPU loop had committed the
later ones, and an earlier round's batch took every upload of the buffer
waiting, its own and the later commits', copying them in order before its
blit.
Each commit now takes a stamp under Modified's lock (take_at_commit returns
it; the command buffer keeps it in State::commit). An upload taken at a commit
carries its stamp (FirstFill::upload, register_upload's commit), and a batch
takes an upload only where its command buffer's stamp is at least the
upload's (FillTake::Owned and FillTake::Reached carry the batch's). An upload
no commit took (a buffer's making, a rebind, a completion's undo) carries 0
and goes with any batch that reaches it, as before. Internal submissions take
every upload, as before.
Verified: first_move's unit test
an_upload_goes_with_no_batch_committed_before_its_bytes_were_taken (an upload
of commits 2, 3, 4: a batch of commit 1 takes none, of 2 the first, of 4 the
other two, on devices with and without a fill queue); the 3090 before/after of
ranges_named_ follows on this commit.