mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
glsl: remove cross validation of interpolation qualifier with GLSL 4.40
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
This commit is contained in:
parent
23132cd13b
commit
32a220f1f6
1 changed files with 11 additions and 1 deletions
|
|
@ -128,7 +128,17 @@ cross_validate_types_and_qualifiers(struct gl_shader_program *prog,
|
|||
return;
|
||||
}
|
||||
|
||||
if (input->data.interpolation != output->data.interpolation) {
|
||||
/* GLSL >= 4.40 removes text requiring interpolation qualifiers
|
||||
* to match cross stage, they must only match within the same stage.
|
||||
*
|
||||
* From page 84 (page 90 of the PDF) of the GLSL 4.40 spec:
|
||||
*
|
||||
* "It is a link-time error if, within the same stage, the interpolation
|
||||
* qualifiers of variables of the same name do not match.
|
||||
*
|
||||
*/
|
||||
if (input->data.interpolation != output->data.interpolation &&
|
||||
prog->Version < 440) {
|
||||
linker_error(prog,
|
||||
"%s shader output `%s' specifies %s "
|
||||
"interpolation qualifier, "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue