mesa/st: translate SO info in glsl_to_nir() case
authorRob Clark <robdclark@gmail.com>
Wed, 10 Jan 2018 02:54:14 +0000 (03:54 +0100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 18 Jan 2018 04:35:58 +0000 (15:35 +1100)
commit4c69961daf45a6a64970e5831bd362307dca0cb2
tree7038f6a4de572dbd8106dde50108bde1c7fa250f
parent44a27cdceca0b835d964ca16db68721816ae868f
mesa/st: translate SO info in glsl_to_nir() case

This was handled for VS, but not for GS.

Fixes for gallium drivers using nir:
spec@arb_gpu_shader5@arb_gpu_shader5-xfb-streams-without-invocations
spec@arb_gpu_shader5@arb_gpu_shader5-xfb-streams*
spec@arb_transform_feedback3@arb_transform_feedback3-ext_interleaved_two_bufs_gs*
spec@ext_transform_feedback@geometry-shaders-basic
spec@ext_transform_feedback@* use_gs
spec@glsl-1.50@execution@geometry@primitive-id*
spec@glsl-1.50@execution@geometry@tri-strip-ordering-with-prim-restart gl_triangle_strip *
spec@glsl-1.50@transform-feedback-builtins
spec@glsl-1.50@transform-feedback-type-and-size

v2: don't call st_translate_program_stream_output) for TCS

v3: drop scanning patch outputs as TCS can't output xfb

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Tested-by: Karol Herbst <kherbst@redhat.com>
src/mesa/state_tracker/st_program.c