summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Forbes <[email protected]>2014-09-21 12:08:22 +1200
committerMarek Olšák <[email protected]>2015-07-23 00:59:25 +0200
commite32e546c17932161e5417a952db3fb7a19cdc93c (patch)
treeb275e2fc346e1fe0e2bece5cfaefc44463c610e0 /src
parenta30cc2882934ef25f41e1e41eb56d0b768f00b26 (diff)
mesa: require VS if TCS or TES is present in pipeline
Signed-off-by: Chris Forbes <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/pipelineobj.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c
index 3f7acfbc763..07acbf10c1d 100644
--- a/src/mesa/main/pipelineobj.c
+++ b/src/mesa/main/pipelineobj.c
@@ -789,7 +789,9 @@ _mesa_validate_program_pipeline(struct gl_context* ctx,
* executable vertex shader."
*/
if (!pipe->CurrentProgram[MESA_SHADER_VERTEX]
- && pipe->CurrentProgram[MESA_SHADER_GEOMETRY]) {
+ && (pipe->CurrentProgram[MESA_SHADER_GEOMETRY] ||
+ pipe->CurrentProgram[MESA_SHADER_TESS_CTRL] ||
+ pipe->CurrentProgram[MESA_SHADER_TESS_EVAL])) {
pipe->InfoLog = ralloc_strdup(pipe, "Program lacks a vertex shader");
goto err;
}