summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_pipe.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-10-26 02:17:52 +0200
committerMarek Olšák <[email protected]>2011-10-26 15:15:57 +0200
commit344039d81d3cc079dd73b3b703ff613c344904e0 (patch)
treed2f600001ba4cf12c15e995e830d60d74c860c74 /src/gallium/drivers/r600/r600_pipe.h
parent20a20c781ac2143e92807fa8dfab086a5b7c1d53 (diff)
r600g: cleanup draw_vbo and add comments
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r--src/gallium/drivers/r600/r600_pipe.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h
index 0ef96be2832..dfb1065e371 100644
--- a/src/gallium/drivers/r600/r600_pipe.h
+++ b/src/gallium/drivers/r600/r600_pipe.h
@@ -235,14 +235,6 @@ struct r600_pipe_context {
unsigned default_ps_gprs, default_vs_gprs;
};
-struct r600_drawl {
- struct pipe_draw_info info;
- struct pipe_context *ctx;
- unsigned index_size;
- unsigned index_buffer_offset;
- struct pipe_resource *index_buffer;
-};
-
/* evergreen_state.c */
void evergreen_init_state_functions(struct r600_pipe_context *rctx);
void evergreen_init_config(struct r600_pipe_context *rctx);
@@ -279,7 +271,8 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen,
struct pipe_resource *r600_user_buffer_create(struct pipe_screen *screen,
void *ptr, unsigned bytes,
unsigned bind);
-void r600_upload_index_buffer(struct r600_pipe_context *rctx, struct r600_drawl *draw);
+void r600_upload_index_buffer(struct r600_pipe_context *rctx,
+ struct pipe_index_buffer *ib, unsigned count);
/* r600_pipe.c */
@@ -331,9 +324,8 @@ unsigned r600_texture_get_offset(struct r600_resource_texture *rtex,
/* r600_translate.c */
void r600_translate_index_buffer(struct r600_pipe_context *r600,
- struct pipe_resource **index_buffer,
- unsigned *index_size,
- unsigned *start, unsigned count);
+ struct pipe_index_buffer *ib,
+ unsigned count);
/* r600_state_common.c */
void r600_set_index_buffer(struct pipe_context *ctx,