59499d8dbc
The loop is supposed to execute exactly once, but the previous logic inadvertently executes 0 or 1 times depending on whether dst is NULL (it never is). Reexpress the loop to execute exactly once, eliminating the unnecessary branch in this hot path. Noticed when reading the NIR of generated pack code. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25498>