[Mesa-dev] [PATCH 6/7] intel: Drop gratuitous flush in PBO blit upload.

Eric Anholt eric at anholt.net
Wed Sep 21 10:15:48 PDT 2011


Since the blit gets sequenced after other batchbuffer rendering like
normal, there's no need to push things out early.
---
 src/mesa/drivers/dri/intel/intel_tex_image.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c
index 9ae0aee..ac3489b 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_image.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_image.c
@@ -196,9 +196,6 @@ try_pbo_upload(struct intel_context *intel,
 
    dst_stride = intelImage->mt->region->pitch;
 
-   if (drm_intel_bo_references(intel->batch.bo, dst_buffer))
-      intel_flush(&intel->ctx);
-
    {
       GLuint offset;
       drm_intel_bo *src_buffer =
-- 
1.7.5.4



More information about the mesa-dev mailing list