projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fce2095
)
r300g: Remove an unnecessarily created pipe buffer (and thus fix a leak)
author
Nicolai Hähnle
<nhaehnle@gmail.com>
Sat, 3 Oct 2009 15:49:16 +0000
(17:49 +0200)
committer
Nicolai Hähnle
<nhaehnle@gmail.com>
Sat, 3 Oct 2009 15:51:09 +0000
(17:51 +0200)
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
src/gallium/drivers/r300/r300_render.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_render.c
b/src/gallium/drivers/r300/r300_render.c
index 69d162324a94387f99730ec3c2ca7e323480300b..ca44e0f66157d123606ed8d8dfa651ee0a6d8413 100644
(file)
--- a/
src/gallium/drivers/r300/r300_render.c
+++ b/
src/gallium/drivers/r300/r300_render.c
@@
-223,13
+223,6
@@
static void r300_render_draw(struct vbuf_render* render,
r300_prepare_render(r300render, count);
- /* Send our indices into an index buffer. */
- index_buffer = pipe_buffer_create(screen, 64, PIPE_BUFFER_USAGE_VERTEX,
- count * 2);
- if (!index_buffer) {
- return;
- }
-
BEGIN_CS(2 + (count+1)/2);
OUT_CS_PKT3(R300_PACKET3_3D_DRAW_INDX_2, (count+1)/2);
OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES | (count << 16) |