mesa/glspirv: Validate that there is a VS when there is a TCS, TES or GS
authorNeil Roberts <nroberts@igalia.com>
Fri, 25 May 2018 13:34:26 +0000 (15:34 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 12 Jul 2019 21:42:41 +0000 (23:42 +0200)
commit022e9ddd1af810083b847b307baadb6bad7735da
tree05d17b7e0fca6a20721eefc89c26185c3b4323d8
parente4210b93e441c85bf8d54d0605294a97459bad8a
mesa/glspirv: Validate that there is a VS when there is a TCS, TES or GS

The shader combination tests are copied from link_shaders().

For example, it allows the following tests (when run on SPIR-V mode) to
pass:
   spec/arb_tessellation_shader/linker/no-vs
   spec/arb_tessellation_shader/linker/tcs-no-vs
   spec/arb_tessellation_shader/linker/tes-no-vs
   spec/glsl-1.50/linker/gs-without-vs

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/mesa/main/glspirv.c