summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2010-03-08 23:36:44 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2010-03-08 23:36:44 -0800
commit9cbbad04c48f802a79b36a855d1ac2f589ab6e12 (patch)
treec8f7bd75e6f757ac3bbfefdd468aeaef72e092db
parentbffcb3ac1eaf31132b13ed0c82a9674f0cd734ee (diff)
r300g: Remove unused function.gallium-velemcso-r300g
-rw-r--r--src/gallium/drivers/r300/r300_render.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/gallium/drivers/r300/r300_render.c b/src/gallium/drivers/r300/r300_render.c
index d0e06ade40..2605628c02 100644
--- a/src/gallium/drivers/r300/r300_render.c
+++ b/src/gallium/drivers/r300/r300_render.c
@@ -319,31 +319,6 @@ static void r300_emit_draw_elements(struct r300_context *r300,
END_CS;
}
-static boolean r300_setup_vertex_buffers(struct r300_context *r300)
-{
- struct pipe_vertex_buffer *vbuf = r300->vertex_buffer;
- struct pipe_vertex_element *velem = r300->velems->velem;
- struct pipe_buffer *pbuf;
-
-validate:
- for (int i = 0; i < r300->velems->count; i++) {
- pbuf = vbuf[velem[i].vertex_buffer_index].buffer;
-
- if (!r300->winsys->add_buffer(r300->winsys, pbuf,
- RADEON_GEM_DOMAIN_GTT, 0)) {
- r300->context.flush(&r300->context, 0, NULL);
- goto validate;
- }
- }
-
- if (!r300->winsys->validate(r300->winsys)) {
- r300->context.flush(&r300->context, 0, NULL);
- return r300->winsys->validate(r300->winsys);
- }
-
- return TRUE;
-}
-
static void r300_shorten_ubyte_elts(struct r300_context* r300,
struct pipe_buffer** elts,
unsigned count)