Name the in-place check's record by the driver and the check alone; wait for the verdict

The record of the device's in-place check was named by RUNTIME_VERSION too, which moves at almost
every pin: every reims boot after a pin move ran the check again, and the textures made before it
answered (WindowServer's framebuffers, made at its start) were shadows for that boot's life.

- in_place.rs: the record's name and body hold the check's tag, kind and version and the driver's
  identity (vendor, device, driver version, driver ID, name, info, device UUID), not the runtime
  version; the body loses its runtime field. CHECK_VERSION is the version of what decides the
  answer: the check, and the images over host pages it checks as the product makes them. Asked
  by main for the owner's 11-07 ruling.
- A texture made while its class's verdict for its access is pending starts the check and waits
  for that verdict as it is made, up to in_place::VERDICT_WAIT (5 s), instead of taking a shadow
  for its life (InPlaceChecks::wait_for, woken by each verdict set and by the settle; counted
  WorkCounts::in_place_verdicts_waited). Past the wait it is a shadow, counted check_pending.
- self_reads prints the check's time (SELF-READ-CHECK ... took).

Tests: tests::in_place pins the record name to the identity and check alone (a hash computed in
the test), drops the runtime field from the frame tests, and checks a waiter wakes on its own
verdict and on the settle.

Docs: in_place.rs, in_place_check.rs, docs/API.md, docs/HOWTO.md, docs/FAST-PATHS.md's row;
api_signatures.tsv gains WorkCounts.in_place_verdicts_waited.

Verified: build, clippy and the touched tests in the follow-up jobs named in the tip's report.
(cherry picked from commit 841a92b0020f1d43e943c9bc04245cffb7fcf503)
This commit is contained in:
Anees Iqbal committed 2026-11-07 12:33:50 -08:00
1 parent 8ab8a8c0fe
commit 23ffb2f64f
8 files changed
+149 -60

No files matched your search

+5 -3
View File
@@ -337,9 +337,11 @@ CPU thread writes beside their texels, and passes a kind only where every first
byte; for a texture that renders it checks images made with `RenderTarget` usage apart, through
their first move, their moves into the feedback loop layout and back, and a render pass that
clears and stores them, while the CPU writes the bytes between their rows and after them. It runs
on a thread of its own, which the first such texture starts, once per driver, driver version and
runtime release: its verdicts are kept in the shader cache's directory (a device without one
checks once per process) and recalled as the next device is made
on a thread of its own, which the first such texture starts and waits for, up to 5 seconds, for
its kind of pages and access (`WorkCounts::in_place_verdicts_waited`; past it the texture is a
shadow), once per driver and driver version: its verdicts are kept in the shader cache's
directory, named by the driver and the check's own version, not the runtime's (a device without
one checks once per process), and recalled as the next device is made
(`WorkCounts::in_place_checks_run`, `_passed`, `_failed`, `_unchecked`, `_recalled`). Such a
texture's commands read and write the texels in the memory the buffer's commands read, so a CPU
write reaches them as it reaches the buffer's.