diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-22 14:39:57 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-23 10:48:52 +0100 |
commit | 42330fbae862cda9ca17ec62eb0d2e4fb86032b8 (patch) | |
tree | 4604c304ef5d8ff0886d7d0c598cff22192994b8 /src/sna/gen4_vertex.c | |
parent | dd130d1b06e8828d7a2471761bac36093b9a2391 (diff) |
sna: Track CPU/GTT maps independently
Now that we use CPU mmaps to read/write to tiled X surfaces, we find
ourselves frequently switching between CPU and GTT mmaps and so wish to
cache both.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen4_vertex.c')
-rw-r--r-- | src/sna/gen4_vertex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen4_vertex.c b/src/sna/gen4_vertex.c index 3c4911af..85e74137 100644 --- a/src/sna/gen4_vertex.c +++ b/src/sna/gen4_vertex.c @@ -169,7 +169,7 @@ void gen4_vertex_close(struct sna *sna) sna->render.vertices = sna->render.vertex_data; sna->render.vertex_size = ARRAY_SIZE(sna->render.vertex_data); free_bo = bo; - } else if (IS_CPU_MAP(bo->map) && !sna->kgem.has_llc) { + } else if (!sna->kgem.has_llc && sna->render.vertices == MAP(bo->map__cpu)) { DBG(("%s: converting CPU map to GTT\n", __FUNCTION__)); sna->render.vertices = kgem_bo_map__gtt(&sna->kgem, sna->render.vbo); |