r600g: add winsys bo caching.
authorDave Airlie <airlied@redhat.com>
Fri, 17 Sep 2010 03:37:31 +0000 (13:37 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 17 Sep 2010 05:29:31 +0000 (15:29 +1000)
commita927d0477a47e29d72e518880979e11e8c0f98e7
tree2f77bc4606b176c52bd8fdb86798059c476e7a35
parentda96313afe3cff66d8ae0c9675a6299b3d7510f9
r600g: add winsys bo caching.

this adds the bo caching layer and uses it for vertex/index/constant bos.

ctx needs to take references on hw bos so the flushing works okay, also
needs to flush the maps.
src/gallium/winsys/r600/drm/radeon.c
src/gallium/winsys/r600/drm/radeon_ctx.c
src/gallium/winsys/r600/drm/radeon_priv.h
src/gallium/winsys/r600/drm/radeon_ws_bo.c