freedreno/ir3: Pass stream output info to ir3_shader_from_nir
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 1 May 2020 06:24:27 +0000 (23:24 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 May 2020 16:26:31 +0000 (16:26 +0000)
commita16ee14f37fca71c0c14d468db690aa410ac4ce4
tree385ac39a791cba4f59fac2a36bb09d2727dacb22
parent07f89126cde6d61825bc3e69aec0b1eed1a83751
freedreno/ir3: Pass stream output info to ir3_shader_from_nir

We need shader->stream_output filled out when we layout the push
constants in ir3_setup_const_state(). Otherwise
const_state->offsets.tfbo ends up as ~0, which doesn't work.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4562>
src/freedreno/ir3/ir3_shader.c
src/freedreno/ir3/ir3_shader.h
src/gallium/drivers/freedreno/ir3/ir3_gallium.c