diff options
author | José Fonseca <[email protected]> | 2010-01-21 15:47:52 -0800 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-01-21 15:47:52 -0800 |
commit | beb8e8f2f2de0c1221090554159129665a79a292 (patch) | |
tree | 276799eaaf77cd1248085db0bf77d4a4e5763c03 /src/gallium/winsys | |
parent | e45579e50ba3b9736465f68377b3f5d0afb7c1da (diff) |
vmware/core: Put GMR pool size in a define.
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/drm/vmware/core/vmw_screen.h | 4 | ||||
-rw-r--r-- | src/gallium/winsys/drm/vmware/core/vmw_screen_pools.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/winsys/drm/vmware/core/vmw_screen.h b/src/gallium/winsys/drm/vmware/core/vmw_screen.h index a875107370c..f1d69865e77 100644 --- a/src/gallium/winsys/drm/vmware/core/vmw_screen.h +++ b/src/gallium/winsys/drm/vmware/core/vmw_screen.h @@ -40,6 +40,10 @@ #include "svga_winsys.h" + +#define VMW_GMR_POOL_SIZE (16*1024*1024) + + struct pb_manager; struct vmw_region; diff --git a/src/gallium/winsys/drm/vmware/core/vmw_screen_pools.c b/src/gallium/winsys/drm/vmware/core/vmw_screen_pools.c index 542746b2a36..78cfa786913 100644 --- a/src/gallium/winsys/drm/vmware/core/vmw_screen_pools.c +++ b/src/gallium/winsys/drm/vmware/core/vmw_screen_pools.c @@ -53,7 +53,7 @@ vmw_pools_init(struct vmw_winsys_screen *vws) goto error; vws->pools.gmr_mm = mm_bufmgr_create(vws->pools.gmr, - 16*1024*1024, + VMW_GMR_POOL_SIZE, 12 /* 4096 alignment */); if(!vws->pools.gmr_mm) goto error; |