gallium: utility helper functions for stream output
[mesa.git] / src / gallium / auxiliary / util / u_simple_shaders.c
index b0f2dd8aa29e8173c9620140c180fa2f6c5a4238..320c0f7a830247edbf510b230100dbd09c04b9ec 100644 (file)
@@ -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 );
 }