mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
glsl: don't validate ifc blocks using validation meant for variables
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
This commit is contained in:
parent
19f13b2096
commit
ebc419fcbd
1 changed files with 8 additions and 2 deletions
|
|
@ -312,8 +312,14 @@ cross_validate_outputs_to_inputs(struct gl_shader_program *prog,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output != NULL) {
|
if (output != NULL) {
|
||||||
cross_validate_types_and_qualifiers(prog, input, output,
|
/* Interface blocks have their own validation elsewhere so don't
|
||||||
consumer->Stage, producer->Stage);
|
* try validating them here.
|
||||||
|
*/
|
||||||
|
if (!(input->get_interface_type() &&
|
||||||
|
output->get_interface_type()))
|
||||||
|
cross_validate_types_and_qualifiers(prog, input, output,
|
||||||
|
consumer->Stage,
|
||||||
|
producer->Stage);
|
||||||
} else {
|
} else {
|
||||||
/* Check for input vars with unmatched output vars in prev stage
|
/* Check for input vars with unmatched output vars in prev stage
|
||||||
* taking into account that interface blocks could have a matching
|
* taking into account that interface blocks could have a matching
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue