diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-08 08:58:41 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-08 17:34:48 +0000 |
commit | c037b4f542a7b21cbaecedec259da3589db10039 (patch) | |
tree | 8ec7790314ad2a0adfabb09d48074b810046a354 /src/sna/kgem_debug_gen3.c | |
parent | 26042b2660d87044e1920a1267d9984c00c9566a (diff) |
sna: Tune cache size for cpu bo cache
This helps SNB on cairo-traces that utilize lots of temporary uploads
(rasterised sources and masks for instance), but comes at a cost of
regressing others...
In order to counter the regression from increasing the GTT cache size,
the CPU/GTT vma cache are split and accounted separately.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem_debug_gen3.c')
-rw-r--r-- | src/sna/kgem_debug_gen3.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/sna/kgem_debug_gen3.c b/src/sna/kgem_debug_gen3.c index 0238b734..213c69f6 100644 --- a/src/sna/kgem_debug_gen3.c +++ b/src/sna/kgem_debug_gen3.c @@ -101,9 +101,6 @@ static void gen3_update_vertex_buffer_addr(struct kgem *kgem, } ptr = (char *)base + kgem->reloc[i].delta; - if (state.vb.current) - kgem_bo_unmap(kgem, state.vb.current); - state.vb.current = bo; state.vb.base = base; state.vb.ptr = ptr; @@ -1612,8 +1609,5 @@ int kgem_gen3_decode_3d(struct kgem *kgem, uint32_t offset) void kgem_gen3_finish_state(struct kgem *kgem) { - if (state.vb.current) - kgem_bo_unmap(kgem, state.vb.current); - memset(&state, 0, sizeof(state)); } |