OSDN Git Service

glsl: relax input->output validation for SSO programs
authorTapani Pälli <tapani.palli@intel.com>
Thu, 2 Apr 2015 09:59:55 +0000 (12:59 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 7 Apr 2015 05:11:07 +0000 (08:11 +0300)
commit1aa5738e666a9534c7e5b46f077327e6d647c64f
tree6c72aae403e51cdc3e377ca50c257f5d4ede23d8
parentae720c66cb91c2640dfd6707446899694a24ab5b
glsl: relax input->output validation for SSO programs

Commit 18004c3 introduced more restrictive validation to linker
between inputs and outputs. This patch skips the additional check
for programs that utilize GL_ARB_separate_shader_objects, there
inputs and outputs might not make exact match during linking but
only when constructing the final pipeline.

This made some of the GL_ARB_program_interface_query tests shaders
fail to link, these tests can be used to verify the change.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/glsl/link_varyings.cpp