ptn,ttn: Use nir_channel for selecting channels
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 6 May 2019 15:20:23 +0000 (10:20 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 24 May 2019 13:38:11 +0000 (08:38 -0500)
commit6c2ca2a5d33cdfc4202ebb0df54567b587ecc578
treef37cce2c6c44c3f08b028300d0b9ed0321dfb0d9
parent88eb2a1f7e6277c7f10adfc95ebeaf3d2f73e862
ptn,ttn: Use nir_channel for selecting channels

Both of these passes predate the nir_channel helper.  We should just use
it instead of hand-rolling it in both passes.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/auxiliary/nir/tgsi_to_nir.c
src/mesa/program/prog_to_nir.c