From 7b31b235d069ab4154bfc4b1eacde6368852aaee Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 19 Jul 2010 14:31:25 +0200 Subject: r300g: use memory pools for buffer_create and get_transfer The improvement in Tremulous: 68.9 fps -> 71.1 fps. --- src/gallium/drivers/r300/r300_screen.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gallium/drivers/r300/r300_screen.h') diff --git a/src/gallium/drivers/r300/r300_screen.h b/src/gallium/drivers/r300/r300_screen.h index 58270230e1..edc494ff6c 100644 --- a/src/gallium/drivers/r300/r300_screen.h +++ b/src/gallium/drivers/r300/r300_screen.h @@ -28,6 +28,8 @@ #include "r300_chipset.h" +#include "util/u_mempool.h" + #include struct r300_winsys_screen; @@ -41,8 +43,15 @@ struct r300_screen { /* Chipset capabilities */ struct r300_capabilities caps; + /* Memory pools. */ + struct util_mempool pool_buffers; + /** Combination of DBG_xxx flags */ unsigned debug; + + /* The number of created contexts to know whether we have multiple + * contexts or not. */ + int num_contexts; }; -- cgit v1.2.3