st/mesa: Copy VP TGSI tokens if they exist, even for NIR shaders.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 15 Feb 2019 08:00:39 +0000 (00:00 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 19 Feb 2019 23:56:19 +0000 (15:56 -0800)
commit3b4929ec6e6456fb093483e2dc9ce008622373d6
tree35f66fe55fb2be2d37a8207389cbd39d2d24d07f
parentba7519ca36ce0de74657b01fe4fa2c97aace538e
st/mesa: Copy VP TGSI tokens if they exist, even for NIR shaders.

Even if the driver wants to use NIR shaders, we may need to have TGSI
tokens for creating draw module vertex shaders for the feedback/select
render modes.

So...if the st_vertex_program has any TGSI...copy it to the variant.

Acked-by: Eric Anholt <eric@anholt.net>
Tested-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/state_tracker/st_program.c