diff options
author | Marek Olšák <[email protected]> | 2015-01-12 14:35:24 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-01-19 20:15:27 +0100 |
commit | ccc5b60b06269a5d847b7fe9ebe08dc61b4d2030 (patch) | |
tree | eb9c735fea7b84d6c45d722627977d2f301df061 /src/gallium/winsys | |
parent | 3b8ccca8a3b5e03829fba7cdb57b49fc10917954 (diff) |
winsys/radeon: increase the size of buffer cache
This should fix this performance regression:
https://bugs.freedesktop.org/show_bug.cgi?id=88227
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/radeon/drm/radeon_drm_winsys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c index 75fc80feebc..72b7931936a 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c @@ -673,7 +673,7 @@ radeon_drm_winsys_create(int fd, radeon_screen_create_t screen_create) goto fail; ws->cman = pb_cache_manager_create(ws->kman, 1000000, 2.0f, 0, - (ws->info.vram_size + ws->info.gart_size) / 8); + MIN2(ws->info.vram_size, ws->info.gart_size)); if (!ws->cman) goto fail; |