[Mesa-dev] [PATCH 1/5] gallium/util: add a helper util_create_shader_from_text, cleanup some code

Ilia Mirkin imirkin at alum.mit.edu
Tue Dec 9 09:41:49 PST 2014


On Tue, Dec 9, 2014 at 6:28 AM, Marek Olšák <maraeo at gmail.com> wrote:
> diff --git a/src/gallium/auxiliary/util/u_simple_shaders.h b/src/gallium/auxiliary/util/u_simple_shaders.h
> index dd282e0..12f50f8 100644
> --- a/src/gallium/auxiliary/util/u_simple_shaders.h
> +++ b/src/gallium/auxiliary/util/u_simple_shaders.h
> @@ -44,6 +44,9 @@ extern "C" {
>
>
>  extern void *
> +util_create_shader_from_text(struct pipe_context *ctx, const char *text, ...);

May be nice to add a

_util_printf_format(2, 3)

> +
> +extern void *
>  util_make_vertex_passthrough_shader(struct pipe_context *pipe,
>                                      uint num_attribs,
>                                      const uint *semantic_names,


More information about the mesa-dev mailing list