diff options
Diffstat (limited to 'src/gallium/auxiliary/util/u_vbuf.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_vbuf.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf.h b/src/gallium/auxiliary/util/u_vbuf.h index 06665b522ac..99b97a2b09c 100644 --- a/src/gallium/auxiliary/util/u_vbuf.h +++ b/src/gallium/auxiliary/util/u_vbuf.h @@ -71,6 +71,11 @@ struct u_vbuf { struct u_upload_mgr *uploader; struct u_vbuf_caps caps; + + /* Vertex elements state as created by u_vbuf. + * This is used when saving the state into u_blitter, there's no other + * usage. */ + void *vertex_elements; }; struct u_vbuf_resource { @@ -78,9 +83,6 @@ struct u_vbuf_resource { uint8_t *user_ptr; }; -/* Opaque type containing information about vertex elements for the manager. */ -struct u_vbuf_elements; - enum u_fetch_alignment { U_VERTEX_FETCH_BYTE_ALIGNED, U_VERTEX_FETCH_DWORD_ALIGNED @@ -96,19 +98,6 @@ u_vbuf_create(struct pipe_context *pipe, void u_vbuf_destroy(struct u_vbuf *mgr); -struct u_vbuf_elements * -u_vbuf_create_vertex_elements(struct u_vbuf *mgr, - unsigned count, - const struct pipe_vertex_element *attrs, - struct pipe_vertex_element *native_attrs); - -void u_vbuf_bind_vertex_elements(struct u_vbuf *mgr, - void *cso, - struct u_vbuf_elements *ve); - -void u_vbuf_destroy_vertex_elements(struct u_vbuf *mgr, - struct u_vbuf_elements *ve); - void u_vbuf_draw_begin(struct u_vbuf *mgr, struct pipe_draw_info *info); |