From 95426b28ac716dafff4c797f66949244896a94fd Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 28 Jun 2013 19:26:27 -0700 Subject: 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 Reviewed-by: Eric Anholt --- src/mesa/main/uniforms.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/main/uniforms.h') diff --git a/src/mesa/main/uniforms.h b/src/mesa/main/uniforms.h index d7afdc10688..c8b555cbea4 100644 --- a/src/mesa/main/uniforms.h +++ b/src/mesa/main/uniforms.h @@ -300,6 +300,8 @@ _mesa_update_shader_textures_used(struct gl_shader_program *shProg, extern bool _mesa_sampler_uniforms_are_valid(const struct gl_shader_program *shProg, char *errMsg, size_t errMsgLength); +extern bool +_mesa_sampler_uniforms_pipeline_are_valid(struct gl_pipeline_object *); extern const struct gl_program_parameter * get_uniform_parameter(struct gl_shader_program *shProg, GLint index); -- cgit v1.2.3