From 1662178863d7b715530274148aa57e6494f935a8 Mon Sep 17 00:00:00 2001 From: Stéphane Marchesin Date: Fri, 8 Mar 2013 13:32:55 -0800 Subject: i915g: Use PIPE_FLUSH_END_OF_FRAME to trigger throttling This helps with jittering, instead of throttling at every command buffer we only throttle once a frame. --- src/gallium/drivers/i915/i915_blit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gallium/drivers/i915/i915_blit.c') diff --git a/src/gallium/drivers/i915/i915_blit.c b/src/gallium/drivers/i915/i915_blit.c index baaed3767ff..ff81439d544 100644 --- a/src/gallium/drivers/i915/i915_blit.c +++ b/src/gallium/drivers/i915/i915_blit.c @@ -50,7 +50,7 @@ i915_fill_blit(struct i915_context *i915, __FUNCTION__, dst_buffer, dst_pitch, dst_offset, x, y, w, h); if(!i915_winsys_validate_buffers(i915->batch, &dst_buffer, 1)) { - FLUSH_BATCH(NULL); + FLUSH_BATCH(NULL, I915_FLUSH_ASYNC); assert(i915_winsys_validate_buffers(i915->batch, &dst_buffer, 1)); } @@ -72,7 +72,7 @@ i915_fill_blit(struct i915_context *i915, } if (!BEGIN_BATCH(6)) { - FLUSH_BATCH(NULL); + FLUSH_BATCH(NULL, I915_FLUSH_ASYNC); assert(BEGIN_BATCH(6)); } OUT_BATCH(CMD); @@ -111,7 +111,7 @@ i915_copy_blit(struct i915_context *i915, dst_buffer, dst_pitch, dst_offset, dst_x, dst_y, w, h); if(!i915_winsys_validate_buffers(i915->batch, buffers, 2)) { - FLUSH_BATCH(NULL); + FLUSH_BATCH(NULL, I915_FLUSH_ASYNC); assert(i915_winsys_validate_buffers(i915->batch, buffers, 2)); } @@ -144,7 +144,7 @@ i915_copy_blit(struct i915_context *i915, assert (dst_pitch > 0 && src_pitch > 0); if (!BEGIN_BATCH(8)) { - FLUSH_BATCH(NULL); + FLUSH_BATCH(NULL, I915_FLUSH_ASYNC); assert(BEGIN_BATCH(8)); } OUT_BATCH(CMD); -- cgit v1.2.3