Mesa (master): svga/drm: Flushing preemptively on a 1/3 of the aperture.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Feb 3 15:15:32 UTC 2011


Module: Mesa
Branch: master
Commit: 637ed52f597098ac556b27a4403056bd54343426
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=637ed52f597098ac556b27a4403056bd54343426

Author: José Fonseca <jfonseca at vmware.com>
Date:   Thu Feb  3 15:06:39 2011 +0000

svga/drm: Flushing preemptively on a 1/3 of the aperture.

Exactly one half would be the ideal, but this is a soft limit, and one
more byte over brings us to synchronous behavior.

Flushing when the referred GMR exceeds one third of the aperture gives us
statistically better performance.

---

 src/gallium/winsys/svga/drm/vmw_context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/winsys/svga/drm/vmw_context.c b/src/gallium/winsys/svga/drm/vmw_context.c
index 11626ee..f2124c1 100644
--- a/src/gallium/winsys/svga/drm/vmw_context.c
+++ b/src/gallium/winsys/svga/drm/vmw_context.c
@@ -320,7 +320,7 @@ vmw_swc_region_relocation(struct svga_winsys_context *swc,
     * to the FIFO won't cause flushing in the host.
     */
    vswc->seen_regions += reloc->buffer->base.size;
-   if(vswc->seen_regions >= VMW_GMR_POOL_SIZE/2)
+   if(vswc->seen_regions >= VMW_GMR_POOL_SIZE/3)
       vswc->preemptive_flush = TRUE;
 }
 




More information about the mesa-commit mailing list