freedreno/a6xx: only generate streamout for draw pass shader
authorRob Clark <robdclark@chromium.org>
Tue, 18 Aug 2020 19:00:37 +0000 (12:00 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 19 Aug 2020 14:03:42 +0000 (14:03 +0000)
commit5550bc0423015fbb6076195930a4fb9ec2877255
tree9e49337e106bf40876a330bff05eb671b41a3dac
parentee7949b06456b9d675023fc38a3b60d51d214524
freedreno/a6xx: only generate streamout for draw pass shader

Previously we were doing this both for draw and binning pass.. resulting
that the stateobj contained first the incorrect state (based on binning
pass shader with varyings DCEd) followed by the correct state.

Also, in the streamout case we should link binning pass VS against the
real FS, rather than the dummy FS, so that OUTLOC's match (since same
streamout stateobj is used for both draw and binning pass).

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6376>
src/gallium/drivers/freedreno/a6xx/fd6_program.c