vmware/core: Put GMR pool size in a define.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 21 Jan 2010 23:47:52 +0000 (15:47 -0800)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 21 Jan 2010 23:47:52 +0000 (15:47 -0800)
src/gallium/winsys/drm/vmware/core/vmw_screen.h
src/gallium/winsys/drm/vmware/core/vmw_screen_pools.c

index a875107370cb56269c48e268b9c9180d4342ca3e..f1d69865e774f35b3f8e6eb29c6ffc2a1c255c64 100644 (file)
 
 #include "svga_winsys.h"
 
+
+#define VMW_GMR_POOL_SIZE (16*1024*1024)
+
+
 struct pb_manager;
 struct vmw_region;
 
index 542746b2a36c95f81ac21f69e910fa56913d7cb1..78cfa78691396d4426ad32f9750060cb15d289f6 100644 (file)
@@ -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;