rt draw tests: the triangle test runs the new target's upload in a submission apart before it counts

Legs 44820-44823 counted four barriers on every device where the test asked three: the upload
that moves the freshly made target to its home layout led the measured submission, with its own
barrier. The pass tests already run an empty command buffer first; this test now does the same,
so it counts the pass's two barriers and the segment's end alone.
This commit is contained in:
Anees Iqbal committed 2026-11-18 03:13:47 -08:00
1 parent 69f8f3bb7c
commit 3df4f73d9c
1 file changed
+4
+4
View File
@@ -266,6 +266,10 @@ mod on_device {
TextureUsage::RENDER_TARGET,
);
let queue = device.new_command_queue(4).expect("a queue");
// The upload that moves the new target to its home layout, in a submission apart.
let first = queue.command_buffer().expect("a command buffer");
(first.record_for_test(&[], |_, _| {})).expect("a command buffer's commands");
run(name, &first);
let counters = device.counters();
settled(&device);
let before = counters.metrics();