ir3+tu: Simplify ir3_find_sysval_regid callers
authorRob Clark <robdclark@chromium.org>
Sat, 2 Sep 2023 14:47:36 +0000 (07:47 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 11 Sep 2023 19:45:18 +0000 (19:45 +0000)
commit71fe3f10730f09ddb72a7830103ca60737cd2a20
treef99c0c1916049ac5b1ca0654a75a5ec664d2a2b9
parent38694b73865956e8d22f47f259e5d0bb70f28245
ir3+tu: Simplify ir3_find_sysval_regid callers

The test for NULL shader stage is pretty common so just move it into
ir3_find_sysval_regid().

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24999>
src/freedreno/ir3/ir3_shader.h
src/freedreno/vulkan/tu_shader.cc