From: José Fonseca Date: Thu, 3 Feb 2011 15:06:39 +0000 (+0000) Subject: svga/drm: Flushing preemptively on a 1/3 of the aperture. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=637ed52f597098ac556b27a4403056bd54343426;p=mesa.git 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. --- diff --git a/src/gallium/winsys/svga/drm/vmw_context.c b/src/gallium/winsys/svga/drm/vmw_context.c index 11626ee637d..f2124c1bf65 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; }