turnip: Setup stream-output when linking program
authorHyunjun Ko <zzoon@igalia.com>
Tue, 25 Feb 2020 01:07:25 +0000 (10:07 +0900)
committerMarge Bot <eric+marge@anholt.net>
Thu, 12 Mar 2020 03:10:16 +0000 (03:10 +0000)
commit374406a7c420d266f920461f904864a94dc1b8c8
treebbdc23671fbc7a1ab2ded3199fa107aae753efc6
parent82fdb13c25648de2fc4d381699f5bbbd2d8768f4
turnip: Setup stream-output when linking program

Mostly taken from fd6_program.c.

v2. Note that it forces to use full VS instead of binning pass VS if
there's stream output as the binning pass VS will have outputs on
other than position/psize stripped out, which is the same as freedreno.

v3. fix indentation.

v4. Use register index instead of location when setup streamout.

Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3942>
src/freedreno/vulkan/tu_pipeline.c