svga: Add GL4.1(compatibility profile) support in svga driver
[mesa.git] / src / gallium / drivers / svga / svga_streamout.h
index 1daa1ad5352d2b5897bb48951e4a72a5a23958be..5e6db247b53d21e1e1f755c4179aa438b78af517 100644 (file)
@@ -32,6 +32,9 @@ struct svga_stream_output {
    struct pipe_stream_output_info info;
    unsigned pos_out_index;                  // position output index
    unsigned id;
+   unsigned streammask;                     // bitmask to specify which streams are enabled
+   unsigned buffer_stream;
+   struct svga_winsys_buffer *declBuf;
 };
 
 struct svga_stream_output *
@@ -50,4 +53,20 @@ svga_delete_stream_output(struct svga_context *svga,
 enum pipe_error
 svga_rebind_stream_output_targets(struct svga_context *svga);
 
+void
+svga_create_stream_output_queries(struct svga_context *svga);
+
+void
+svga_destroy_stream_output_queries(struct svga_context *svga);
+
+void
+svga_begin_stream_output_queries(struct svga_context *svga, unsigned mask);
+
+void
+svga_end_stream_output_queries(struct svga_context *svga, unsigned mask);
+
+unsigned
+svga_get_primcount_from_stream_output(struct svga_context *svga,
+                                      unsigned stream);
+
 #endif /* SVGA_STREAMOUT_H */