freedreno: Only call nir_lower_io on shader_in/out
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 10 Jun 2020 22:42:15 +0000 (17:42 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 6 Jul 2020 19:54:30 +0000 (19:54 +0000)
commit36a90468486252cb35cdea3d67ace991f1fb4bd0
tree8aa478f2a494032e2b4926c5ab12a71f9b58f5c3
parentfc944428bfb5d4c6709b51067a1010051cf8e49e
freedreno: Only call nir_lower_io on shader_in/out

Gallium drivers should never see nir_var_uniform because gallium lowers
regular uniforms to a UBO.  No GL driver should ever see either
nir_var_mem_shared because that's lowered in GLSL IR.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5418>
src/freedreno/ir3/ir3_nir.c
src/gallium/drivers/freedreno/a2xx/fd2_program.c
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c