X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fauxiliary%2Futil%2Fu_simple_shaders.c;h=320c0f7a830247edbf510b230100dbd09c04b9ec;hb=8a9a37cebeff19b56afed43ae037d00950fa7594;hp=b0f2dd8aa29e8173c9620140c180fa2f6c5a4238;hpb=861a029ddb31e91bb4d8e18ab708d0d172f63aad;p=mesa.git diff --git a/src/gallium/auxiliary/util/u_simple_shaders.c b/src/gallium/auxiliary/util/u_simple_shaders.c index b0f2dd8aa29..320c0f7a830 100644 --- a/src/gallium/auxiliary/util/u_simple_shaders.c +++ b/src/gallium/auxiliary/util/u_simple_shaders.c @@ -55,6 +55,18 @@ util_make_vertex_passthrough_shader(struct pipe_context *pipe, uint num_attribs, const uint *semantic_names, const uint *semantic_indexes) +{ + return util_make_vertex_passthrough_shader_with_so(pipe, num_attribs, + semantic_names, + semantic_indexes, NULL); +} + +void * +util_make_vertex_passthrough_shader_with_so(struct pipe_context *pipe, + uint num_attribs, + const uint *semantic_names, + const uint *semantic_indexes, + const struct pipe_stream_output_info *so) { struct ureg_program *ureg; uint i; @@ -78,7 +90,7 @@ util_make_vertex_passthrough_shader(struct pipe_context *pipe, ureg_END( ureg ); - return ureg_create_shader_and_destroy( ureg, pipe ); + return ureg_create_shader_with_so_and_destroy( ureg, pipe, so ); }