diff options
author | Marek Olšák <[email protected]> | 2012-04-13 19:27:45 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-04-18 16:19:38 +0200 |
commit | 76d9a99d6bafa5b2ad7839a79deda1a7d5e6d902 (patch) | |
tree | 53b5c5da342ad6271c7cc02c50490982928eae6a /src/mesa/state_tracker/st_context.h | |
parent | 0ef90e52d1c1898ae1e4618536a85622689c0b19 (diff) |
st/mesa: use u_upload_mgr to upload vertices for glBitmap
instead of recreating the vertex buffer for each draw_vbo call.
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r-- | src/mesa/state_tracker/st_context.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h index da03719fdec..0135e3c6777 100644 --- a/src/mesa/state_tracker/st_context.h +++ b/src/mesa/state_tracker/st_context.h @@ -40,6 +40,7 @@ struct draw_stage; struct gen_mipmap_state; struct st_context; struct st_fragment_program; +struct u_upload_mgr; #define ST_NEW_MESA 0x1 /* Mesa state has changed */ @@ -71,6 +72,7 @@ struct st_context struct pipe_context *pipe; + struct u_upload_mgr *uploader; struct draw_context *draw; /**< For selection/feedback/rastpos only */ struct draw_stage *feedback_stage; /**< For GL_FEEDBACK rendermode */ struct draw_stage *selection_stage; /**< For GL_SELECT rendermode */ @@ -154,8 +156,6 @@ struct st_context enum pipe_format tex_format; void *vs; float vertices[4][3][4]; /**< vertex pos + color + texcoord */ - struct pipe_resource *vbuf; - unsigned vbuf_slot; /* next free slot in vbuf */ struct bitmap_cache *cache; } bitmap; |