Revert "draw: clear the draw buffers in draw"
authorZack Rusin <zackr@vmware.com>
Tue, 18 Jun 2013 01:06:11 +0000 (21:06 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 18 Jun 2013 01:43:10 +0000 (21:43 -0400)
commit9542131b273d01d2c3403e6791172347cb792e34
tree8dad771a75c40ae6c051a81c4e31636e54e1cc85
parent8975dc798d6b7790de7a788c8263b636cfd02184
Revert "draw: clear the draw buffers in draw"

This reverts commit 41966fdb3b71c0b70aeb095e0eb3c5626c144a3a.
While it's a lot cleaner it causes regressions because
the draw interface is always called from the draw functions
of the drivers (because the buffers need to be mapped) which
means that the stream output buffers endup being cleared on
every draw rather than on setting.

Signed-off-by: Zack Rusin <zackr@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