diff options
author | Iago Toral Quiroga <[email protected]> | 2017-10-20 09:18:33 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2017-10-26 08:40:14 +0200 |
commit | e2abb75b0e4c2e38120316c4f3cc4cde44497330 (patch) | |
tree | 01d982e355508693098a8c0aeaf3edaa14638b76 /src/compiler/glsl/link_varyings.h | |
parent | bdaf0589785138f91cd485fd698274a33b7d33d5 (diff) |
glsl/linker: validate explicit locations for SSO programs
v2:
- we only need to validate inputs to the first stage and outputs
from the last stage, everything else has already been validated
during cross_validate_outputs_to_inputs (Timothy).
- Use MAX_VARYING instead of MAX_VARYINGS_INCL_PATCH (Illia)
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/compiler/glsl/link_varyings.h')
-rw-r--r-- | src/compiler/glsl/link_varyings.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/glsl/link_varyings.h b/src/compiler/glsl/link_varyings.h index 081b04ea38f..e052a2b3e56 100644 --- a/src/compiler/glsl/link_varyings.h +++ b/src/compiler/glsl/link_varyings.h @@ -300,6 +300,12 @@ link_varyings(struct gl_shader_program *prog, unsigned first, unsigned last, struct gl_context *ctx, void *mem_ctx); void +validate_sso_explicit_locations(struct gl_context *ctx, + struct gl_shader_program *prog, + gl_shader_stage first, + gl_shader_stage last); + +void cross_validate_outputs_to_inputs(struct gl_context *ctx, struct gl_shader_program *prog, gl_linked_shader *producer, |