svga: sort #includes
[mesa.git] / src / gallium / auxiliary / cso_cache / cso_context.h
index aabf70c7a747439816469c6feb91284cd94fcc0f..4de08a8364c948737efc7eb056b9994371ef6e0d 100644 (file)
@@ -39,6 +39,7 @@ extern "C" {
 #endif
 
 struct cso_context;
+struct u_vbuf;
 
 struct cso_context *cso_create_context( struct pipe_context *pipe );
 
@@ -185,6 +186,13 @@ cso_restore_clip(struct cso_context *cso);
 
 /* fragment sampler view state */
 
+/*
+ * We don't provide shader caching in CSO.  Most of the time the api provides
+ * object semantics for shaders anyway, and the cases where it doesn't
+ * (eg mesa's internally-generated texenv programs), it will be up to
+ * the state tracker to implement their own specialized caching.
+ */
+
 void
 cso_set_fragment_sampler_views(struct cso_context *cso,
                                uint count,
@@ -210,6 +218,19 @@ cso_save_vertex_sampler_views(struct cso_context *cso);
 void
 cso_restore_vertex_sampler_views(struct cso_context *cso);
 
+/* drawing */
+
+void
+cso_set_index_buffer(struct cso_context *cso,
+                     const struct pipe_index_buffer *ib);
+
+void
+cso_draw_vbo(struct cso_context *cso,
+             const struct pipe_draw_info *info);
+
+/* helper drawing function */
+void
+cso_draw_arrays(struct cso_context *cso, uint mode, uint start, uint count);
 
 #ifdef __cplusplus
 }