diff options
author | Charmaine Lee <[email protected]> | 2016-01-04 10:36:48 -0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-01-06 16:01:38 -0700 |
commit | b074a5b02de3dc0e2d0cbb6b9154673153b29525 (patch) | |
tree | 66224cab466ebfc707f6a521864f327dd6cbc76c /src/gallium/drivers/svga/include/svga_escape.h | |
parent | b59fad8478787665b7dc1618ca2a8b8df02feade (diff) |
svga: skip vertex attribute instruction with zero usage_mask
In emit_input_declarations(), we are skipping declarations for those
registers that are not being used. But in emit_vertex_attrib_instructions(),
we are still emitting instructions to tweak the vertex attributes even if
they are not being used. This causes an assert in the backend because an
input register is not declared in the shader. This patch fixes the problem
by skipping the instruction if the vertex attribute is not being used.
Changes in this patch is originated from the code snippet from Jose as
suggested in bug 1530161.
Tested with piglit, Heaven, Turbine, glretrace.
Reviewed-by: Jose Fonseca <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/include/svga_escape.h')
0 files changed, 0 insertions, 0 deletions