diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-28 18:52:44 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-12-28 19:15:53 +0000 |
commit | f0fca544b0602bc4ed2f68e8d260e0a3745b4bad (patch) | |
tree | 3d461132523e89a5890a44fdd23ce2c6388e8c0d /src/sna/gen6_render.c | |
parent | c6e850b626f4bb44876c683d596ea38f8f6c30ae (diff) |
sna/gen4+: Check for a spare exec slot for an outstanding vbo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen6_render.c')
-rw-r--r-- | src/sna/gen6_render.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index 013df6ff..0c55a2d0 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -1180,9 +1180,7 @@ static int gen6_get_rectangles__flush(struct sna *sna, { if (!kgem_check_batch(&sna->kgem, op->need_magic_ca_pass ? 65 : 5)) return 0; - if (!kgem_check_exec(&sna->kgem, 2)) - return 0; - if (!kgem_check_reloc(&sna->kgem, 4)) + if (!kgem_check_reloc_and_exec(&sna->kgem, 2)) return 0; if (op->need_magic_ca_pass && sna->render.vbo) |