rusticl/api: Don't check the program source for nul bytes needlessly
authorLingMan <18294-LingMan@users.noreply.gitlab.freedesktop.org>
Wed, 5 Oct 2022 21:36:53 +0000 (23:36 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Oct 2022 23:32:50 +0000 (23:32 +0000)
commit5c16065169fe4ad8085bcd5ff51752306d0f58ff
treefe3ef47fca15a9779dd6f62a8f31a33ccb50206b
parent0d31bc5ac3b3505a86ea646d738256d616b6ef8a
rusticl/api: Don't check the program source for nul bytes needlessly

At this point we already know that the Vec we've constructed cannot contain a nul byte. Avoid the
needless scan.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18978>
src/gallium/frontends/rusticl/api/program.rs