freedreno/ir3: simplify creating sysval inputs
authorRob Clark <robdclark@chromium.org>
Fri, 25 Oct 2019 17:48:22 +0000 (10:48 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 12 Nov 2019 21:55:03 +0000 (13:55 -0800)
commit2aae13f642b136d84c55004af0db5f411a4da61d
treec94982a673eea920cc7b3acfff1f448622a17f69
parent68d2ec5f7ec67416fc6cf3f018c3a8ee3484cf38
freedreno/ir3: simplify creating sysval inputs

In almost all places, the add_sysval_input() is paired directly with a
create_input().  (The one exception is frag shader ij bary coord, and
this exception will go away in a later patch.)

So go ahead and clean this up before reworking input/output handling.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/freedreno/ir3/ir3_compiler_nir.c