gallium: add st_context_iface::flush_resource to call FLUSH_VERTICES
[mesa.git] / src / gallium / include / state_tracker / st_api.h
index 0b953d6fb388cb629c1dcd9f7a732bbf9304681e..955d84b5b4442d6be4aa6b0beb4344a6b917f9f9 100644 (file)
@@ -395,6 +395,13 @@ struct st_context_iface
                  void (*notify_before_flush_cb) (void*),
                  void* notify_before_flush_cb_args);
 
+   /**
+    * Flush all enqueued vertices (e.g. vbo module) and call
+    * pipe_context::flush_resource.
+    */
+   void (*flush_resource)(struct st_context_iface *stctxi,
+                          struct pipe_resource *resource);
+
    /**
     * Replace the texture image of a texture object at the specified level.
     *