summaryrefslogtreecommitdiff
path: root/src/sna/sna_blt.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-09-12 08:24:06 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-09-12 08:24:06 +0100
commit9fb399aee99ad98996f872477c133f08795ec54c (patch)
treec3eac8fdeab42a393b4a0f108dd20460f1b73ff1 /src/sna/sna_blt.c
parente3edf2948467ad989590a347ffe687780192be16 (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.c4
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",