r300g/r600g: bump cache manager timeouts to 1s
authorDave Airlie <airlied@redhat.com>
Wed, 24 Nov 2010 21:29:03 +0000 (07:29 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 24 Nov 2010 23:18:19 +0000 (09:18 +1000)
On lightsmark on my r500 this drop the bufmgr allocations of the sysprof.

src/gallium/winsys/r600/drm/r600_drm.c
src/gallium/winsys/radeon/drm/radeon_r300.c

index 8b1d88aed7d8909c9cbf9667fe5881563af17057..e83cc44290aed59d0a9af74403edd0529780bdfa 100644 (file)
@@ -230,7 +230,7 @@ struct radeon *radeon_new(int fd, unsigned device)
        radeon->kman = radeon_bo_pbmgr_create(radeon);
        if (!radeon->kman)
                return NULL;
-       radeon->cman = pb_cache_manager_create(radeon->kman, 100000);
+       radeon->cman = pb_cache_manager_create(radeon->kman, 1000000);
        if (!radeon->cman)
                return NULL;
        return radeon;
index 420522f5c1f355728b032f8f6cf2b2469e306b52..3b3e2c2f2815bf5c61a29d0db349bfcbf9906da6 100644 (file)
@@ -278,7 +278,7 @@ boolean radeon_setup_winsys(int fd, struct radeon_libdrm_winsys* ws)
     if (!ws->kman)
        goto fail;
 
-    ws->cman = pb_cache_manager_create(ws->kman, 100000);
+    ws->cman = pb_cache_manager_create(ws->kman, 1000000);
     if (!ws->cman)
        goto fail;