diff options
author | Brian Paul <[email protected]> | 2014-02-14 07:45:23 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-02-14 09:56:55 -0700 |
commit | e4a5a9fd2fdd5b5ae8b85ac743a228f409a21a70 (patch) | |
tree | 673d2bd16d7fb5baedda1ee911a3459ce7bbb42a /src/gallium/winsys | |
parent | 141e39a8936a7b19fd857a35ea2d200daf1777c7 (diff) |
gallium/pipebuffer: change pb_cache_manager_create() size_factor to float
Requested by Marek.
Reviewed-by: Marek Olšák <[email protected]>
Cc: "10.1" <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 2 | ||||
-rw-r--r-- | src/gallium/winsys/svga/drm/vmw_screen_pools.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c index 6f0e2a57669..44cd0d165fe 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c @@ -645,7 +645,7 @@ PUBLIC struct radeon_winsys *radeon_drm_winsys_create(int fd) ws->kman = radeon_bomgr_create(ws); if (!ws->kman) goto fail; - ws->cman = pb_cache_manager_create(ws->kman, 1000000, 2, 0); + ws->cman = pb_cache_manager_create(ws->kman, 1000000, 2.0f, 0); if (!ws->cman) goto fail; diff --git a/src/gallium/winsys/svga/drm/vmw_screen_pools.c b/src/gallium/winsys/svga/drm/vmw_screen_pools.c index 7f7b77982af..c97b71fc5e4 100644 --- a/src/gallium/winsys/svga/drm/vmw_screen_pools.c +++ b/src/gallium/winsys/svga/drm/vmw_screen_pools.c @@ -115,7 +115,7 @@ vmw_mob_pools_init(struct vmw_winsys_screen *vws) struct pb_desc desc; vws->pools.mob_cache = - pb_cache_manager_create(vws->pools.gmr, 100000, 2, + pb_cache_manager_create(vws->pools.gmr, 100000, 2.0f, VMW_BUFFER_USAGE_SHARED); if (!vws->pools.mob_cache) return FALSE; |