summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_context.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-06-28 14:59:18 -0700
committerEric Anholt <[email protected]>2014-08-08 18:59:46 -0700
commitc3f96060a8d1ebc9caa7053592e80155a5266e92 (patch)
treee2cfdaf5184ef6518c8e5cf8deaaa85c48b8ced7 /src/gallium/drivers/vc4/vc4_context.h
parent21db43021041e8dedc45bb232c10ece83fd09dd1 (diff)
vc4: Don't reallocate the tile alloc/state bos every frame.
This was a problem for the simulator since we don't free memory back to it, and it would soon just run out.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.h b/src/gallium/drivers/vc4/vc4_context.h
index 2aba99248c6..dedd98b4e5b 100644
--- a/src/gallium/drivers/vc4/vc4_context.h
+++ b/src/gallium/drivers/vc4/vc4_context.h
@@ -120,6 +120,9 @@ struct vc4_context {
struct vc4_cl bo_handles;
uint32_t shader_rec_count;
+ struct vc4_bo *tile_alloc;
+ struct vc4_bo *tile_state;
+
struct util_slab_mempool transfer_pool;
struct blitter_context *blitter;