mesa/sso: Add _mesa_sampler_uniforms_pipeline_are_valid
authorGregory Hainaut <gregory.hainaut@gmail.com>
Sat, 29 Jun 2013 02:26:27 +0000 (19:26 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 25 Mar 2014 17:25:26 +0000 (10:25 -0700)
commit95426b28ac716dafff4c797f66949244896a94fd
tree420c02f0321cb9232b7cc10624869bb37a0744b0
parentaa46ad26b13a753858627088d1e8f7cc81beb64e
mesa/sso: Add _mesa_sampler_uniforms_pipeline_are_valid

This is much like _mesa_sampler_uniforms_are_valid, but it operates
across an entire pipeline object.

This function differs from _mesa_sampler_uniforms_are_valid in that it
directly creates the gl_pipeline_object::InfoLog instead of writing to
some temporary buffer.

This was originally included in another patch, but it was split out by
Ian Romanick.

v2 (idr): Fix the loop bounds.  shProg isn't an array, so
ARRAY_SIZE(shProg) was 1, so only the vertex program was validated.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/uniform_query.cpp
src/mesa/main/uniforms.h