summaryrefslogtreecommitdiff
path: root/src/sna/gen7_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-02 21:13:45 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-02 21:39:13 +0000
commitadd663919eb6aca1f5bbb39549d56f481ea0f273 (patch)
tree35317a19a8b17684f094e4f0449071d1fc4c28cf /src/sna/gen7_render.c
parentd41f847c75c3bce85fda6e7508995b45679944e8 (diff)
sna: Eliminate the redundancy between is_mappable/can_map
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen7_render.c')
-rw-r--r--src/sna/gen7_render.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 4093c029..82c785f7 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -3734,8 +3734,7 @@ static void gen7_render_reset(struct sna *sna)
sna->render_state.gen7.drawrect_limit = -1;
sna->render_state.gen7.surface_table = -1;
- if (sna->render.vbo &&
- !kgem_bo_is_mappable(&sna->kgem, sna->render.vbo)) {
+ if (sna->render.vbo && !kgem_bo_can_map(&sna->kgem, sna->render.vbo)) {
DBG(("%s: discarding unmappable vbo\n", __FUNCTION__));
discard_vbo(sna);
}