mesa/glspirv: Validate that compute shaders are not linked with other stages
authorNeil Roberts <nroberts@igalia.com>
Tue, 12 Jun 2018 20:24:00 +0000 (22:24 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 12 Jul 2019 21:42:42 +0000 (23:42 +0200)
commit8419621176502f906aac80601eecfcdce5324ff4
tree273de76dbc785018c8608b269efa507d407755e4
parent022e9ddd1af810083b847b307baadb6bad7735da
mesa/glspirv: Validate that compute shaders are not linked with other stages

The test is based on link_shaders().

For example, it allows the following test (when run on SPIR-V mode) to
pass:
   spec/arb_compute_shader/linker/mix_compute_and_non_compute.shader_test

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