freedreno/a6xx: Share shader_t_to_opcode
authorKristian H. Kristensen <hoegsberg@google.com>
Thu, 6 Jun 2019 04:35:35 +0000 (21:35 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 7 Jun 2019 14:33:03 +0000 (07:33 -0700)
commit0ef00ceb2e686dda38dbc4d057fd30460e7f52d5
tree0ece7c2ef71836b2ff9a36a7656dcfd09a6db5da
parent4552162e2d4aa03078d2c7ac7d903ff92126640b
freedreno/a6xx: Share shader_t_to_opcode

We have a similar function in fd6_program.c. Move to fd6_emit.h and
share.

Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
src/gallium/drivers/freedreno/a6xx/fd6_emit.h
src/gallium/drivers/freedreno/a6xx/fd6_program.c