pb: don't keep checking buffers after first busy
authorDave Airlie <airlied@redhat.com>
Tue, 5 Oct 2010 05:50:58 +0000 (15:50 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 5 Oct 2010 05:50:58 +0000 (15:50 +1000)
commit49866c8f34579420a30c33f76cfb2d77bafcdf0a
tree3113cf41339f591802c553166790a7ca76fecc01
parent3c38e4f138a183ee5ad625ea34b1ec7dd815026f
pb: don't keep checking buffers after first busy

If we assume busy buffers are added to the list in order its unlikely
we'd fine one after the first busy one that isn't busy.
src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c