summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAndres Gomez <[email protected]>2018-12-28 00:57:29 +0200
committerAndres Gomez <[email protected]>2019-03-19 17:23:27 +0200
commit3be05dd2679b2525ff80bac715d6ea097295c9ea (patch)
tree86ebc3955feb76dbfb3bb931e00e3432b0d045d9 /bin
parentde1bc2d19a6e4b9081a79424ffc1cd082d27f6bd (diff)
glsl/linker: don't fail non static used inputs without matching outputs
If there is no Static Use of an input variable, the linker shouldn't fail whenever there is no defined matching output variable in the previous stage. From page 47 (page 51 of the PDF) of the GLSL 4.60 v.5 spec: " Only the input variables that are statically read need to be written by the previous stage; it is allowed to have superfluous declarations of input variables." Now, we complete this exception whenever the input variable has an explicit location. Previously, 18004c338f6 ("glsl: fail when a shader's input var has not an equivalent out var in previous") took care of the cases in which the input variable didn't have an explicit location. v2: do the location based interface matching check regardless on whether it is a separable program or not (Ilia). Fixes: 1aa5738e666 ("glsl: relax input->output validation for SSO programs") Cc: Timothy Arceri <[email protected]> Cc: Iago Toral Quiroga <[email protected]> Cc: Samuel Iglesias Gonsálvez <[email protected]> Cc: Tapani Pälli <[email protected]> Cc: Ian Romanick <[email protected]> Cc: Ilia Mirkin <[email protected]> Signed-off-by: Andres Gomez <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions