mesa: Extract is_active_attrib() in shaderapi
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 12 Apr 2014 09:20:42 +0000 (21:20 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Sun, 13 Apr 2014 07:26:56 +0000 (19:26 +1200)
commitca5c8d6cd435948af7ea0c70118e4d3e5ee66a32
tree33d45eef94959bb7c8bb8262463b20fa35e82c2a
parentaeb03f8aea2ee542c78f444c49647ecea92bced7
mesa: Extract is_active_attrib() in shaderapi

The rules are about to get a bit more complex to account for
gl_InstanceID and gl_VertexID, which are system values.

Extracting this first avoids introducing duplication.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/shader_query.cpp