diff options
author | Ian Romanick <[email protected]> | 2013-08-30 15:42:01 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-09-04 08:11:45 -0700 |
commit | 0851aa73659f894e6b54e3ef272c1fa360165128 (patch) | |
tree | 0cae10aade8f73f007d77daced5b59e92d48a0c3 /src/mesa/main/fog.c | |
parent | ceceaf53ceb7f5251833646a212a1c7e5786511c (diff) |
glsl: Validate qualifiers on VS color outputs with FS color inputs
The vertex shader color outputs (gl_FrontColor, gl_BackColor,
gl_FrontSecondaryColor, and gl_BackSecondaryColor) don't have the same
names as the matching fragment shader color inputs (gl_Color and
gl_SecondaryColor). As a result, the qualifiers on them were not being
properly cross validated.
Full spec compliance required ir_variable::used and
ir_variable::assigned be set properly. Without the preceeding patch,
which fixes the ::clone method to copy them, this will not be the case.
Fixes all of the previously failing piglit
spec/glsl-1.30/linker/interpolation-qualifiers tests.
v2: Update callers of cross_validate_types_and_qualifiers and
cross_validate_front_and_back_color. The function signature changed in
v2 of a previous patch. Suggested by Paul.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47755
Diffstat (limited to 'src/mesa/main/fog.c')
0 files changed, 0 insertions, 0 deletions