draw: add stream member to stats callback
authorDave Airlie <airlied@gmail.com>
Wed, 27 May 2015 07:22:13 +0000 (17:22 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 9 Apr 2019 01:19:38 +0000 (11:19 +1000)
This just adds space for the member to the callback, doesn't
change anything else.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/draw/draw_pt_so_emit.c
src/gallium/auxiliary/draw/draw_vbuf.h
src/gallium/drivers/llvmpipe/lp_setup_vbuf.c
src/gallium/drivers/softpipe/sp_prim_vbuf.c

index 261bd3467f9e929bf2f5c1133429572d642a0ab8..829543cf6157b5473e08864da3fd6512ec6123d7 100644 (file)
@@ -296,7 +296,7 @@ void draw_pt_so_emit( struct pt_so_emit *emit,
       }
    }
 
-   render->set_stream_output_info(render,
+   render->set_stream_output_info(render, 0,
                                   emit->emitted_primitives,
                                   emit->generated_primitives);
 }
index 8faccda556c12605b9ecaec82b55c60c7966e087..6e737ae5b7527359fb2fdc7844b8ff1c7f69e434 100644 (file)
@@ -125,6 +125,7 @@ struct vbuf_render {
     * Called after writing data to the stream out buffers
     */
    void (*set_stream_output_info)( struct vbuf_render *vbufr,
+                                   unsigned stream,
                                    unsigned primitive_count,
                                    unsigned primitive_generated );
 
index 6675b20168b3b73e1b3f0a565136674edc2d269e..17ac61cddb2995587b79b72fb3e75a5420bd4aef 100644 (file)
@@ -544,7 +544,7 @@ lp_setup_vbuf_destroy(struct vbuf_render *vbr)
  * increase too should call this from outside streamout code.
  */
 static void
-lp_setup_so_info(struct vbuf_render *vbr, uint primitives, uint prim_generated)
+lp_setup_so_info(struct vbuf_render *vbr, uint stream, uint primitives, uint prim_generated)
 {
    struct lp_setup_context *setup = lp_setup_context(vbr);
    struct llvmpipe_context *lp = llvmpipe_context(setup->pipe);
index 1ce04a2f11d227d967fbfd62bd2cae1f9aad70a8..783adf4f4488df37cd5a371874d3e95cdfa67d98 100644 (file)
@@ -597,7 +597,7 @@ sp_vbuf_draw_arrays(struct vbuf_render *vbr, uint start, uint nr)
  * increase too should call this from outside streamout code.
  */
 static void
-sp_vbuf_so_info(struct vbuf_render *vbr, uint primitives, uint prim_generated)
+sp_vbuf_so_info(struct vbuf_render *vbr, uint stream, uint primitives, uint prim_generated)
 {
    struct softpipe_vbuf_render *cvbr = softpipe_vbuf_render(vbr);
    struct softpipe_context *softpipe = cvbr->softpipe;