From: Chris Forbes Date: Sun, 21 Sep 2014 00:08:22 +0000 (+1200) Subject: mesa: require VS if TCS or TES is present in pipeline X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e32e546c17932161e5417a952db3fb7a19cdc93c;p=mesa.git mesa: require VS if TCS or TES is present in pipeline Signed-off-by: Chris Forbes Reviewed-by: Kenneth Graunke --- 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; }