gallium/ttn: minor cleanup
authorRob Clark <robclark@freedesktop.org>
Sat, 11 Apr 2015 19:25:58 +0000 (15:25 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 17 Apr 2015 14:34:15 +0000 (10:34 -0400)
commit8efe20467b2710cc502cbfec19c1e543e572f864
treedd89df10ea5a6569341d379f631ff1fae026bdd5
parenta3cce7a38eb57b6845ee47c2aeeae7778c91be76
gallium/ttn: minor cleanup

v2: also use ttn_src_for_indirect() everywhere for addr access, rather
    than open-coding it for INPUT/CONST srcs
v3: move ralloc out of ttn_src_for_indirect() into the one call site
    that needs a ptr

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/nir/tgsi_to_nir.c