xf86-video-intel: src/sna/sna_blt.c

Chris Wilson ickle at kemper.freedesktop.org
Fri Sep 12 01:37:19 PDT 2014


 src/sna/sna_blt.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9fb399aee99ad98996f872477c133f08795ec54c
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Sep 12 08:24:06 2014 +0100

    sna/blt: Fix computation of remainaing boxes on gen8+
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c
index 72f7f67..de8f6ec 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",


More information about the xorg-commit mailing list