summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_vbuf.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-03-31 06:01:39 +0200
committerMarek Olšák <[email protected]>2012-04-24 01:39:21 +0200
commit889238c8b1e6b8ac5eed30ec3122be94216ca7cf (patch)
treecde26618b482d116590a316f4c11a2c099296f87 /src/gallium/auxiliary/util/u_vbuf.h
parent2d03d4f4a365d7af5f4dac20700009152eba1682 (diff)
u_vbuf: override create/bind/destroy_vertex_elements_state
Diffstat (limited to 'src/gallium/auxiliary/util/u_vbuf.h')
-rw-r--r--src/gallium/auxiliary/util/u_vbuf.h21
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);