draw: clear the draw buffers in draw
authorZack Rusin <zackr@vmware.com>
Thu, 13 Jun 2013 21:57:47 +0000 (17:57 -0400)
committerZack Rusin <zackr@vmware.com>
Mon, 17 Jun 2013 15:06:39 +0000 (11:06 -0400)
commit41966fdb3b71c0b70aeb095e0eb3c5626c144a3a
tree086d16f5c1acca677050acf06c782521e591dcc5
parent98bc4c62a621fa1f8c099c45767d22e5d2bc9741
draw: clear the draw buffers in draw

Moves clearing of the draw so target buffers to the draw
module. They had to be cleared in the drivers before
which was quite messy.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_context.h
src/gallium/drivers/llvmpipe/lp_context.h
src/gallium/drivers/llvmpipe/lp_draw_arrays.c
src/gallium/drivers/llvmpipe/lp_state_so.c
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/softpipe/sp_draw_arrays.c
src/gallium/drivers/softpipe/sp_state_so.c