gallivm/draw/gs: pass vertex stream count into shader build
authorDave Airlie <airlied@redhat.com>
Fri, 19 Jun 2020 04:54:16 +0000 (14:54 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Jul 2020 20:06:05 +0000 (06:06 +1000)
commit903b5814b5c22680b9a3a74af885aa3ca99fa302
tree388f6167fe3aa648138d25b90861e0870e24b9f0
parent99ae39f76c90403b7bdc19349275f70df4c57443
gallivm/draw/gs: pass vertex stream count into shader build

The shader builder can avoid iterations using this info.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5555>
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/gallivm/lp_bld_nir.h
src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c
src/gallium/auxiliary/gallivm/lp_bld_tgsi.h