diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-12 08:24:06 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-09-12 08:24:06 +0100 |
commit | 9fb399aee99ad98996f872477c133f08795ec54c (patch) | |
tree | c3eac8fdeab42a393b4a0f108dd20460f1b73ff1 /src/sna/sna_blt.c | |
parent | e3edf2948467ad989590a347ffe687780192be16 (diff) |
sna/blt: Fix computation of remainaing boxes on gen8+
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_blt.c')
-rw-r--r-- | src/sna/sna_blt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c index 72f7f672..de8f6ec3 100644 --- a/src/sna/sna_blt.c +++ b/src/sna/sna_blt.c @@ -3764,7 +3764,7 @@ bool sna_blt_copy_boxes(struct sna *sna, uint8_t alu, nbox_this_time = nbox; rem = kgem_batch_space(kgem); if (10*nbox_this_time > rem) - nbox_this_time = rem / 8; + nbox_this_time = rem / 10; if (2*nbox_this_time > KGEM_RELOC_SIZE(kgem) - kgem->nreloc) nbox_this_time = (KGEM_RELOC_SIZE(kgem) - kgem->nreloc)/2; DBG(("%s: emitting %d boxes out of %d (batch space %d)\n", @@ -3882,7 +3882,7 @@ bool sna_blt_copy_boxes(struct sna *sna, uint8_t alu, nbox_this_time = nbox; rem = kgem_batch_space(kgem); if (10*nbox_this_time > rem) - nbox_this_time = rem / 8; + nbox_this_time = rem / 10; if (2*nbox_this_time > KGEM_RELOC_SIZE(kgem) - kgem->nreloc) nbox_this_time = (KGEM_RELOC_SIZE(kgem) - kgem->nreloc)/2; DBG(("%s: emitting %d boxes out of %d (batch space %d)\n", |