Commit 1661fde6 by Corentin Wallez

ProgramGL: Mark all columns of matrix attributes as active

The active attributes are used to determine which of the vertex attributes to enable. Matrices take up several attributes depending on the number of column they have; this patch marks all the columns of active matrix attributes as active. TEST=dEQP-GLES2.functional.shaders.linkage.varying_type_mat* BUG=angleproject:1127 Change-Id: I82f548f329f872c4e66aa0e4e71c6061a55b9987 Reviewed-on: https://chromium-review.googlesource.com/294261Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 26e355b8
......@@ -200,7 +200,11 @@ LinkResult ProgramGL::link(const gl::Data &data,
// TODO: determine attribute precision
setShaderAttribute(static_cast<size_t>(i), attributeType, GL_NONE, attributeName, attributeSize, location);
mActiveAttributesMask.set(location);
int attributeRegisterCount = gl::VariableRegisterCount(attributeType);
for (int offset = 0; offset < attributeRegisterCount; offset++)
{
mActiveAttributesMask.set(location + offset);
}
}
return LinkResult(true, gl::Error(GL_NO_ERROR));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment