diff options
Diffstat (limited to 'src/gallium/auxiliary/util/u_vbuf_mgr.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_vbuf_mgr.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf_mgr.h b/src/gallium/auxiliary/util/u_vbuf_mgr.h index 5eb59385f9..068459af4c 100644 --- a/src/gallium/auxiliary/util/u_vbuf_mgr.h +++ b/src/gallium/auxiliary/util/u_vbuf_mgr.h @@ -54,6 +54,15 @@ struct u_vbuf_mgr { /* Precomputed max_index for hardware vertex buffers. */ int max_index; + + /* This uploader can optionally be used by the driver. + * + * Allowed functions: + * - u_upload_alloc + * - u_upload_data + * - u_upload_buffer + * - u_upload_flush */ + struct u_upload_mgr *uploader; }; struct u_vbuf_resource { @@ -102,8 +111,6 @@ void u_vbuf_mgr_draw_begin(struct u_vbuf_mgr *mgr, void u_vbuf_mgr_draw_end(struct u_vbuf_mgr *mgr); -void u_vbuf_mgr_flush_uploader(struct u_vbuf_mgr *mgr); - static INLINE struct u_vbuf_resource *u_vbuf_resource(struct pipe_resource *r) { |