Mesa (master): intel: Drop gratuitous flush in PBO blit upload.

Eric Anholt anholt at kemper.freedesktop.org
Thu Sep 22 11:48:03 PDT 2011


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

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Sep 21 09:50:06 2011 -0700

intel: Drop gratuitous flush in PBO blit upload.

Since the blit gets sequenced after other batchbuffer rendering like
normal, there's no need to push things out early.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 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 595eeb0..37704bc 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_image.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_image.c
@@ -195,9 +195,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 =



More information about the mesa-commit mailing list