summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_context.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-06-07 13:11:49 +0800
committerChia-I Wu <[email protected]>2013-06-07 13:23:43 +0800
commit7142da6dd1b12f203a7daaa7d79235da8b5bc721 (patch)
tree938892e0fef57d277b38307f337b71d33210d113 /src/gallium/drivers/ilo/ilo_context.h
parent09f62a13fcddd237e7a3aef6185377f9a585a332 (diff)
ilo: use slab allocator for transfers
Slab allocator is perfect for transfer. Improved OpenArena performance by 1% with several casual runs.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_context.h')
-rw-r--r--src/gallium/drivers/ilo/ilo_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/ilo/ilo_context.h b/src/gallium/drivers/ilo/ilo_context.h
index b05ffe4ad93..02c4c0a8ec1 100644
--- a/src/gallium/drivers/ilo/ilo_context.h
+++ b/src/gallium/drivers/ilo/ilo_context.h
@@ -29,6 +29,7 @@
#define ILO_CONTEXT_H
#include "pipe/p_context.h"
+#include "util/u_slab.h"
#include "ilo_gpe.h"
#include "ilo_common.h"
@@ -50,6 +51,8 @@ struct ilo_context {
struct ilo_cp *cp;
struct intel_bo *last_cp_bo;
+ struct util_slab_mempool transfer_mempool;
+
struct ilo_shader_cache *shader_cache;
struct ilo_3d *hw3d;
struct blitter_context *blitter;