[Mesa-dev] [RFC PATCH 24/56] glsl: Allow tess control and tess eval shaders without VS if separate
Chris Forbes
chrisf at ijw.co.nz
Sat Sep 20 18:41:04 PDT 2014
Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
src/glsl/linker.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index e7c8974..6ed54db 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -2776,13 +2776,15 @@ link_shaders(struct gl_context *ctx, struct gl_shader_program *prog)
goto done;
}
if (num_shaders[MESA_SHADER_TESS_EVAL] > 0 &&
- num_shaders[MESA_SHADER_VERTEX] == 0) {
+ num_shaders[MESA_SHADER_VERTEX] == 0 &&
+ !prog->SeparateShader) {
linker_error(prog, "Tessellation evaluation shader must be linked with "
"vertex shader\n");
goto done;
}
if (num_shaders[MESA_SHADER_TESS_CTRL] > 0 &&
- num_shaders[MESA_SHADER_VERTEX] == 0) {
+ num_shaders[MESA_SHADER_VERTEX] == 0 &&
+ !prog->SeparateShader) {
linker_error(prog, "Tessellation control shader must be linked with "
"vertex shader\n");
goto done;
--
2.1.0
More information about the mesa-dev
mailing list