The device's in-place check of render targets made its passes' queue with
new_command_queue_now, whose place took Metal's device sampler ID and made the texture pool as
the program's first command queue does (resource_ids.rs). The check runs on its thread while the
program makes its objects, so on a device whose check made that queue before the program's
reservation:
- a texture reservation kept the pool's first range (1 to 15) beside its own, and plain textures
took those IDs again (the consumer's pin 27: 15 of 256 plain textures inside the reserved
range);
- the device sampler ID started the sampler pool, so a sampler reservation was ignored, with a
late-reservation line.
Queues now carry whom they were made for (queue.rs, MadeFor). Device::own_command_queue_now
makes a round-robin queue as new_command_queue_now does, but its places, a recovery's new one
included, touch neither ID rule; the check takes its queue there. The check's draw (CheckDraw)
makes only Vulkan objects and takes no Metal ID. No other runtime-internal queue exists.
The test replaces the one before it, which asserted the wrong mechanism: settle the check, then
reserve texture IDs 1 to 64 and sampler IDs 1 to 16, make 32 plain textures and 8 plain sampler
states, and assert none lands in a reserved range and no late-reservation line is given; the same
with the reservation made as the device is made. It prints whether the check made its render
queue before the reservation, the path the bug needs.
Verification: device runs on lavapipe, Iris and the M3, each with a negative control at the
previous queue.rs and in_place_check.rs, are reported with the branch.
(cherry picked from commit cdc84aff87ef5faee0f4d48bc242862570ea1412)