winsys/svga: Replace the query mm buffer pool with a slab pool v3
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 31 Mar 2014 07:01:24 +0000 (09:01 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 2 Apr 2014 16:32:44 +0000 (18:32 +0200)
commit5dc206525b6ff799870f880469a985f3d944eb77
treeb55b5e62bb9913ee080e8b8a5a5cc1f11707f3d9
parent76ba50a25a8bbc1e5fbcdb24da7e09f8996cf2c5
winsys/svga: Replace the query mm buffer pool with a slab pool v3

This is to avoid running out of query buffer space due to winsys
limitations. Instead of a fixed size per screen pool of query buffers,
use a slab allocator that allocates a new slab if we run out of space
in the first one.

v2: Correct email addresses.
v3: s/8192/VMW_QUERY_POOL_SIZE/. Improve documentation and log message.

Reported-and-tested-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Cc: "10.1" <mesa-stable@lists.freedesktop.org>
src/gallium/winsys/svga/drm/vmw_screen_pools.c