On Device::from_queries' profile a kernel that runs its grid in tiles compared every
invocation's position with the grid's last thread before its body, on every dispatch. The
test now sits inside one uniform branch on the region's NONUNIFORM flag, which rt (and the
binder) already set for every region of a grid its workgroups do not divide: a ragged
dispatch runs today's test, and every other dispatch (a grid the workgroups divide, an
indirect dispatch) branches past it, its body deriving its position only where it reads it.
One pipeline serves both, so there is no added compile or first-use wait. Device::new's
profile has no grid tiles, so its modules are unchanged.
The branch is also what keeps a driver's scheduler from spreading a kernel's pushed-word
loads through its body: a form that dropped the branch lost 17-55% on a many-binding row on
RADV and the UHD 630.
SEMANTICS_VERSION 2180 -> 2181. The grid tile tests now run each grid flagged and
unflagged: flagged, no invocation past the grid stores; unflagged, a ragged grid's do, so
the flag alone guards the test.
Verified at the same change on 69af14bd22 (12f3602f1d): lint, the translator suite and rt on
lavapipe (m3-max-47411); rt's device tests 249/249 on the Iris (47443), the 7900 XTX and the
RTX 2080 (47498). Compiled code: the flag test is a wave-level scalar branch over the decode
and compare on RADV (7900 XTX, 47462) and a uniform branch on ANV (Iris, 47407); the
many-binding row's pushed-word loads stay together under one wait. Harness compute rows
against 69af14bd22, losses re-timed alone: UHD 630 (47436, 47449), Iris (47407), 7900 XTX
(47408, 47441), RTX 2080 (47408, 47441), RTX 3090 (47409, 47461), RX 550 and 780M (47406).